*
*/
-#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;
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);
}
#ifdef __cplusplus
-}
+} // extern "C"
#endif
-#endif /* __MEMCACHED_RESULT_H__ */
+
+#endif /* __LIBMEMCACHED_RESULT_H__ */