From: Date: Tue, 19 Feb 2008 09:08:46 +0000 (+0530) Subject: Cleanup of memcached_fetch_execute() definition X-Git-Tag: _20~8 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=22118135dfe8e13ae0627ec65172c6889d643fd4;p=m6w6%2Flibmemcached Cleanup of memcached_fetch_execute() definition --- diff --git a/include/memcached.h b/include/memcached.h index 54589741..b3c26b1a 100644 --- a/include/memcached.h +++ b/include/memcached.h @@ -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, diff --git a/lib/memcached_fetch_execute.c b/lib/memcached_fetch_execute.c index 87227417..253687ee 100644 --- a/lib/memcached_fetch_execute.c +++ b/lib/memcached_fetch_execute.c @@ -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 )