From: Date: Mon, 10 Mar 2008 17:04:35 +0000 (-0400) Subject: Refactor to allow memcached_string_st to be public (and useable) X-Git-Tag: 0.20~1^2~60 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=1d6e6af8afc6a08163160d8107276cac79688751;p=awesomized%2Flibmemcached Refactor to allow memcached_string_st to be public (and useable) --- diff --git a/libmemcached/common.h b/libmemcached/common.h index 14a17076..288f421d 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -99,10 +99,6 @@ void memcached_quit_server(memcached_server_st *ptr, uint8_t io_death); #define memcached_server_response_decrement(A) (A)->cursor_active-- #define memcached_server_response_reset(A) (A)->cursor_active=0 -/* String Struct */ -memcached_string_st *memcached_string_create(memcached_st *ptr, - memcached_string_st *string, - size_t initial_size); memcached_return memcached_do(memcached_server_st *ptr, char *commmand, size_t command_length, uint8_t with_flush); memcached_return memcached_version(memcached_st *ptr); diff --git a/libmemcached/memcached_string.h b/libmemcached/memcached_string.h index 990c76ee..350d1b51 100644 --- a/libmemcached/memcached_string.h +++ b/libmemcached/memcached_string.h @@ -27,6 +27,9 @@ struct memcached_string_st { #define memcached_string_size(A) (A)->current_size #define memcached_string_value(A) (A)->string +memcached_string_st *memcached_string_create(memcached_st *ptr, + memcached_string_st *string, + size_t initial_size); memcached_return memcached_string_check(memcached_string_st *string, size_t need); char *memcached_string_c_copy(memcached_string_st *string); memcached_return memcached_string_append_character(memcached_string_st *string, diff --git a/tests/function.c b/tests/function.c index 76138d1b..bcf08fe6 100644 --- a/tests/function.c +++ b/tests/function.c @@ -11,7 +11,6 @@ #include #include #include "server.h" -#include "../libmemcached/common.h" #include "../clients/generator.h" #include "../clients/execute.h"