2017-05-25 12:01:56 +00:00
|
|
|
#ifndef OD_INSTANCE_H_
|
|
|
|
#define OD_INSTANCE_H_
|
2017-05-25 10:53:48 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* odissey.
|
|
|
|
*
|
|
|
|
* PostgreSQL connection pooler and request router.
|
|
|
|
*/
|
|
|
|
|
2017-05-25 12:01:56 +00:00
|
|
|
typedef struct od_instance od_instance_t;
|
2017-05-25 10:53:48 +00:00
|
|
|
|
2017-05-25 12:01:56 +00:00
|
|
|
struct od_instance
|
2017-05-25 10:53:48 +00:00
|
|
|
{
|
|
|
|
od_pid_t pid;
|
|
|
|
od_syslog_t syslog;
|
|
|
|
od_log_t log;
|
|
|
|
od_config_t config;
|
|
|
|
od_scheme_t scheme;
|
2017-06-20 13:33:20 +00:00
|
|
|
od_idmgr_t id_mgr;
|
2017-05-25 10:53:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
void od_instance_init(od_instance_t*);
|
|
|
|
void od_instance_free(od_instance_t*);
|
|
|
|
int od_instance_main(od_instance_t*, int, char**);
|
|
|
|
|
2017-05-25 12:01:56 +00:00
|
|
|
#endif /* OD_INSTANCE_H */
|