X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fresult.h;h=a7fe00b48a5666272cce1e782a3fdab27c6dddf6;hb=56bb95c23210147d45b792e4e494e995d9de76dc;hp=5e7bb69d3f019d2a26c412fb3f3ea5847bc0dd53;hpb=a4456cc10079f2e6f648befc91657f2723c825e5;p=awesomized%2Flibmemcached diff --git a/libmemcached/result.h b/libmemcached/result.h index 5e7bb69d..a7fe00b4 100644 --- a/libmemcached/result.h +++ b/libmemcached/result.h @@ -9,12 +9,8 @@ * */ -#ifndef __MEMCACHED_RESULT_H__ -#define __MEMCACHED_RESULT_H__ - -#ifdef __cplusplus -extern "C" { -#endif +#ifndef __LIBMEMCACHED_RESULT_H__ +#define __LIBMEMCACHED_RESULT_H__ struct memcached_result_st { uint32_t item_flags; @@ -25,12 +21,16 @@ struct memcached_result_st { memcached_string_st value; char item_key[MEMCACHED_MAX_KEY]; struct { - bool is_allocated:1; - bool is_initialized:1; + bool is_allocated MEMCACHED_BITFIELD; + bool is_initialized MEMCACHED_BITFIELD; } options; /* Add result callback function */ }; +#ifdef __cplusplus +extern "C" { +#endif + /* Result Struct */ LIBMEMCACHED_API void memcached_result_free(memcached_result_st *result); @@ -88,7 +88,8 @@ static inline void memcached_result_set_expiration(memcached_result_st *self, ti } #ifdef __cplusplus -} +} // extern "C" #endif -#endif /* __MEMCACHED_RESULT_H__ */ + +#endif /* __LIBMEMCACHED_RESULT_H__ */