2017-05-24 11:57:15 +00:00
|
|
|
|
|
|
|
/*
|
2017-06-07 11:50:58 +00:00
|
|
|
* ODISSEY.
|
2017-05-24 11:57:15 +00:00
|
|
|
*
|
|
|
|
* PostgreSQL connection pooler and request router.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include <machinarium.h>
|
|
|
|
|
|
|
|
#include "od_macro.h"
|
|
|
|
#include "od_list.h"
|
|
|
|
#include "od_pid.h"
|
|
|
|
#include "od_syslog.h"
|
|
|
|
#include "od_log.h"
|
|
|
|
#include "od_scheme.h"
|
|
|
|
#include "od_lex.h"
|
|
|
|
#include "od_config.h"
|
2017-06-20 13:33:20 +00:00
|
|
|
#include "od_id.h"
|
2017-05-25 10:53:48 +00:00
|
|
|
#include "od_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);
|
|
|
|
od_instance_free(&odissey);
|
2017-05-24 12:20:56 +00:00
|
|
|
machinarium_free();
|
2017-05-24 11:57:15 +00:00
|
|
|
return rc;
|
|
|
|
}
|