odyssey/sources/relay.h

24 lines
378 B
C
Raw Normal View History

2017-05-26 11:49:17 +00:00
#ifndef OD_RELAY_H
#define OD_RELAY_H
/*
2017-07-05 12:42:49 +00:00
* Odissey.
2017-05-26 11:49:17 +00:00
*
2017-07-05 12:42:49 +00:00
* Advanced PostgreSQL connection pooler.
2017-05-26 11:49:17 +00:00
*/
typedef struct od_relay od_relay_t;
struct od_relay
{
int64_t machine;
int id;
machine_queue_t *task_queue;
od_system_t *system;
2017-05-26 11:49:17 +00:00
};
2017-06-01 12:45:49 +00:00
void od_relay_init(od_relay_t*, od_system_t*, int);
2017-05-26 11:49:17 +00:00
int od_relay_start(od_relay_t*);
#endif /* OD_RELAY_H */