X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fstats.h;h=c7d554b2eafc69c958d003498dad9656d619b655;hb=a4456cc10079f2e6f648befc91657f2723c825e5;hp=79f7e6cfbc666b2e7a307a547ee65cfc12885df9;hpb=95fd67da4903671adb5731b710798843938e8536;p=awesomized%2Flibmemcached diff --git a/libmemcached/stats.h b/libmemcached/stats.h index 79f7e6cf..c7d554b2 100644 --- a/libmemcached/stats.h +++ b/libmemcached/stats.h @@ -5,7 +5,7 @@ * Use and distribution licensed under the BSD license. See * the COPYING file in the parent directory for full text. * - * Summary: Change the behavior of the memcached connection. + * Summary: Collect up the stats for a memcached server. * */ @@ -41,6 +41,7 @@ struct memcached_stat_st { uint64_t get_misses; uint64_t limit_maxbytes; char version[MEMCACHED_VERSION_STRING_LENGTH]; + memcached_st *root; }; LIBMEMCACHED_API @@ -53,6 +54,14 @@ LIBMEMCACHED_API memcached_return_t memcached_stat_servername(memcached_stat_st *memc_stat, char *args, const char *hostname, in_port_t port); +LIBMEMCACHED_API +char *memcached_stat_get_value(memcached_st *ptr, memcached_stat_st *memc_stat, + const char *key, memcached_return_t *error); + +LIBMEMCACHED_API +char ** memcached_stat_get_keys(memcached_st *ptr, memcached_stat_st *memc_stat, + memcached_return_t *error); + #ifdef __cplusplus } #endif