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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
|
/****************************************************************************
*
* $Id: rmapckts.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 Packet and Header Interface.
*
*/
#ifndef _RMAPCKTS_H_
#define _RMAPCKTS_H_
// Define IRMAUtilities
/* ASMFlags in IRMAPacket */
#define RMA_ASM_SWITCH_ON 0x01
#define RMA_ASM_SWITCH_OFF 0x02
/****************************************************************************
*
* Interface:
*
* IRMABuffer
*
* Purpose:
*
* Basic opaque data storage buffer. Used in interfaces where
* object ownership is best managed through COM style reference
* counting.
*
* IID_IRMABuffer:
*
* {00001300-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMABuffer, 0x00001300, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
/*
* The IRMACommonClassFactory supports creating an instance
* of this object.
*/
#define CLSID_IRMABuffer IID_IRMABuffer
#undef INTERFACE
#define INTERFACE IRMABuffer
DECLARE_INTERFACE_(IRMABuffer, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMABuffer methods
*/
STDMETHOD(Get) (THIS_
REF(UCHAR*) pData,
REF(ULONG32) ulLength) PURE;
STDMETHOD(Set) (THIS_
const UCHAR* pData,
ULONG32 ulLength) PURE;
STDMETHOD(SetSize) (THIS_
ULONG32 ulLength) PURE;
STDMETHOD_(ULONG32,GetSize) (THIS) PURE;
STDMETHOD_(UCHAR*,GetBuffer)(THIS) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAPacket
*
* Purpose:
*
* Basic data packet in the RealMedia system.
*
* IID_IRMAPacket:
*
* {00001301-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAPacket, 0x00001301, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
/*
* The IRMACommonClassFactory supports creating an instance
* of this object.
*/
#define CLSID_IRMAPacket IID_IRMAPacket
#undef INTERFACE
#define INTERFACE IRMAPacket
DECLARE_INTERFACE_(IRMAPacket, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAPacket methods
*/
STDMETHOD(Get) (THIS_
REF(IRMABuffer*) pBuffer,
REF(UINT32) ulTime,
REF(UINT16) unStreamNumber,
REF(UINT8) unASMFlags,
REF(UINT16) unASMRuleNumber
) PURE;
STDMETHOD_(IRMABuffer*,GetBuffer) (THIS) PURE;
STDMETHOD_(ULONG32,GetTime) (THIS) PURE;
STDMETHOD_(UINT16,GetStreamNumber) (THIS) PURE;
STDMETHOD_(UINT8,GetASMFlags) (THIS) PURE;
STDMETHOD_(UINT16,GetASMRuleNumber) (THIS) PURE;
STDMETHOD_(BOOL,IsLost) (THIS) PURE;
STDMETHOD(SetAsLost) (THIS) PURE;
STDMETHOD(Set) (THIS_
IRMABuffer* pBuffer,
UINT32 ulTime,
UINT16 uStreamNumber,
UINT8 unASMFlags,
UINT16 unASMRuleNumber
) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAPacket
*
* Purpose:
*
* RTP data packet in the RealMedia system.
*
* IID_IRMARTPPacket:
*
* {0169A731-1ED0-11d4-952B-00902742C923}
*
*/
DEFINE_GUID(IID_IRMARTPPacket, 0x169a731, 0x1ed0, 0x11d4, 0x95, 0x2b, 0x0,
0x90, 0x27, 0x42, 0xc9, 0x23);
/*
* The IRMACommonClassFactory supports creating an instance
* of this object.
*/
#define CLSID_IRMARTPPacket IID_IRMARTPPacket
#undef INTERFACE
#define INTERFACE IRMARTPPacket
DECLARE_INTERFACE_(IRMARTPPacket, IRMAPacket)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAPacket methods
*/
STDMETHOD(Get) (THIS_
REF(IRMABuffer*) pBuffer,
REF(UINT32) ulTime,
REF(UINT16) unStreamNumber,
REF(UINT8) unASMFlags,
REF(UINT16) unASMRuleNumber
) PURE;
STDMETHOD_(IRMABuffer*,GetBuffer) (THIS) PURE;
STDMETHOD_(ULONG32,GetTime) (THIS) PURE;
STDMETHOD_(UINT16,GetStreamNumber) (THIS) PURE;
STDMETHOD_(UINT8,GetASMFlags) (THIS) PURE;
STDMETHOD_(UINT16,GetASMRuleNumber) (THIS) PURE;
STDMETHOD_(BOOL,IsLost) (THIS) PURE;
STDMETHOD(SetAsLost) (THIS) PURE;
STDMETHOD(Set) (THIS_
IRMABuffer* pBuffer,
UINT32 ulTime,
UINT16 uStreamNumber,
UINT8 unASMFlags,
UINT16 unASMRuleNumber
) PURE;
/*
* IRMARTPPacket methods
*/
STDMETHOD_(ULONG32,GetRTPTime) (THIS) PURE;
STDMETHOD(GetRTP) (THIS_
REF(IRMABuffer*) pBuffer,
REF(UINT32) ulTime,
REF(UINT32) ulRTPTime,
REF(UINT16) unStreamNumber,
REF(UINT8) unASMFlags,
REF(UINT16) unASMRuleNumber
) PURE;
STDMETHOD(SetRTP) (THIS_
IRMABuffer* pBuffer,
UINT32 ulTime,
UINT32 ulRTPTime,
UINT16 uStreamNumber,
UINT8 unASMFlags,
UINT16 unASMRuleNumber
) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAValues
*
* Purpose:
*
* This is an interface to a generic name-value pair facility. This
* is used in various places (such as stream headers).
*
* IID_IRMAValues:
*
* {00001302-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAValues, 0x00001302, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
/*
* The IRMACommonClassFactory supports creating an instance
* of this object.
*/
#define CLSID_IRMAValues IID_IRMAValues
#undef INTERFACE
#define INTERFACE IRMAValues
DECLARE_INTERFACE_(IRMAValues, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAValues methods
*/
/*
* Note: That strings returned as references should be copied or
* used immediately because their lifetime is only as long as the
* IRMAValues's objects lifetime.
*
* Note: Your iterator will be reset once you give up control to the
* RMA core (i.e. you exit whatever function gave you a time slice).
*/
STDMETHOD(SetPropertyULONG32) (THIS_
const char* pPropertyName,
ULONG32 uPropertyValue) PURE;
STDMETHOD(GetPropertyULONG32) (THIS_
const char* pPropertyName,
REF(ULONG32) uPropertyName) PURE;
STDMETHOD(GetFirstPropertyULONG32) (THIS_
REF(const char*) pPropertyName,
REF(ULONG32) uPropertyValue) PURE;
STDMETHOD(GetNextPropertyULONG32) (THIS_
REF(const char*) pPropertyName,
REF(ULONG32) uPropertyValue) PURE;
STDMETHOD(SetPropertyBuffer) (THIS_
const char* pPropertyName,
IRMABuffer* pPropertyValue) PURE;
STDMETHOD(GetPropertyBuffer) (THIS_
const char* pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
STDMETHOD(GetFirstPropertyBuffer) (THIS_
REF(const char*) pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
STDMETHOD(GetNextPropertyBuffer) (THIS_
REF(const char*) pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
STDMETHOD(SetPropertyCString) (THIS_
const char* pPropertyName,
IRMABuffer* pPropertyValue) PURE;
STDMETHOD(GetPropertyCString) (THIS_
const char* pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
STDMETHOD(GetFirstPropertyCString) (THIS_
REF(const char*) pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
STDMETHOD(GetNextPropertyCString) (THIS_
REF(const char*) pPropertyName,
REF(IRMABuffer*) pPropertyValue) PURE;
};
/****************************************************************************
*
* Interface:
*
* IRMAValuesRemove
*
* Purpose:
*
* This interface is to add Remove methods to a class that supports
* IRMAValues. All classes that support this interface will also
* support IRMAValues.
*
*
*
* IID_IRMAValuesRemove:
*
* {00001303-0901-11d1-8B06-00A024406D59}
*
*/
DEFINE_GUID(IID_IRMAValuesRemove, 0x00001303, 0x901, 0x11d1, 0x8b, 0x6, 0x0,
0xa0, 0x24, 0x40, 0x6d, 0x59);
/*
* The IRMACommonClassFactory does not support creating an instance
* of this object.
*/
#undef INTERFACE
#define INTERFACE IRMAValuesRemove
DECLARE_INTERFACE_(IRMAValuesRemove, IUnknown)
{
/*
* IUnknown methods
*/
STDMETHOD(QueryInterface) (THIS_
REFIID riid,
void** ppvObj) PURE;
STDMETHOD_(ULONG,AddRef) (THIS) PURE;
STDMETHOD_(ULONG,Release) (THIS) PURE;
/*
* IRMAValuesRemove methods
*/
/************************************************************************
* Method:
* IRMAKeyValuesRemove::Remove
* Purpose:
* Remove all items matching pKey. (If you know what datatype you saved
* the key as, use the specific method.)
*/
STDMETHOD(Remove) (const char* pKey) PURE;
/************************************************************************
* Method:
* IRMAKeyValuesRemove::RemoveULONG32
* Purpose:
* Remove all ULONG32 items matching pKey.
*/
STDMETHOD(RemoveULONG32) (const char* pKey) PURE;
/************************************************************************
* Method:
* IRMAKeyValuesRemove::RemoveBuffer
* Purpose:
* Remove all Buffer items matching pKey.
*/
STDMETHOD(RemoveBuffer) (const char* pKey) PURE;
/************************************************************************
* Method:
* IRMAKeyValuesRemove::RemoveCString
* Purpose:
* Remove all CString items matching pKey.
*/
STDMETHOD(RemoveCString) (const char* pKey) PURE;
};
#endif /* _RMAPCKTS_H_ */
|