34 #ifndef SHARED_ALLOCATOR_H
35 #define SHARED_ALLOCATOR_H
42 void* (*allocator)(size_t);
53 void (*deallocator)(
void *));
void allocator_deallocate(allocator_type *allocator, void *data)
allocator_type * allocator_create(void *(*allocator)(size_t size), void(*deallocator)(void *))
void(* deallocator)(void *)
void * allocator_alloc_init(allocator_type *allocator, size_t size, const void *init)
void allocator_cleanup(allocator_type *allocator)
void * allocator_alloc(allocator_type *allocator, size_t size)
char * allocator_strdup(allocator_type *allocator, const char *string)
void * allocator_alloc_zero(allocator_type *allocator, size_t size)