Fixed header file layout
[m6w6/libmemcached] / libmemcached / memcached_arithmetic.h
1 /*
2 * Summary: Arithmetic functions for libmemcached
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Trond Norbye
7 */
8
9 #ifndef LIBMEMCACHED_MEMCACHED_ARITHMETIC_H
10 #define LIBMEMCACHED_MEMCACHED_ARITHMETIC_H
11
12 #ifndef LIBMEMCACHED_MEMCACHED_H
13 #error "Please include <libmemcached/memcached.h> instead"
14 #endif
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 LIBMEMCACHED_API
21 memcached_return memcached_increment(memcached_st *ptr,
22 const char *key, size_t key_length,
23 uint32_t offset,
24 uint64_t *value);
25 LIBMEMCACHED_API
26 memcached_return memcached_decrement(memcached_st *ptr,
27 const char *key, size_t key_length,
28 uint32_t offset,
29 uint64_t *value);
30 LIBMEMCACHED_API
31 memcached_return memcached_increment_with_initial(memcached_st *ptr,
32 const char *key,
33 size_t key_length,
34 uint64_t offset,
35 uint64_t initial,
36 time_t expiration,
37 uint64_t *value);
38 LIBMEMCACHED_API
39 memcached_return memcached_decrement_with_initial(memcached_st *ptr,
40 const char *key,
41 size_t key_length,
42 uint64_t offset,
43 uint64_t initial,
44 time_t expiration,
45 uint64_t *value);
46
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* LIBMEMCACHED_MEMCACHED_ARITHMETIC_H */