1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
|
/****************************************************************************
*
* $Id: rmavalue.h 7 2003-05-30 02:18:02Z gabest $
*
* Copyright (C) 1995-1999 RealNetworks, Inc. All rights reserved.
*
* http://www.real.com/devzone
*
* This program contains proprietary
* information of Progressive Networks, Inc, and is licensed
* subject to restrictions on use and distribution.
*
*
* RealMedia Architecture Plug-in Interfaces.
*
*/
#ifndef _RMAVALUE_H_
#define _RMAVALUE_H_
/*
* Forward declarations of some interfaces defined or used here-in.
*/
typedef _INTERFACE IUnknown IUnknown;
typedef _INTERFACE IRMABuffer IRMABuffer;
typedef _INTERFACE IRMAKeyValueList IRMAKeyValueList;
typedef _INTERFACE IRMAKeyValueListIter IRMAKeyValueListIter;
typedef _INTERFACE IRMAKeyValueListIterOneKey IRMAKeyValueListIterOneKey;
typedef _INTERFACE IRMAValues IRMAValues;
typedef _INTERFACE IRMAOptions IRMAOptions;
/* Note : GUIDS 3101 - 3107 are deprecated. */
/****************************************************************************
*
* Interface:
*
* IRMAKeyValueList
*
* Purpose:
*
* Stores a list of strings, where strings are keyed by not necessarily
* unique keys.
*
*
* IRMAKeyValueList:
*
* {0x00003108-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAKeyValueList, 0x00003108, 0x901, 0x11d1,
0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMAKeyValueList IID_IRMAKeyValueList
#undef INTERFACE
#define INTERFACE IRMAKeyValueList
DECLARE_INTERFACE_(IRMAKeyValueList, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* Regular methods
*/
/************************************************************************
* Method:
* IRMAKeyValueList::AddKeyValue
* Purpose:
* Add a new key/value tuple to our list of strings. You can have
* multiple strings for the same key.
*/
STDMETHOD(AddKeyValue) (THIS_
const char* pKey,
IRMABuffer* pStr) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::GetIter
* Purpose:
* Return an iterator that allows you to iterate through all the
* key/value tuples in our list of strings.
*/
STDMETHOD(GetIter) (THIS_
REF(IRMAKeyValueListIter*) pIter) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::GetIterOneKey
* Purpose:
* Return an iterator that allows you to iterate through all the
* strings for a particular key.
*/
STDMETHOD(GetIterOneKey) (THIS_
const char* pKey,
REF(IRMAKeyValueListIterOneKey*) pIter) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::AppendAllListItems
* Purpose:
* Append all the key/string tuples from another list to this list.
* (You can have duplicate keys.)
*/
STDMETHOD(AppendAllListItems) (THIS_
IRMAKeyValueList* pList) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::KeyExists
* Purpose:
* See whether any strings exist for a particular key.
*/
STDMETHOD_(BOOL,KeyExists) (THIS_
const char* pKey) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::CreateObject
* Purpose:
* Create an empty object that is the same class as the current object.
*/
STDMETHOD(CreateObject) (THIS_
REF(IRMAKeyValueList*) pNewList) PURE;
/************************************************************************
* Method:
* IRMAKeyValueList::ImportValues.
* Purpose:
* Import all the strings from an IRMAValues object into this object.
* If this object also supports IRMAValues, it should also import the
* ULONGs and Buffers. You can have duplicate keys, and old data is
* left untouched.
*/
STDMETHOD(ImportValues) (THIS_
IRMAValues* pValues) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAKeyValueListIter
*
* Purpose:
*
* Iterate over all the items in a CKeyValueList.
* Call IRMAKeyValueList::GetIter to create an iterator.
*
*
* IRMAKeyValueListIter:
*
* {0x00003109-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAKeyValueListIter, 0x00003109, 0x901, 0x11d1,
0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMAKeyValueListIter IID_IRMAKeyValueListIter
#undef INTERFACE
#define INTERFACE IRMAKeyValueListIter
DECLARE_INTERFACE_(IRMAKeyValueListIter, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* Regular methods
*/
/************************************************************************
* Method:
* IRMAKeyValueListIter::GetNextPair
* Purpose:
* Each call to this method returns one key/value tuple from your
* list of strings. Strings are returned in same order that they
* were inserted.
*/
STDMETHOD(GetNextPair) (THIS_
REF(const char*) pKey,
REF(IRMABuffer*) pStr) PURE;
/************************************************************************
* Method:
* IRMAKeyValueListIter::ReplaceCurr
* Purpose:
* Replaces the value in the key/value tuple that was returned
* in the last call to GetNextPair with a new string.
*/
STDMETHOD(ReplaceCurr) (THIS_
IRMABuffer* pStr) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAKeyValueListIterOneKey
*
* Purpose:
*
* Iterate over all the items in a CKeyValueList that match a particular key.
* Call IRMAKeyValueList::GetIterOneKey to create an iterator.
*
*
* IRMAKeyValueListIterOneKey:
*
* {0x00003110-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAKeyValueListIterOneKey, 0x00003110, 0x901, 0x11d1,
0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMAKeyValueListIterOneKey IID_IRMAKeyValueListIterOneKey
#undef INTERFACE
#define INTERFACE IRMAKeyValueListIterOneKey
DECLARE_INTERFACE_(IRMAKeyValueListIterOneKey, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* Regular methods
*/
/************************************************************************
* Method:
* IRMAKeyValueListIterOneKey::GetNextString
* Purpose:
* Each call to this method returns one string that matches the
* key for this iterator. Strings are returned in same order that they
* were inserted.
*
*/
STDMETHOD(GetNextString) (THIS_
REF(IRMABuffer*) pStr) PURE;
/************************************************************************
* Method:
* IRMAKeyValueListIterOneKey::ReplaceCurr
* Purpose:
* Replaces the value in the key/value tuple that was referenced
* in the last call to GetNextString with a new string.
*
*/
STDMETHOD(ReplaceCurr) (THIS_
IRMABuffer* pStr) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAOptions
*
* Purpose:
*
* This is a generic options interface, implemented by any object to
* allow its options to be read and set by another component of the
* system.
*
*
* IRMAOptions:
*
* {0x00003111-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAOptions, 0x00003111, 0x901, 0x11d1,
0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59);
#define CLSID_IRMAOptions IID_IRMAOptions
#undef INTERFACE
#define INTERFACE IRMAOptions
DECLARE_INTERFACE_(IRMAOptions, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* Regular methods
*/
/************************************************************************
* Method:
* IRMAOptions::GetOptions
* Purpose:
* This method returns a list of the options supported by this
* particular object, along with the value currently set for each
* option. Enumerate the members of the returned IRMAValues object
* to discover what options a component supports and the type of
* each of those options. The value for each name-value pair is
* the current setting for that option.
*
*/
STDMETHOD(GetOptions) (THIS_
REF(IRMAValues*) pOptions) PURE;
/************************************************************************
* Method:
* IRMAOptions::SetOptionULONG32
* Purpose:
* Sets the value of a ULONG32 option. The return value indicates
* whether or not the SetOptionULONG32 call succeeded.
*
*/
STDMETHOD(SetOptionULONG32) (THIS_
const char* pName,
ULONG32 ulValue) PURE;
/************************************************************************
* Method:
* IRMAOptions::SetOptionCString
* Purpose:
* Sets the value of a CString option. The return value indicates
* whether or not the SetOptionCString call succeeded.
*
*/
STDMETHOD(SetOptionCString) (THIS_
const char* pName,
IRMABuffer* pValue) PURE;
/************************************************************************
* Method:
* IRMAOptions::SetOptionBuffer
* Purpose:
* Sets the value of a Buffer option. The return value indicates
* whether or not the SetOptionBuffer call succeeded.
*
*/
STDMETHOD(SetOptionBuffer) (THIS_
const char* pName,
IRMABuffer* pValue) PURE;
};
#endif /* !_RMAVALUE_H_ */
|