1 /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
5 * Copyright (C) 2011 Data Differential, http://datadifferential.com/
6 * Copyright (C) 2006-2009 Brian Aker All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * * Redistributions in binary form must reproduce the above
16 * copyright notice, this list of conditions and the following disclaimer
17 * in the documentation and/or other materials provided with the
20 * * The names of its contributors may not be used to endorse or
21 * promote products derived from this software without specific prior
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 /* This seems to be required for older compilers @note http://stackoverflow.com/questions/8132399/how-to-printf-uint64-t */
41 #ifndef __STDC_FORMAT_MACROS
42 # define __STDC_FORMAT_MACROS
46 # if __cplusplus >= 201103L
49 # include <inttypes.h>
54 # include <inttypes.h>
60 #include <sys/types.h>
62 #include "libmemcached-1.0/visibility.h"
63 #include "libmemcached-1.0/configure.h"
64 #include "libmemcached-1.0/platform.h"
66 #include "libmemcached-1.0/limits.h"
67 #include "libmemcached-1.0/defaults.h"
69 #include "libmemcached-1.0/types/behavior.h"
70 #include "libmemcached-1.0/types/callback.h"
71 #include "libmemcached-1.0/types/connection.h"
72 #include "libmemcached-1.0/types/hash.h"
73 #include "libmemcached-1.0/types/return.h"
74 #include "libmemcached-1.0/types/server_distribution.h"
76 #include "libmemcached-1.0/return.h"
78 #include "libmemcached-1.0/types.h"
79 #include "libmemcached-1.0/callbacks.h"
80 #include "libmemcached-1.0/alloc.h"
81 #include "libmemcached-1.0/triggers.h"
83 #include "libhashkit-1.0/hashkit.h"
85 #include "libmemcached-1.0/struct/callback.h"
86 #include "libmemcached-1.0/struct/string.h"
87 #include "libmemcached-1.0/struct/result.h"
88 #include "libmemcached-1.0/struct/allocator.h"
89 #include "libmemcached-1.0/struct/sasl.h"
90 #include "libmemcached-1.0/struct/memcached.h"
91 #include "libmemcached-1.0/struct/server.h"
92 #include "libmemcached-1.0/struct/stat.h"
94 #include "libmemcached-1.0/basic_string.h"
95 #include "libmemcached-1.0/error.h"
96 #include "libmemcached-1.0/stats.h"
98 // Everything above this line must be in the order specified.
99 #include "libmemcached-1.0/allocators.h"
100 #include "libmemcached-1.0/analyze.h"
101 #include "libmemcached-1.0/auto.h"
102 #include "libmemcached-1.0/behavior.h"
103 #include "libmemcached-1.0/callback.h"
104 #include "libmemcached-1.0/delete.h"
105 #include "libmemcached-1.0/dump.h"
106 #include "libmemcached-1.0/encoding_key.h"
107 #include "libmemcached-1.0/exist.h"
108 #include "libmemcached-1.0/fetch.h"
109 #include "libmemcached-1.0/flush.h"
110 #include "libmemcached-1.0/flush_buffers.h"
111 #include "libmemcached-1.0/get.h"
112 #include "libmemcached-1.0/hash.h"
113 #include "libmemcached-1.0/options.h"
114 #include "libmemcached-1.0/parse.h"
115 #include "libmemcached-1.0/quit.h"
116 #include "libmemcached-1.0/result.h"
117 #include "libmemcached-1.0/server.h"
118 #include "libmemcached-1.0/server_list.h"
119 #include "libmemcached-1.0/storage.h"
120 #include "libmemcached-1.0/strerror.h"
121 #include "libmemcached-1.0/touch.h"
122 #include "libmemcached-1.0/verbosity.h"
123 #include "libmemcached-1.0/version.h"
124 #include "libmemcached-1.0/sasl.h"
126 #include "libmemcached-1.0/deprecated_types.h"
133 void memcached_servers_reset(memcached_st
*ptr
);
136 memcached_st
*memcached_create(memcached_st
*ptr
);
139 memcached_st
*memcached(const char *string
, size_t string_length
);
142 void memcached_free(memcached_st
*ptr
);
145 memcached_return_t
memcached_reset(memcached_st
*ptr
);
148 void memcached_reset_last_disconnected_server(memcached_st
*ptr
);
151 memcached_st
*memcached_clone(memcached_st
*clone
, const memcached_st
*ptr
);
154 void *memcached_get_user_data(const memcached_st
*ptr
);
157 void *memcached_set_user_data(memcached_st
*ptr
, void *data
);
160 memcached_return_t
memcached_push(memcached_st
*destination
, const memcached_st
*source
);
163 const memcached_instance_st
* memcached_server_instance_by_position(const memcached_st
*ptr
, uint32_t server_key
);
166 uint32_t memcached_server_count(const memcached_st
*);
169 uint64_t memcached_query_id(const memcached_st
*);