2018-02-22 13:43:52 +00:00
|
|
|
#ifndef OD_ROUTER_CANCEL_H
|
|
|
|
#define OD_ROUTER_CANCEL_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Odissey.
|
|
|
|
*
|
|
|
|
* Advanced PostgreSQL connection pooler.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2018-03-06 15:23:52 +00:00
|
|
|
od_id_t id;
|
|
|
|
od_configstorage_t *config;
|
|
|
|
shapito_key_t key;
|
2018-02-22 13:43:52 +00:00
|
|
|
} od_routercancel_t;
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
od_routercancel_init(od_routercancel_t *cancel)
|
|
|
|
{
|
2018-03-06 15:23:52 +00:00
|
|
|
cancel->config = NULL;
|
2018-02-22 13:43:52 +00:00
|
|
|
shapito_key_init(&cancel->key);
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
od_routercancel_free(od_routercancel_t *cancel)
|
|
|
|
{
|
2018-03-06 15:23:52 +00:00
|
|
|
if (cancel->config)
|
|
|
|
od_configstorage_free(cancel->config);
|
2018-02-22 13:43:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|