Adding support for libmemcached_ping().
[awesomized/libmemcached] / libmemcached / behavior.h
index 5abc0331df9d8cd67d342855821a5afe54240fd8..39a430d7fa526f470476c14c38386c3fc18bf8cc 100644 (file)
@@ -9,8 +9,8 @@
  *
  */
 
-#ifndef __MEMCACHED_BEHAVIOR_H__
-#define __MEMCACHED_BEHAVIOR_H__
+#ifndef __LIBMEMCACHED_BEHAVIOR_H__
+#define __LIBMEMCACHED_BEHAVIOR_H__
 
 #ifdef __cplusplus
 extern "C" {
@@ -22,9 +22,30 @@ 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);
+
+LIBMEMCACHED_LOCAL
+bool _is_auto_eject_host(const memcached_st *ptr);
+
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* __MEMCACHED_BEHAVIOR_H__ */
+#endif /* __LIBMEMCACHED_BEHAVIOR_H__ */