2018-08-28 14:43:46 +00:00
|
|
|
#ifndef ODYSSEY_INSTANCE_H
|
|
|
|
#define ODYSSEY_INSTANCE_H
|
2017-05-25 10:53:48 +00:00
|
|
|
|
|
|
|
/*
|
2018-03-12 14:03:15 +00:00
|
|
|
* Odyssey.
|
2017-05-25 10:53:48 +00:00
|
|
|
*
|
2018-04-04 13:19:58 +00:00
|
|
|
* Scalable PostgreSQL connection pooler.
|
2020-04-02 11:00:56 +00:00
|
|
|
*/
|
2017-05-25 10:53:48 +00:00
|
|
|
|
2017-05-25 12:01:56 +00:00
|
|
|
typedef struct od_instance od_instance_t;
|
2020-07-26 07:58:15 +00:00
|
|
|
typedef struct timeval od_timeval_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
|
|
|
{
|
2020-04-02 11:00:56 +00:00
|
|
|
od_pid_t pid;
|
|
|
|
od_logger_t logger;
|
|
|
|
char *config_file;
|
|
|
|
od_config_t config;
|
2020-07-26 07:58:15 +00:00
|
|
|
char *orig_argv_ptr;
|
2020-08-08 16:00:31 +00:00
|
|
|
int64_t shutdown_worker_id;
|
2017-05-25 10:53:48 +00:00
|
|
|
};
|
|
|
|
|
2020-04-02 11:00:56 +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 10:53:48 +00:00
|
|
|
|
2018-08-28 14:43:46 +00:00
|
|
|
#endif /* ODYSSEY_INSTANCE_H */
|