summaryrefslogtreecommitdiff
path: root/slabs.h
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-04-02 18:16:36 +0200
committerDustin Sallings <dustin@spy.net>2009-04-02 12:24:08 -0700
commit17df5c0e055e0de94feecab1eb89a79ab6836628 (patch)
tree59a00e244e4cb87c647322b46afd3fbd40f4ebd5 /slabs.h
parent756cf326e53b0ddbfa1f9d1254851b5881456c6b (diff)
downloadmemcached-17df5c0e055e0de94feecab1eb89a79ab6836628.tar.gz
Don't expose the protocol used to the client api of the stats
(dustin) I made some changes to the original growth code to pass in the required size.
Diffstat (limited to 'slabs.h')
-rw-r--r--slabs.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/slabs.h b/slabs.h
index e71a84f..685ca88 100644
--- a/slabs.h
+++ b/slabs.h
@@ -25,15 +25,10 @@ void *slabs_alloc(const size_t size, unsigned int id);
void 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, int nkey,
- uint32_t (*add_stats)(char *buf,
- const char *key, const uint16_t klen, const char *val,
- const uint32_t vlen, void *cookie), void *arg, int *buflen);
+bool get_stats(const char *stat_type, int nkey, ADD_STAT add_stats, void *c);
/** Fill buffer with stats */ /*@null@*/
-char *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);
+void slabs_stats(ADD_STAT add_stats, void *c);
/* Request some slab be moved between classes
1 = success