Fix on definition for memcached_execute_fetch().
[awesomized/libmemcached] / libmemcached / memcached.h
index 2b5471846500c92facd95ba2a51114da1fff4b0b..3a1def4845086c06f57fcc57485762aebbf66fa5 100644 (file)
@@ -31,7 +31,12 @@ extern "C" {
 #define MEMCACHED_VERSION_STRING_LENGTH 12
 
 /* string value */
-#define LIBMEMCACHED_VERSION_STRING "0.19"
+struct memcached_continuum_item_st {
+  uint32_t index;
+  uint32_t value;
+};
+
+#define LIBMEMCACHED_VERSION_STRING "0.20"
 
 struct memcached_stat_st {
   uint32_t pid;
@@ -76,7 +81,10 @@ struct memcached_st {
   memcached_hash hash;
   memcached_server_distribution distribution;
   void *user_data;
-  unsigned int wheel[MEMCACHED_WHEEL_SIZE];
+  unsigned int *wheel;
+  uint32_t wheel_count;
+  uint32_t continuum_count;
+  memcached_continuum_item_st *continuum;
   memcached_clone_func on_clone;
   memcached_cleanup_func on_cleanup;
   memcached_free_function call_free;
@@ -90,6 +98,7 @@ struct memcached_st {
 #endif
 };
 
+
 /* Public API */
 const char * memcached_lib_version(void);
 
@@ -174,10 +183,9 @@ memcached_return memcached_delete_by_key(memcached_st *ptr,
                                          time_t expiration);
 
 memcached_return memcached_fetch_execute(memcached_st *ptr, 
-                                             unsigned int (*callback[])(memcached_st *ptr, memcached_result_st *result, void *context),
+                                             memcached_execute_function *callback,
                                              void *context,
-                                             unsigned int number_of_callbacks
-                                             );
+                                             unsigned int number_of_callbacks);
 
 memcached_return memcached_callback_set(memcached_st *ptr, 
                                         memcached_callback flag,