Merge Monty
[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
21 LIBMEMCACHED_API
22 memcached_pool_st *memcached_pool_create(memcached_st* mmc, uint32_t initial,
23 uint32_t max);
24 LIBMEMCACHED_API
25 memcached_st* memcached_pool_destroy(memcached_pool_st* pool);
26 LIBMEMCACHED_API
27 memcached_st* memcached_pool_pop(memcached_pool_st* pool,
28 bool block,
29 memcached_return* rc);
30 LIBMEMCACHED_API
31 memcached_return memcached_pool_push(memcached_pool_st* pool,
32 memcached_st* mmc);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* MEMCACHED_POOL_H */