Fix issue where hash might not be quite initialized. Also remove redundant bit to...
[awesomized/libmemcached] / libmemcached / behavior.h
index 7a00873124a99127bdb2645ab67a30078022d6d6..ca6fb49207b44b1fa85c597aa1680b2d9d2e8421 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" {
@@ -40,9 +40,24 @@ memcached_return_t memcached_behavior_set_distribution_hash(memcached_st *ptr, m
 LIBMEMCACHED_API
 memcached_hash_t memcached_behavior_get_distribution_hash(memcached_st *ptr);
 
+LIBMEMCACHED_LOCAL
+bool _is_auto_eject_host(const memcached_st *ptr);
+
+LIBMEMCACHED_LOCAL
+  const char *libmemcached_string_behavior(const memcached_behavior_t flag);
+
+LIBMEMCACHED_LOCAL
+  const char *libmemcached_string_distribution(const memcached_server_distribution_t flag);
+
+LIBMEMCACHED_API
+  memcached_return_t memcached_bucket_set(memcached_st *self,
+                                          const uint32_t *host_map,
+                                          const uint32_t *forward_map,
+                                          const uint32_t buckets,
+                                          const uint32_t replicas);
 
 #ifdef __cplusplus
 }
 #endif
 
-#endif /* __MEMCACHED_BEHAVIOR_H__ */
+#endif /* __LIBMEMCACHED_BEHAVIOR_H__ */