diff options
Diffstat (limited to 'src/plugins/relay/api/relay-api-protocol.h')
-rw-r--r-- | src/plugins/relay/api/relay-api-protocol.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/plugins/relay/api/relay-api-protocol.h b/src/plugins/relay/api/relay-api-protocol.h index df1be074a..46ccc0e9a 100644 --- a/src/plugins/relay/api/relay-api-protocol.h +++ b/src/plugins/relay/api/relay-api-protocol.h @@ -22,19 +22,9 @@ #define RELAY_API_PROTOCOL_CALLBACK(__command) \ int \ - relay_api_protocol_cb_##__command ( \ - struct t_relay_client *client, \ - struct t_relay_http_request *request) + relay_api_protocol_cb_##__command (struct t_relay_client *client) -struct t_relay_api_protocol_ctxt -{ - struct t_relay_client *client; - struct t_relay_http_request *request; - char *resource; -}; - -typedef int (t_relay_api_cmd_func)(struct t_relay_client *client, - struct t_relay_http_request *request); +typedef int (t_relay_api_cmd_func)(struct t_relay_client *client); struct t_relay_api_protocol_cb { @@ -59,8 +49,7 @@ extern int relay_api_protocol_signal_upgrade_cb (const void *pointer, const char *signal, const char *type_data, void *signal_data); -extern void relay_api_protocol_recv_http (struct t_relay_client *client, - struct t_relay_http_request *request); +extern void relay_api_protocol_recv_http (struct t_relay_client *client); extern void relay_api_protocol_recv_json (struct t_relay_client *client, const char *json); |