X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fmemcached_result.h;h=e7ce012b3884e814e50b065c496b00b00c0e91b6;hb=9141e90dccb732d6e7ef10ea248ce2fd7d1ef46b;hp=77f120104ae89f9d57c3693f83761f9c8f2e8f28;hpb=76869574486dceca688e05b7028d8b88485a36a0;p=awesomized%2Flibmemcached diff --git a/libmemcached/memcached_result.h b/libmemcached/memcached_result.h index 77f12010..e7ce012b 100644 --- a/libmemcached/memcached_result.h +++ b/libmemcached/memcached_result.h @@ -6,17 +6,26 @@ * Author: Brian Aker */ -#ifndef LIBMEMCACHED_MEMCACHED_RESULT_H -#define LIBMEMCACHED_MEMCACHED_RESULT_H - -#ifndef LIBMEMCACHED_MEMCACHED_H -#error "Please include instead" -#endif +#ifndef __MEMCACHED_RESULT_H__ +#define __MEMCACHED_RESULT_H__ #ifdef __cplusplus extern "C" { #endif +struct memcached_result_st { + uint32_t flags; + bool is_allocated; + time_t expiration; + memcached_st *root; + size_t key_length; + uint64_t cas; + memcached_string_st value; + char key[MEMCACHED_MAX_KEY]; + /* Add result callback function */ +}; + +/* Result Struct */ LIBMEMCACHED_API void memcached_result_free(memcached_result_st *result); LIBMEMCACHED_API @@ -47,4 +56,4 @@ memcached_return memcached_result_set_value(memcached_result_st *ptr, const char } #endif -#endif /* LIBMEMCACHED_MEMCACHED_RESULT_H */ +#endif /* __MEMCACHED_RESULT_H__ */