mirror of https://github.com/yandex/odyssey.git
40 lines
736 B
C
40 lines
736 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 *modules;
|
|
};
|
|
|
|
static inline void
|
|
od_global_init(od_global_t *global,
|
|
void *instance,
|
|
void *system,
|
|
void *router,
|
|
void *cron,
|
|
void *worker_pool,
|
|
void *modules)
|
|
{
|
|
global->instance = instance;
|
|
global->system = system;
|
|
global->router = router;
|
|
global->cron = cron;
|
|
global->worker_pool = worker_pool;
|
|
global->modules = modules;
|
|
}
|
|
|
|
#endif /* ODYSSEY_GLOBAL_H */
|