X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fresult.h;h=ea057569f4b90ffa68f93dc248b22e04f50d8dab;hb=6773e61da2d38f47d9c70212d618a91cf889491e;hp=f01550e721e123a8e6f17924ede897b480c6a57e;hpb=7e592f0e6938506a8f9e228b40557c5bb8a10a0b;p=m6w6%2Flibmemcached diff --git a/libmemcached/result.h b/libmemcached/result.h index f01550e7..ea057569 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; @@ -31,6 +27,10 @@ struct memcached_result_st { /* Add result callback function */ }; +#ifdef __cplusplus +extern "C" { +#endif + /* Result Struct */ LIBMEMCACHED_API void memcached_result_free(memcached_result_st *result); @@ -74,10 +74,8 @@ static inline uint64_t memcached_result_cas(const memcached_result_st *self) return self->item_cas; } -static inline memcached_return_t memcached_result_set_value(memcached_result_st *ptr, const char *value, size_t length) -{ - return memcached_string_append(&ptr->value, value, length); -} +LIBMEMCACHED_API +memcached_return_t memcached_result_set_value(memcached_result_st *ptr, const char *value, size_t length); static inline void memcached_result_set_flags(memcached_result_st *self, uint32_t flags) { @@ -90,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__ */