Cleanup of memcached_fetch_execute() definition
author <brian@gir-2.local> <>
Tue, 19 Feb 2008 09:08:46 +0000 (14:38 +0530)
committer <brian@gir-2.local> <>
Tue, 19 Feb 2008 09:08:46 +0000 (14:38 +0530)
include/memcached.h
lib/memcached_fetch_execute.c

index 5458974170e997ffaf1a78899c44de4970baf3f7..b3c26b1a073c76a9f42bbde35aa81b0affcf97d9 100644 (file)
@@ -81,6 +81,7 @@ typedef memcached_return (*memcached_cleanup_func)(memcached_st *ptr);
 typedef void (*memcached_free_function)(memcached_st *ptr, void *mem);
 typedef void *(*memcached_malloc_function)(memcached_st *ptr, const size_t size);
 typedef void *(*memcached_realloc_function)(memcached_st *ptr, void *mem, const size_t size);
+typedef unsigned int (*memcached_execute_function)(memcached_st *ptr, memcached_result_st *result, void *context);
 
 typedef enum {
   MEMCACHED_DISTRIBUTION_MODULA,
index 87227417bc65517588fdcb330190e7b2fe93c005..253687ee465978c4278134097a9a827c4a9b2957 100644 (file)
@@ -1,7 +1,7 @@
 #include "common.h"
 
 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
                                              )