*
*/
-#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;
/* Add result callback function */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Result Struct */
LIBMEMCACHED_API
void memcached_result_free(memcached_result_st *result);
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)
{
}
#ifdef __cplusplus
-}
+} // extern "C"
#endif
-#endif /* __MEMCACHED_RESULT_H__ */
+
+#endif /* __LIBMEMCACHED_RESULT_H__ */