2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
/*
|
2018-03-12 14:03:15 +00:00
|
|
|
* Odyssey.
|
2017-05-24 11:57:15 +00:00
|
|
|
*
|
2018-04-04 13:19:58 +00:00
|
|
|
* Scalable PostgreSQL connection pooler.
|
2017-05-24 11:57:15 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
2017-06-20 15:43:46 +00:00
|
|
|
#include <string.h>
|
2018-08-28 14:43:46 +00:00
|
|
|
#include <ctype.h>
|
|
|
|
#include <inttypes.h>
|
2017-07-19 15:25:44 +00:00
|
|
|
#include <assert.h>
|
2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
#include <machinarium.h>
|
2018-08-28 14:43:46 +00:00
|
|
|
#include <kiwi.h>
|
|
|
|
#include <odyssey.h>
|
2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2018-03-12 14:03:15 +00:00
|
|
|
od_instance_t odyssey;
|
|
|
|
od_instance_init(&odyssey);
|
|
|
|
int rc = od_instance_main(&odyssey, argc, argv);
|
2017-07-13 10:25:32 +00:00
|
|
|
if (rc == -1) {
|
|
|
|
rc = EXIT_FAILURE;
|
|
|
|
} else {
|
|
|
|
rc = EXIT_SUCCESS;
|
|
|
|
}
|
2018-03-12 14:03:15 +00:00
|
|
|
od_instance_free(&odyssey);
|
2017-05-24 11:57:15 +00:00
|
|
|
return rc;
|
|
|
|
}
|