Set C linkage for the function pointers
[m6w6/libmemcached] / libmemcached / auto.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 the behavior of the memcached connection.
9 *
10 */
11
12 #ifndef __LIBMEMCACHED_AUTO_H__
13 #define __LIBMEMCACHED_AUTO_H__
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 LIBMEMCACHED_API
20 memcached_return_t memcached_increment(memcached_st *ptr,
21 const char *key, size_t key_length,
22 uint32_t offset,
23 uint64_t *value);
24 LIBMEMCACHED_API
25 memcached_return_t memcached_decrement(memcached_st *ptr,
26 const char *key, size_t key_length,
27 uint32_t offset,
28 uint64_t *value);
29
30 LIBMEMCACHED_API
31 memcached_return_t memcached_increment_by_key(memcached_st *ptr,
32 const char *master_key, size_t master_key_length,
33 const char *key, size_t key_length,
34 uint64_t offset,
35 uint64_t *value);
36
37 LIBMEMCACHED_API
38 memcached_return_t memcached_decrement_by_key(memcached_st *ptr,
39 const char *master_key, size_t master_key_length,
40 const char *key, size_t key_length,
41 uint64_t offset,
42 uint64_t *value);
43
44 LIBMEMCACHED_API
45 memcached_return_t memcached_increment_with_initial(memcached_st *ptr,
46 const char *key,
47 size_t key_length,
48 uint64_t offset,
49 uint64_t initial,
50 time_t expiration,
51 uint64_t *value);
52 LIBMEMCACHED_API
53 memcached_return_t memcached_decrement_with_initial(memcached_st *ptr,
54 const char *key,
55 size_t key_length,
56 uint64_t offset,
57 uint64_t initial,
58 time_t expiration,
59 uint64_t *value);
60 LIBMEMCACHED_API
61 memcached_return_t memcached_increment_with_initial_by_key(memcached_st *ptr,
62 const char *master_key,
63 size_t master_key_length,
64 const char *key,
65 size_t key_length,
66 uint64_t offset,
67 uint64_t initial,
68 time_t expiration,
69 uint64_t *value);
70 LIBMEMCACHED_API
71 memcached_return_t memcached_decrement_with_initial_by_key(memcached_st *ptr,
72 const char *master_key,
73 size_t master_key_length,
74 const char *key,
75 size_t key_length,
76 uint64_t offset,
77 uint64_t initial,
78 time_t expiration,
79 uint64_t *value);
80
81 #ifdef __cplusplus
82 }
83 #endif
84
85 #endif /* __LIBMEMCACHED_AUTO_H__ */