odyssey/sources/global.h

37 lines
695 B
C

#ifndef ODYSSEY_GLOBAL_H
#define ODYSSEY_GLOBAL_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
typedef struct od_global od_global_t;
struct od_global {
void *instance;
void *system;
void *router;
void *cron;
void *worker_pool;
void *extentions;
void *hba;
};
static inline void od_global_init(od_global_t *global, void *instance,
void *system, void *router, void *cron,
void *worker_pool, void *extentions,
void *hba)
{
global->instance = instance;
global->system = system;
global->router = router;
global->cron = cron;
global->worker_pool = worker_pool;
global->extentions = extentions;
global->hba = hba;
}
#endif /* ODYSSEY_GLOBAL_H */