2016-11-09 12:08:55 +00:00
|
|
|
#ifndef OD_CLIENT_POOL_H_
|
|
|
|
#define OD_CLIENT_POOL_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* odissey.
|
|
|
|
*
|
|
|
|
* PostgreSQL connection pooler and request router.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct odclient_pool_t odclient_pool_t;
|
|
|
|
|
|
|
|
struct odclient_pool_t {
|
2016-11-29 13:03:39 +00:00
|
|
|
od_list_t list;
|
|
|
|
int count;
|
2016-11-09 12:08:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void od_clientpool_init(odclient_pool_t*);
|
|
|
|
void od_clientpool_free(odclient_pool_t*);
|
|
|
|
|
2016-11-29 13:14:50 +00:00
|
|
|
od_client_t*
|
2016-11-09 12:08:55 +00:00
|
|
|
od_clientpool_new(odclient_pool_t*);
|
|
|
|
|
|
|
|
void
|
2016-11-29 13:14:50 +00:00
|
|
|
od_clientpool_unlink(odclient_pool_t*, od_client_t*);
|
2016-11-09 12:08:55 +00:00
|
|
|
|
|
|
|
#endif
|