summaryrefslogtreecommitdiff
path: root/items.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 /items.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 'items.h')
-rw-r--r--items.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/items.h b/items.h
index ab680ed..9c62e44 100644
--- a/items.h
+++ b/items.h
@@ -15,14 +15,9 @@ int do_item_replace(item *it, item *new_it);
/*@null@*/
char *do_item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, unsigned int *bytes);
-char *do_item_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 *bytes);
+void do_item_stats(ADD_STAT add_stats, void *c);
/*@null@*/
-char *do_item_stats_sizes(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 *bytes);
-
+void do_item_stats_sizes(ADD_STAT add_stats, void *c);
void do_item_flush_expired(void);
item *do_item_get(const char *key, const size_t nkey);