2 * Summary: Allocator functions for libmemcached
4 * Copy: See Copyright for the status of this software.
9 #ifndef LIBMEMCACHED_MEMCACHED_ALLOCATORS_H
10 #define LIBMEMCACHED_MEMCACHED_ALLOCATORS_H
12 #ifndef LIBMEMCACHED_MEMCACHED_H
13 #error "Please include <libmemcached/memcached.h> instead"
21 memcached_return
memcached_set_memory_allocators(memcached_st
*ptr
,
22 memcached_malloc_function mem_malloc
,
23 memcached_free_function mem_free
,
24 memcached_realloc_function mem_realloc
,
25 memcached_calloc_function mem_calloc
);
28 void memcached_get_memory_allocators(memcached_st
*ptr
,
29 memcached_malloc_function
*mem_malloc
,
30 memcached_free_function
*mem_free
,
31 memcached_realloc_function
*mem_realloc
,
32 memcached_calloc_function
*mem_calloc
);
38 #endif /* LIBMEMCACHED_MEMCACHED_ALLOCATORS_H */