odyssey/sources/main.c

34 lines
544 B
C
Raw Normal View History

/*
2018-03-12 14:03:15 +00:00
* Odyssey.
*
2018-04-04 13:19:58 +00:00
* Scalable PostgreSQL connection pooler.
*/
#include <stdlib.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
2017-06-20 15:43:46 +00:00
#include <string.h>
#include <ctype.h>
#include <inttypes.h>
#include <assert.h>
#include <machinarium.h>
#include <kiwi.h>
#include <odyssey.h>
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);
if (rc == -1) {
rc = EXIT_FAILURE;
} else {
rc = EXIT_SUCCESS;
}
2018-03-12 14:03:15 +00:00
od_instance_free(&odyssey);
return rc;
}