summaryrefslogtreecommitdiff
path: root/slabs.h
diff options
context:
space:
mode:
authorToru Maesaka <dev@torum.net>2008-10-19 21:33:25 +0900
committerDustin Sallings <dustin@spy.net>2009-01-03 00:09:12 -0800
commit3bdfd4637c6347d617a1e4f14d161a431edfe929 (patch)
tree9b215f3f9e55428d489049ec206b497ce48f99f5 /slabs.h
parentb2b4942917cb1d8a62016f3478eb4f8e605194a4 (diff)
downloadmemcached-3bdfd4637c6347d617a1e4f14d161a431edfe929.tar.gz
Fix for stats opaque issue pointed out at the hackathon and removed some wasteful function calls (more to come).
Diffstat (limited to 'slabs.h')
-rw-r--r--slabs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/slabs.h b/slabs.h
index 42af9cc..78f2864 100644
--- a/slabs.h
+++ b/slabs.h
@@ -25,12 +25,12 @@ void do_slabs_free(void *ptr, size_t size, unsigned int id);
/** Return a datum for stats in binary protocol */
char *get_stats(const char *stat_type, uint32_t (*add_stats)(char *buf,
const char *key, const uint16_t klen, const char *val,
- const uint32_t vlen), int *buflen);
+ const uint32_t vlen, void *cookie), void *arg, int *buflen);
/** Fill buffer with stats */ /*@null@*/
-char *do_slabs_stats(uint32_t (*add_stats)(char *buf, const char *key,
- const uint16_t klen, const char *val,
- const uint32_t vlen), int *buflen);
+char *do_slabs_stats(uint32_t (*add_stats)(char *buf,
+ const char *key, const uint16_t klen, const char *val,
+ const uint32_t vlen, void *cookie), void *c, int *buflen);
/* Request some slab be moved between classes
1 = success