Fixed header file layout
[m6w6/libmemcached] / libmemcached / memcached_allocators.h
1 /*
2 * Summary: Allocator functions for libmemcached
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Trond Norbye
7 */
8
9 #ifndef LIBMEMCACHED_MEMCACHED_ALLOCATORS_H
10 #define LIBMEMCACHED_MEMCACHED_ALLOCATORS_H
11
12 #ifndef LIBMEMCACHED_MEMCACHED_H
13 #error "Please include <libmemcached/memcached.h> instead"
14 #endif
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 LIBMEMCACHED_API
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);
26
27 LIBMEMCACHED_API
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);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* LIBMEMCACHED_MEMCACHED_ALLOCATORS_H */