X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached.h;h=45d4085f443c244350c63a50ae646e4dd5bd5003;hb=3d1c182f0918fc41bb8a580494771f7504c5deb2;hp=2b5471846500c92facd95ba2a51114da1fff4b0b;hpb=371a82b527a8692fcaad05994a8823776fb6efa3;p=m6w6%2Flibmemcached diff --git a/libmemcached/memcached.h b/libmemcached/memcached.h index 2b547184..45d4085f 100644 --- a/libmemcached/memcached.h +++ b/libmemcached/memcached.h @@ -31,7 +31,12 @@ extern "C" { #define MEMCACHED_VERSION_STRING_LENGTH 12 /* string value */ -#define LIBMEMCACHED_VERSION_STRING "0.19" +struct memcached_continuum_item_st { + uint32_t index; + uint32_t value; +}; + +#define LIBMEMCACHED_VERSION_STRING "0.20" struct memcached_stat_st { uint32_t pid; @@ -77,6 +82,8 @@ struct memcached_st { memcached_server_distribution distribution; void *user_data; unsigned int wheel[MEMCACHED_WHEEL_SIZE]; + uint32_t continuum_count; + memcached_continuum_item_st *continuum; memcached_clone_func on_clone; memcached_cleanup_func on_cleanup; memcached_free_function call_free; @@ -90,6 +97,7 @@ struct memcached_st { #endif }; + /* Public API */ const char * memcached_lib_version(void);