From 25c32fd878df9103de46b2e3b03265d41e4dde1b Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Mon, 18 Jan 2010 17:11:41 -0800 Subject: [PATCH] Solaris fix --- docs/memcached_result_st.pod | 2 +- libmemcached/result.c | 7 +++++++ libmemcached/result.h | 6 ++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/memcached_result_st.pod b/docs/memcached_result_st.pod index a81442e2..7fbc394b 100644 --- a/docs/memcached_result_st.pod +++ b/docs/memcached_result_st.pod @@ -34,7 +34,7 @@ C Client Library for memcached (libmemcached, -lmemcached) memcached_return_t memcached_result_set_value (memcached_result_st *ptr, - char *value, size_t length) + const char *value, size_t length) void memcached_result_set_flags (memcached_result_st *ptr, uint32_t flags) diff --git a/libmemcached/result.c b/libmemcached/result.c index d7c2fa58..907823d8 100644 --- a/libmemcached/result.c +++ b/libmemcached/result.c @@ -87,3 +87,10 @@ void memcached_result_free(memcached_result_st *ptr) ptr->options.is_initialized= false; } } + +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); +} diff --git a/libmemcached/result.h b/libmemcached/result.h index f01550e7..5e7bb69d 100644 --- a/libmemcached/result.h +++ b/libmemcached/result.h @@ -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) { -- 2.30.2