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