2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
/*
|
2017-07-05 12:42:49 +00:00
|
|
|
* Odissey.
|
2017-05-24 11:57:15 +00:00
|
|
|
*
|
2017-07-05 12:42:49 +00:00
|
|
|
* Advanced 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>
|
2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
#include <machinarium.h>
|
|
|
|
|
2017-07-05 12:15:17 +00:00
|
|
|
#include "sources/macro.h"
|
|
|
|
#include "sources/list.h"
|
|
|
|
#include "sources/pid.h"
|
|
|
|
#include "sources/id.h"
|
|
|
|
#include "sources/syslog.h"
|
|
|
|
#include "sources/log.h"
|
|
|
|
#include "sources/scheme.h"
|
|
|
|
#include "sources/config.h"
|
|
|
|
#include "sources/instance.h"
|
2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
2017-05-24 12:20:56 +00:00
|
|
|
machinarium_init();
|
2017-05-25 10:53:48 +00:00
|
|
|
od_instance_t odissey;
|
|
|
|
od_instance_init(&odissey);
|
|
|
|
int rc = od_instance_main(&odissey, argc, argv);
|
2017-07-13 10:25:32 +00:00
|
|
|
if (rc == -1) {
|
|
|
|
rc = EXIT_FAILURE;
|
|
|
|
} else {
|
|
|
|
rc = EXIT_SUCCESS;
|
|
|
|
}
|
2017-05-25 10:53:48 +00:00
|
|
|
od_instance_free(&odissey);
|
2017-05-24 12:20:56 +00:00
|
|
|
machinarium_free();
|
2017-05-24 11:57:15 +00:00
|
|
|
return rc;
|
|
|
|
}
|