diff options
author | Continuous Integration <ci@tangent.org> | 2012-12-16 23:09:26 -0500 |
---|---|---|
committer | Continuous Integration <ci@tangent.org> | 2012-12-16 23:09:26 -0500 |
commit | c1596d5be1acbdd6f9bef38f4cb62730dc5ac7b6 (patch) | |
tree | c2bd2f8e180b66ac2e0e96fe3252f8a4c67a401a /libmemcached-1.2 | |
parent | cc1d48bf8751239017508486d140dd53f47b53eb (diff) | |
parent | 00302d4a2232f8baffe8f175fda688de7989d0a1 (diff) | |
download | libmemcached-c1596d5be1acbdd6f9bef38f4cb62730dc5ac7b6.tar.gz |
Merge lp:~tangent-org/libmemcached/1.2-build/ Build: jenkins-Libmemcached-169
Diffstat (limited to 'libmemcached-1.2')
-rw-r--r-- | libmemcached-1.2/struct/result.h | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/libmemcached-1.2/struct/result.h b/libmemcached-1.2/struct/result.h index c3bfddb5..4a3c4ba6 100644 --- a/libmemcached-1.2/struct/result.h +++ b/libmemcached-1.2/struct/result.h @@ -37,20 +37,26 @@ #pragma once -struct memcached_result_st { - uint32_t item_flags; - time_t item_expiration; - size_t key_length; - uint64_t item_cas; - struct memcached_st *root; - memcached_string_st value; - uint64_t numeric_value; - uint64_t count; - char item_key[MEMCACHED_MAX_KEY]; +#ifdef __cplusplus +struct Result; +#endif + +struct memcached_result_st +{ struct { - bool is_allocated:1; - bool is_initialized:1; + bool is_allocated; + bool is_initialized; } options; - /* Add result callback function */ -}; + void *_impl; +#ifdef __cplusplus + struct Result* impl() const + { + return (Result*)(_impl); + } + void impl(Result* impl_) + { + _impl= impl_; + } +#endif +}; |