Fix on definition for memcached_execute_fetch().
[awesomized/libmemcached] / libmemcached / memcached.h
index cac25a89891e6e98ba9d48129bff046cacb66594..3a1def4845086c06f57fcc57485762aebbf66fa5 100644 (file)
@@ -31,10 +31,11 @@ extern "C" {
 #define MEMCACHED_VERSION_STRING_LENGTH 12
 
 /* string value */
-struct continuum_item{
-       uint32_t index;
-       uint32_t value;
+struct memcached_continuum_item_st {
+  uint32_t index;
+  uint32_t value;
 };
+
 #define LIBMEMCACHED_VERSION_STRING "0.20"
 
 struct memcached_stat_st {
@@ -80,8 +81,10 @@ struct memcached_st {
   memcached_hash hash;
   memcached_server_distribution distribution;
   void *user_data;
-  unsigned int wheel[MEMCACHED_WHEEL_SIZE];
-  struct continuum_item continuum[MEMCACHED_CONTINUUM_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;
@@ -180,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,