X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fcommon.h;h=2fe6b0f8cf6988ccbbd38bdfc8ac0c731b34d37f;hb=a28d1ecc082d9d08c4f59f071de9a43fbd08aee3;hp=f45eaffd4474894390f8d1142eb2796cdcefb61d;hpb=645f3f1271ac967d9f98475f685e8820f9fe1ca6;p=m6w6%2Flibmemcached diff --git a/libmemcached/common.h b/libmemcached/common.h index f45eaffd..2fe6b0f8 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -49,17 +49,19 @@ #include #include #include -#include +#include +#include +#include #else #include #include #include #include +#include +#include #endif -#include #include -#include #include #include @@ -67,10 +69,9 @@ #include #endif -#include +#include #include #include -#include #include @@ -106,7 +107,17 @@ memcached_return_t memcached_server_execute(memcached_st *ptr, #ifdef __cplusplus #include #include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #endif #include #include @@ -114,13 +125,19 @@ memcached_return_t memcached_server_execute(memcached_st *ptr, #include #include #include +#ifdef __cplusplus #include +#endif #include +#include #ifdef __cplusplus #include #include #include +#include +#include +#include #endif #include @@ -145,9 +162,6 @@ memcached_return_t memcached_server_execute(memcached_st *ptr, extern "C" { #endif -LIBMEMCACHED_LOCAL -memcached_return_t memcached_connect(memcached_server_write_instance_st ptr); - LIBMEMCACHED_LOCAL memcached_return_t run_distribution(memcached_st *ptr); @@ -155,45 +169,7 @@ memcached_return_t run_distribution(memcached_st *ptr); #define memcached_server_response_decrement(A) (A)->cursor_active-- #define memcached_server_response_reset(A) (A)->cursor_active=0 -LIBMEMCACHED_LOCAL -void set_last_disconnected_host(memcached_server_write_instance_st ptr); - -#ifdef __cplusplus -LIBMEMCACHED_LOCAL -memcached_return_t memcached_key_test(const memcached_st& memc, - const char * const *keys, - const size_t *key_length, - size_t number_of_keys); -#endif - -LIBMEMCACHED_LOCAL -memcached_return_t memcached_purge(memcached_server_write_instance_st ptr); - - -static inline memcached_return_t memcached_validate_key_length(size_t key_length, bool binary) -{ - if (key_length == 0) - { - return MEMCACHED_BAD_KEY_PROVIDED; - } - - if (binary) - { - if (key_length > 0xffff) - { - return MEMCACHED_BAD_KEY_PROVIDED; - } - } - else - { - if (key_length >= MEMCACHED_MAX_KEY) - { - return MEMCACHED_BAD_KEY_PROVIDED; - } - } - - return MEMCACHED_SUCCESS; -} +bool memcached_purge(memcached_server_write_instance_st ptr); #ifdef __cplusplus }