Abstract out ptr->hosts[server_key] references.
[m6w6/libmemcached] / libmemcached / behavior.h
index 5abc0331df9d8cd67d342855821a5afe54240fd8..7a00873124a99127bdb2645ab67a30078022d6d6 100644 (file)
@@ -22,6 +22,24 @@ memcached_return_t memcached_behavior_set(memcached_st *ptr, const memcached_beh
 LIBMEMCACHED_API
 uint64_t memcached_behavior_get(memcached_st *ptr, const memcached_behavior_t flag);
 
+LIBMEMCACHED_API
+memcached_return_t memcached_behavior_set_distribution(memcached_st *ptr, memcached_server_distribution_t type);
+
+LIBMEMCACHED_API
+memcached_server_distribution_t memcached_behavior_get_distribution(memcached_st *ptr);
+
+LIBMEMCACHED_API
+memcached_return_t memcached_behavior_set_key_hash(memcached_st *ptr, memcached_hash_t type);
+
+LIBMEMCACHED_API
+memcached_hash_t memcached_behavior_get_key_hash(memcached_st *ptr);
+
+LIBMEMCACHED_API
+memcached_return_t memcached_behavior_set_distribution_hash(memcached_st *ptr, memcached_hash_t type);
+
+LIBMEMCACHED_API
+memcached_hash_t memcached_behavior_get_distribution_hash(memcached_st *ptr);
+
 
 #ifdef __cplusplus
 }