Merged with trond's header file cleanup branch.
[m6w6/libmemcached] / libmemcached / memcached_callback.h
1 /*
2 * Summary: Callback function for libmemcached
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Trond Norbye
7 */
8 #ifndef LIBMEMCACHED_MEMCACHED_CALLBACK_H
9 #define LIBMEMCACHED_MEMCACHED_CALLBACK_H
10
11 #ifndef LIBMEMCACHED_MEMCACHED_H
12 #error "Please include <libmemcached/memcached.h> instead"
13 #endif
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 LIBMEMCACHED_API
20 memcached_return memcached_fetch_execute(memcached_st *ptr,
21 memcached_execute_function *callback,
22 void *context,
23 unsigned int number_of_callbacks);
24
25 LIBMEMCACHED_API
26 memcached_return memcached_callback_set(memcached_st *ptr,
27 memcached_callback flag,
28 void *data);
29 LIBMEMCACHED_API
30 void *memcached_callback_get(memcached_st *ptr,
31 memcached_callback flag,
32 memcached_return *error);
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* LIBMEMCACHED_MEMCACHED_CALLBACK_H */