Small cleanup.
[m6w6/libmemcached] / libmemcached / callback.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: Change any of the possible callbacks.
9 *
10 */
11
12 #ifndef __LIBMEMCACHED_CALLBACK_H__
13 #define __LIBMEMCACHED_CALLBACK_H__
14
15 struct memcached_callback_st {
16 memcached_execute_fn *callback;
17 void *context;
18 uint32_t number_of_callback;
19 };
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 LIBMEMCACHED_API
26 memcached_return_t memcached_callback_set(memcached_st *ptr,
27 const memcached_callback_t flag,
28 void *data);
29 LIBMEMCACHED_API
30 void *memcached_callback_get(memcached_st *ptr,
31 const memcached_callback_t flag,
32 memcached_return_t *error);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* __LIBMEMCACHED_CALLBACK_H__ */