X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fis.h;h=25ebe03ec842637c46dc7e6ca8a50560efed249c;hb=8da5675f446c52fa0410edeb8d94ad18201b004b;hp=9f8783d8df4bee1097f3a03f720e486683aea6b8;hpb=4516b19d6171edf4830d4502818a52187db0d37e;p=m6w6%2Flibmemcached diff --git a/libmemcached/is.h b/libmemcached/is.h index 9f8783d8..25ebe03e 100644 --- a/libmemcached/is.h +++ b/libmemcached/is.h @@ -39,10 +39,21 @@ /* These are private */ #define memcached_is_allocated(__object) ((__object)->options.is_allocated) +#define memcached_is_encrypted(__object) ((__object)->hashkit._key) #define memcached_is_udp(__object) ((__object)->flags.use_udp) +#define memcached_is_verify_key(__object) ((__object)->flags.verify_key) +#define memcached_is_binary(__object) ((__object)->flags.binary_protocol) #define memcached_is_initialized(__object) ((__object)->options.is_initialized) #define memcached_is_purging(__object) ((__object)->state.is_purging) #define memcached_is_processing_input(__object) ((__object)->state.is_processing_input) + +#define memcached_is_buffering(__object) ((__object)->flags.buffer_requests) +#define memcached_is_replying(__object) ((__object)->flags.reply) + +#define memcached_has_error(__object) ((__object)->error_messages) + +#define memcached_has_replicas(__object) ((__object)->root->number_of_replicas) + #define memcached_set_purging(__object, __value) ((__object)->state.is_purging= (__value)) #define memcached_set_processing_input(__object, __value) ((__object)->state.is_processing_input= (__value)) #define memcached_set_initialized(__object, __value) ((__object)->options.is_initialized(= (__value))