diff options
author | Trond Norbye <Trond.Norbye@sun.com> | 2009-04-02 18:16:36 +0200 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-04-02 12:24:08 -0700 |
commit | 17df5c0e055e0de94feecab1eb89a79ab6836628 (patch) | |
tree | 59a00e244e4cb87c647322b46afd3fbd40f4ebd5 /items.h | |
parent | 756cf326e53b0ddbfa1f9d1254851b5881456c6b (diff) | |
download | memcached-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.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -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); |