Merge in conversion to C++.
[awesomized/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 #pragma once
13 #ifndef __LIBMEMCACHED_CALLBACK_H__
14 #define __LIBMEMCACHED_CALLBACK_H__
15
16 struct memcached_callback_st {
17 memcached_execute_fn *callback;
18 void *context;
19 uint32_t number_of_callback;
20 };
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 LIBMEMCACHED_API
27 memcached_return_t memcached_callback_set(memcached_st *ptr,
28 const memcached_callback_t flag,
29 void *data);
30 LIBMEMCACHED_API
31 void *memcached_callback_get(memcached_st *ptr,
32 const memcached_callback_t flag,
33 memcached_return_t *error);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* __LIBMEMCACHED_CALLBACK_H__ */