1545
|
1 #ifndef DS_ALLOCATOR_H
|
|
2 #define DS_ALLOCATOR_H
|
168
|
3
|
|
4 #include "interfaces.h"
|
|
5 #include "cmediasample.h"
|
1545
|
6
|
7386
|
7 typedef struct _avm_list_t avm_list_t;
|
|
8 typedef struct _MemAllocator MemAllocator;
|
713
|
9
|
3056
|
10 struct _MemAllocator
|
168
|
11 {
|
3056
|
12 IMemAllocator_vt* vt;
|
3130
|
13 DECLARE_IUNKNOWN();
|
168
|
14 ALLOCATOR_PROPERTIES props;
|
3056
|
15 avm_list_t* used_list;
|
|
16 avm_list_t* free_list;
|
713
|
17 char* new_pointer;
|
|
18 CMediaSample* modified_sample;
|
3056
|
19 GUID interfaces[2];
|
1545
|
20
|
3056
|
21 void ( *SetPointer )(MemAllocator* This, char* pointer);
|
|
22 void ( *ResetPointer )(MemAllocator* This);
|
168
|
23 };
|
|
24
|
3056
|
25 MemAllocator* MemAllocatorCreate();
|
|
26
|
1545
|
27 #endif /* DS_ALLOCATOR_H */
|