2018-03-06 15:23:52 +00:00
|
|
|
#ifndef OD_CONFIG_MGR_H
|
|
|
|
#define OD_CONFIG_MGR_H
|
|
|
|
|
|
|
|
/*
|
2018-03-12 14:03:15 +00:00
|
|
|
* Odyssey.
|
2018-03-06 15:23:52 +00:00
|
|
|
*
|
|
|
|
* Advanced PostgreSQL connection pooler.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef struct od_configmgr od_configmgr_t;
|
|
|
|
|
|
|
|
struct od_configmgr
|
|
|
|
{
|
|
|
|
uint64_t version;
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline void
|
|
|
|
od_configmgr_init(od_configmgr_t *mgr)
|
|
|
|
{
|
|
|
|
mgr->version = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline uint64_t
|
|
|
|
od_configmgr_version(od_configmgr_t *mgr)
|
|
|
|
{
|
|
|
|
return mgr->version;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline uint64_t
|
|
|
|
od_configmgr_version_next(od_configmgr_t *mgr)
|
|
|
|
{
|
|
|
|
return ++mgr->version;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* OD_CONFIG_MGR_H */
|