From: Brian Aker Date: Tue, 19 Jan 2010 01:11:41 +0000 (-0800) Subject: Solaris fix X-Git-Tag: 0.40~84 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=25c32fd878df9103de46b2e3b03265d41e4dde1b;p=awesomized%2Flibmemcached Solaris fix --- 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) {