semver: 1.0 -> 1
[m6w6/libmemcached] / include / libmemcached-1 / auto.h
1 /*
2 +--------------------------------------------------------------------+
3 | libmemcached - C/C++ Client Library for memcached |
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted under the terms of the BSD license. |
7 | You should have received a copy of the license in a bundled file |
8 | named LICENSE; in case you did not receive a copy you can review |
9 | the terms online at: https://opensource.org/licenses/BSD-3-Clause |
10 +--------------------------------------------------------------------+
11 | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ |
12 | Copyright (c) 2020 Michael Wallner <mike@php.net> |
13 +--------------------------------------------------------------------+
14 */
15
16 #pragma once
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 LIBMEMCACHED_API
23 memcached_return_t memcached_increment(memcached_st *ptr, const char *key, size_t key_length,
24 uint32_t offset, uint64_t *value);
25 LIBMEMCACHED_API
26 memcached_return_t memcached_decrement(memcached_st *ptr, const char *key, size_t key_length,
27 uint32_t offset, uint64_t *value);
28
29 LIBMEMCACHED_API
30 memcached_return_t memcached_increment_by_key(memcached_st *ptr, const char *group_key,
31 size_t group_key_length, const char *key,
32 size_t key_length, uint64_t offset, uint64_t *value);
33
34 LIBMEMCACHED_API
35 memcached_return_t memcached_decrement_by_key(memcached_st *ptr, const char *group_key,
36 size_t group_key_length, const char *key,
37 size_t key_length, uint64_t offset, uint64_t *value);
38
39 LIBMEMCACHED_API
40 memcached_return_t memcached_increment_with_initial(memcached_st *ptr, const char *key,
41 size_t key_length, uint64_t offset,
42 uint64_t initial, time_t expiration,
43 uint64_t *value);
44
45 LIBMEMCACHED_API
46 memcached_return_t memcached_decrement_with_initial(memcached_st *ptr, const char *key,
47 size_t key_length, uint64_t offset,
48 uint64_t initial, time_t expiration,
49 uint64_t *value);
50
51 LIBMEMCACHED_API
52 memcached_return_t memcached_increment_with_initial_by_key(memcached_st *ptr, const char *group_key,
53 size_t group_key_length, const char *key,
54 size_t key_length, uint64_t offset,
55 uint64_t initial, time_t expiration,
56 uint64_t *value);
57
58 LIBMEMCACHED_API
59 memcached_return_t memcached_decrement_with_initial_by_key(memcached_st *ptr, const char *group_key,
60 size_t group_key_length, const char *key,
61 size_t key_length, uint64_t offset,
62 uint64_t initial, time_t expiration,
63 uint64_t *value);
64
65 #ifdef __cplusplus
66 }
67 #endif