X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached-1.0%2Fstruct%2Fmemcached.h;h=63b07a00e80a8b3b6219524515e6ef756a51ac94;hb=facfe08e21d2c3135c508ff098ff603ddaacef3e;hp=a3f9d279306d9e8a705f9163f2de611a5e6d3bff;hpb=1054bac0d64844c968d1dcb6d5478315bfd4d7a8;p=m6w6%2Flibmemcached diff --git a/libmemcached-1.0/struct/memcached.h b/libmemcached-1.0/struct/memcached.h index a3f9d279..63b07a00 100644 --- a/libmemcached-1.0/struct/memcached.h +++ b/libmemcached-1.0/struct/memcached.h @@ -45,6 +45,7 @@ struct memcached_st { bool is_purging:1; bool is_processing_input:1; bool is_time_for_rebuild:1; + bool not_used:1; } state; struct { @@ -62,6 +63,9 @@ struct memcached_st { bool use_udp:1; bool verify_key:1; bool tcp_keepalive:1; + bool is_aes:1; + bool is_fetching_version:1; + bool not_used:1; } flags; memcached_server_distribution_t distribution; @@ -70,8 +74,13 @@ struct memcached_st { unsigned int version; } server_info; uint32_t number_of_hosts; - memcached_server_st *servers; - memcached_server_st *last_disconnected_server; +#ifdef __cplusplus + org::libmemcached::Instance* servers; + org::libmemcached::Instance* last_disconnected_server; +#else + void *servers; + void *last_disconnected_server; +#endif int32_t snd_timeout; int32_t rcv_timeout; uint32_t server_failure_limit; @@ -91,11 +100,11 @@ struct memcached_st { memcached_result_st result; struct { - bool weighted; + bool weighted_; uint32_t continuum_count; // Ketama uint32_t continuum_points_counter; // Ketama time_t next_distribution_rebuild; // Ketama - memcached_continuum_item_st *continuum; // Ketama + struct memcached_continuum_item_st *continuum; // Ketama } ketama; struct memcached_virtual_bucket_t *virtual_bucket;