diff options
author | Toru Maesaka <dev@torum.net> | 2008-07-08 19:28:55 +0900 |
---|---|---|
committer | Toru Maesaka <dev@torum.net> | 2008-07-08 19:28:55 +0900 |
commit | f4a8e7ff332e9cbf27f28ed4791708469438d298 (patch) | |
tree | 156c1c846da13148a06f375dd682ad1768289521 /slabs.h | |
parent | 4c77f5910b5ac03b3f26cc68f3f1c11a5a38b867 (diff) | |
download | memcached-f4a8e7ff332e9cbf27f28ed4791708469438d298.tar.gz |
The slabber is now given a callback to perform binary stats.
Diffstat (limited to 'slabs.h')
-rw-r--r-- | slabs.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -22,8 +22,11 @@ void *do_slabs_alloc(const size_t size, unsigned int id); /** Free previously allocated object */ void do_slabs_free(void *ptr, size_t size, unsigned int id); -/** Fill and return the requested stats */ -char *get_stats(const char *stat_type); +/** Return a datum for stats in binary protocol */ +char *get_stats(const bool bin_prot, const char *stat_type, + uint32_t (*callback)(char *buf, const char *key, + const char *val, const uint16_t klen, const uint32_t vlen), + int *buflen); /** Fill buffer with stats */ /*@null@*/ char* do_slabs_stats(int *buflen); |