mirror of https://github.com/yandex/odyssey.git
28 lines
537 B
C
28 lines
537 B
C
#ifndef ODYSSEY_INSTANCE_H
|
|
#define ODYSSEY_INSTANCE_H
|
|
|
|
/*
|
|
* Odyssey.
|
|
*
|
|
* Scalable PostgreSQL connection pooler.
|
|
*/
|
|
|
|
typedef struct od_instance od_instance_t;
|
|
typedef struct timeval od_timeval_t;
|
|
|
|
struct od_instance {
|
|
od_pid_t pid;
|
|
od_logger_t logger;
|
|
char *config_file;
|
|
char *exec_path;
|
|
od_config_t config;
|
|
char *orig_argv_ptr;
|
|
int64_t shutdown_worker_id;
|
|
};
|
|
|
|
void od_instance_init(od_instance_t *);
|
|
void od_instance_free(od_instance_t *);
|
|
int od_instance_main(od_instance_t *, int, char **);
|
|
|
|
#endif /* ODYSSEY_INSTANCE_H */
|