Merge in all scanner tree + virtual buckets.
[awesomized/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
53 LIBMEMCACHED_API
54 memcached_return_t memcached_decrement_with_initial(memcached_st *ptr,
55 const char *key,
56 size_t key_length,
57 uint64_t offset,
58 uint64_t initial,
59 time_t expiration,
60 uint64_t *value);
61
62 LIBMEMCACHED_API
63 memcached_return_t memcached_increment_with_initial_by_key(memcached_st *ptr,
64 const char *master_key,
65 size_t master_key_length,
66 const char *key,
67 size_t key_length,
68 uint64_t offset,
69 uint64_t initial,
70 time_t expiration,
71 uint64_t *value);
72
73 LIBMEMCACHED_API
74 memcached_return_t memcached_decrement_with_initial_by_key(memcached_st *ptr,
75 const char *master_key,
76 size_t master_key_length,
77 const char *key,
78 size_t key_length,
79 uint64_t offset,
80 uint64_t initial,
81 time_t expiration,
82 uint64_t *value);
83
84 #ifdef __cplusplus
85 }
86 #endif
87
88 #endif /* __LIBMEMCACHED_AUTO_H__ */