dsync-proxy-server.h revision ef7c0451e00f5f49e0c3f4266abaf78b8d383b3a
#ifndef DSYNC_PROXY_SERVER_H
#define DSYNC_PROXY_SERVER_H
struct dsync_proxy_server;
struct dsync_proxy_server_command {
const char *name;
const char *const *args);
};
struct dsync_proxy_server {
struct dsync_worker *worker;
struct dsync_proxy_server_command *cur_cmd;
const char *const *cur_args;
struct dsync_worker_mailbox_iter *mailbox_iter;
struct dsync_worker_subs_iter *subs_iter;
struct dsync_worker_msg_iter *msg_iter;
bool get_input_last_lf;
unsigned int handshake_received:1;
unsigned int subs_sending_unsubscriptions:1;
unsigned int save_finished:1;
unsigned int finished:1;
};
struct dsync_proxy_server *
struct dsync_proxy_server_command *
dsync_proxy_server_command_find(const char *name);
#endif