2017-05-25 12:01:56 +00:00
|
|
|
#ifndef OD_INSTANCE_H_
|
|
|
|
#define OD_INSTANCE_H_
|
2017-05-25 10:53:48 +00:00
|
|
|
|
|
|
|
/*
|
2017-07-05 12:42:49 +00:00
|
|
|
* Odissey.
|
2017-05-25 10:53:48 +00:00
|
|
|
*
|
2017-07-05 12:42:49 +00:00
|
|
|
* Advanced PostgreSQL connection pooler.
|
2017-05-25 10:53:48 +00:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
{
|
2017-07-19 11:29:23 +00:00
|
|
|
od_pid_t pid;
|
2017-07-26 14:05:29 +00:00
|
|
|
od_logger_t logger;
|
2017-07-19 11:29:23 +00:00
|
|
|
od_idmgr_t id_mgr;
|
|
|
|
od_schememgr_t scheme_mgr;
|
|
|
|
od_scheme_t scheme;
|
2018-02-12 13:27:06 +00:00
|
|
|
shapito_cache_t stream_cache;
|
2018-02-02 13:44:47 +00:00
|
|
|
int is_shared;
|
2017-07-19 11:29:23 +00:00
|
|
|
char *config_file;
|
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 */
|