odyssey/sources/main.c

43 lines
790 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 <assert.h>
#include <machinarium.h>
#include <shapito.h>
#include "sources/macro.h"
2017-08-08 13:50:50 +00:00
#include "sources/atomic.h"
#include "sources/util.h"
#include "sources/error.h"
#include "sources/list.h"
#include "sources/pid.h"
#include "sources/id.h"
2017-07-26 14:05:29 +00:00
#include "sources/logger.h"
#include "sources/config.h"
2018-03-05 14:24:30 +00:00
#include "sources/config_reader.h"
#include "sources/instance.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;
}