memaslap: fix global/period rate
[awesomized/libmemcached] / include / libmemcached-1.0 / memcached.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 #include "libmemcached-1.0/configure.h"
19 #include "libmemcached-1.0/visibility.h"
20 #include "libmemcached-1.0/platform.h"
21
22 #include "libmemcached-1.0/limits.h"
23 #include "libmemcached-1.0/defaults.h"
24
25 #include "libmemcached-1.0/types/behavior.h"
26 #include "libmemcached-1.0/types/callback.h"
27 #include "libmemcached-1.0/types/connection.h"
28 #include "libmemcached-1.0/types/hash.h"
29 #include "libmemcached-1.0/types/return.h"
30 #include "libmemcached-1.0/types/server_distribution.h"
31
32 #include "libmemcached-1.0/return.h"
33
34 #include "libmemcached-1.0/types.h"
35 #include "libmemcached-1.0/callbacks.h"
36 #include "libmemcached-1.0/alloc.h"
37 #include "libmemcached-1.0/triggers.h"
38
39 #include "libhashkit-1.0/hashkit.h"
40
41 #include "libmemcached-1.0/struct/callback.h"
42 #include "libmemcached-1.0/struct/string.h"
43 #include "libmemcached-1.0/struct/result.h"
44 #include "libmemcached-1.0/struct/allocator.h"
45 #include "libmemcached-1.0/struct/sasl.h"
46 #include "libmemcached-1.0/struct/memcached.h"
47 #include "libmemcached-1.0/struct/server.h"
48 #include "libmemcached-1.0/struct/stat.h"
49
50 #include "libmemcached-1.0/basic_string.h"
51 #include "libmemcached-1.0/error.h"
52 #include "libmemcached-1.0/stats.h"
53
54 // Everything above this line must be in the order specified.
55 #include "libmemcached-1.0/allocators.h"
56 #include "libmemcached-1.0/analyze.h"
57 #include "libmemcached-1.0/auto.h"
58 #include "libmemcached-1.0/behavior.h"
59 #include "libmemcached-1.0/callback.h"
60 #include "libmemcached-1.0/delete.h"
61 #include "libmemcached-1.0/dump.h"
62 #include "libmemcached-1.0/encoding_key.h"
63 #include "libmemcached-1.0/exist.h"
64 #include "libmemcached-1.0/fetch.h"
65 #include "libmemcached-1.0/flush.h"
66 #include "libmemcached-1.0/flush_buffers.h"
67 #include "libmemcached-1.0/get.h"
68 #include "libmemcached-1.0/hash.h"
69 #include "libmemcached-1.0/options.h"
70 #include "libmemcached-1.0/parse.h"
71 #include "libmemcached-1.0/quit.h"
72 #include "libmemcached-1.0/result.h"
73 #include "libmemcached-1.0/server.h"
74 #include "libmemcached-1.0/server_list.h"
75 #include "libmemcached-1.0/storage.h"
76 #include "libmemcached-1.0/strerror.h"
77 #include "libmemcached-1.0/touch.h"
78 #include "libmemcached-1.0/verbosity.h"
79 #include "libmemcached-1.0/version.h"
80 #include "libmemcached-1.0/sasl.h"
81
82 #include "libmemcached-1.0/deprecated_types.h"
83
84 #ifdef __cplusplus
85 extern "C" {
86 #endif
87
88 LIBMEMCACHED_API
89 void memcached_servers_reset(memcached_st *ptr);
90
91 LIBMEMCACHED_API
92 memcached_st *memcached_create(memcached_st *ptr);
93
94 LIBMEMCACHED_API
95 memcached_st *memcached(const char *string, size_t string_length);
96
97 LIBMEMCACHED_API
98 void memcached_free(memcached_st *ptr);
99
100 LIBMEMCACHED_API
101 memcached_return_t memcached_reset(memcached_st *ptr);
102
103 LIBMEMCACHED_API
104 void memcached_reset_last_disconnected_server(memcached_st *ptr);
105
106 LIBMEMCACHED_API
107 memcached_st *memcached_clone(memcached_st *clone, const memcached_st *ptr);
108
109 LIBMEMCACHED_API
110 void *memcached_get_user_data(const memcached_st *ptr);
111
112 LIBMEMCACHED_API
113 void *memcached_set_user_data(memcached_st *ptr, void *data);
114
115 LIBMEMCACHED_API
116 memcached_return_t memcached_push(memcached_st *destination, const memcached_st *source);
117
118 LIBMEMCACHED_API
119 const memcached_instance_st *memcached_server_instance_by_position(const memcached_st *ptr,
120 uint32_t server_key);
121
122 LIBMEMCACHED_API
123 uint32_t memcached_server_count(const memcached_st *);
124
125 LIBMEMCACHED_API
126 uint64_t memcached_query_id(const memcached_st *);
127
128 #ifdef __cplusplus
129 } // extern "C"
130 #endif