X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Futil%2Fpool.h;h=f00966aa83ee50d515863c192a4647edd9db1e43;hb=18ace40ddb7271f3f5e71965f74fe11d7754bd8f;hp=b6325f3e6b968f948608bf5adce81fb50b075e61;hpb=8b63456935a638f6d401c1ee09dcb073d110841a;p=awesomized%2Flibmemcached diff --git a/libmemcached/util/pool.h b/libmemcached/util/pool.h index b6325f3e..f00966aa 100644 --- a/libmemcached/util/pool.h +++ b/libmemcached/util/pool.h @@ -10,8 +10,8 @@ */ -#ifndef MEMCACHED_POOL_H -#define MEMCACHED_POOL_H +#ifndef __LIMEMCACHED_UTIL_POOL_H__ +#define __LIMEMCACHED_UTIL_POOL_H__ #include @@ -23,10 +23,14 @@ struct memcached_pool_st; typedef struct memcached_pool_st memcached_pool_st; LIBMEMCACHED_API -memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial, - uint32_t max); +memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial, uint32_t max); + +LIBMEMCACHED_API +memcached_pool_st *memcached_pool(const char *option_string, size_t option_string_length); + LIBMEMCACHED_API memcached_st* memcached_pool_destroy(memcached_pool_st* pool); + LIBMEMCACHED_API memcached_st* memcached_pool_pop(memcached_pool_st* pool, bool block, @@ -45,7 +49,7 @@ memcached_return_t memcached_pool_behavior_get(memcached_pool_st *ptr, uint64_t *value); #ifdef __cplusplus -} +} // extern "C" #endif -#endif /* MEMCACHED_POOL_H */ +#endif /* __LIMEMCACHED_UTIL_POOL_H__ */