Tchatator413 request parsing and interpretation - Interface.
Tchatator413 server configuration - Interface.
struct cfg cfg_t
An opaque handle to a configuration object.
void db_t
An opaque handle to a database connection.
json-c wrapper. Include this instead of JSON-C (compile time error mechanisms)
Tchatator413 dynamic server state - Interface.
struct server server_t
Opaque type handle representing a server instance.
An action. Actions represent the commands the protocol implements.
int tchatator413_run_interactive(cfg_t *cfg, db_t *db, server_t *server, int argc, char **argv)
Run the server in interactive mode.
json_object * tchatator413_interpret(json_object *input, cfg_t *cfg, db_t *db, server_t *server, fn_on_action_t on_action, fn_on_response_t on_response, void *on_ctx)
Interpret a request.
int tchatator413_run_socket(cfg_t *cfg, db_t *db, server_t *server)
Run the server in socket mode.
void(* fn_on_action_t)(const action_t *action, void *ctx)
An event handler for when the server has parsed an action.
void(* fn_on_response_t)(const response_t *response, void *ctx)
An event handler for when the server has interpeted an action.