blob: c8c62b2fcc175c570312673b8295bf52ac0f66be (
plain)
| 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
 | #ifndef DS_ALLOCATOR_H
#define DS_ALLOCATOR_H
#include "interfaces.h"
#include "cmediasample.h"
typedef struct avm_list_t
{
    struct avm_list_t* next;
    struct avm_list_t* prev;
    void* member;
} avm_list_t;
typedef struct _MemAllocator MemAllocator;
struct _MemAllocator
{
    IMemAllocator_vt* vt;
    DECLARE_IUNKNOWN();
    ALLOCATOR_PROPERTIES props;
    avm_list_t* used_list;
    avm_list_t* free_list;
    char* new_pointer;
    CMediaSample* modified_sample;
    GUID interfaces[2];
    void ( *SetPointer )(MemAllocator* This, char* pointer);
    void ( *ResetPointer )(MemAllocator* This);
};
MemAllocator* MemAllocatorCreate(void);
void MemAllocator_Destroy(MemAllocator* This);
#endif /* DS_ALLOCATOR_H */
 |