Use calloc to allocate the result structure to initialize the object data
[m6w6/libmemcached] / libmemcached / internal.h
1 /* LibMemcached
2 * Copyright (C) 2006-2009 Brian Aker
3 * All rights reserved.
4 *
5 * Use and distribution licensed under the BSD license. See
6 * the COPYING file in the parent directory for full text.
7 *
8 * Summary: Internal functions used by the library. Not for public use!
9 *
10 */
11
12 #ifndef LIBMEMCACHED_MEMCACHED_INTERNAL_H
13 #define LIBMEMCACHED_MEMCACHED_INTERNAL_H
14
15 #if defined(BUILDING_LIBMEMCACHED)
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 LIBMEMCACHED_LOCAL
22 void libmemcached_free(memcached_st *ptr, void *mem);
23 LIBMEMCACHED_LOCAL
24 void *libmemcached_malloc(memcached_st *ptr, const size_t size);
25 LIBMEMCACHED_LOCAL
26 void *libmemcached_realloc(memcached_st *ptr, void *mem, const size_t size);
27 LIBMEMCACHED_LOCAL
28 void *libmemcached_calloc(memcached_st *ptr, size_t nelem, size_t size);
29
30 #ifdef __cplusplus
31 }
32 #endif
33
34 #endif /* BUILDING_LIBMEMCACHED */
35 #endif /* LIBMEMCACHED_MEMCACHED_INTERNAL_H */