Work inspired by matt knox
[m6w6/libmemcached] / libmemcached / memcached_pool.h
1 /*
2 * Summary: Connection pool implementation for libmemcached.
3 *
4 * Copy: See Copyright for the status of this software.
5 *
6 * Author: Trond Norbye
7 */
8
9 #ifndef MEMCACHED_POOL_H
10 #define MEMCACHED_POOL_H
11
12 #include <libmemcached/memcached.h>
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 struct memcached_pool_st;
19 typedef struct memcached_pool_st memcached_pool_st;
20 memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial,
21 uint32_t max);
22 memcached_st* memcached_pool_destroy(memcached_pool_st* pool);
23 memcached_st* memcached_pool_pop(memcached_pool_st* pool,
24 bool block,
25 memcached_return* rc);
26 memcached_return memcached_pool_push(memcached_pool_st* pool,
27 memcached_st* mmc);
28
29 #ifdef __cplusplus
30 }
31 #endif
32
33 #endif /* MEMCACHED_POOL_H */