X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fanalyze.h;h=4a8128bd14fd1ab13cc0496d2c73e789615aec9c;hb=c4dbc7e56b01545e25bc95ba122c79d4a2631a99;hp=3323e8551a8521997ce8d339070db0977a233a01;hpb=95fd67da4903671adb5731b710798843938e8536;p=awesomized%2Flibmemcached diff --git a/libmemcached/analyze.h b/libmemcached/analyze.h index 3323e855..4a8128bd 100644 --- a/libmemcached/analyze.h +++ b/libmemcached/analyze.h @@ -5,22 +5,14 @@ * 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: Generate a memcached_analysis_st * */ -#ifndef __MEMCACHED_ANALYZE_H__ -#define __MEMCACHED_ANALYZE_H__ - -#ifdef __cplusplus -extern "C" { -#endif - +#ifndef __LIBMEMCACHED_ANALYZE_H__ +#define __LIBMEMCACHED_ANALYZE_H__ struct memcached_analysis_st { - struct { - bool allocated:1; - } options; memcached_st *root; uint32_t average_item_size; uint32_t longest_uptime; @@ -32,6 +24,9 @@ struct memcached_analysis_st { uint64_t least_remaining_bytes; }; +#ifdef __cplusplus +extern "C" { +#endif LIBMEMCACHED_API memcached_analysis_st *memcached_analyze(memcached_st *memc, @@ -45,4 +40,4 @@ void memcached_analyze_free(memcached_analysis_st *); } #endif -#endif /* __MEMCACHED_ANALYZE_H__ */ +#endif /* __LIBMEMCACHED_ANALYZE_H__ */