1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

relay: remove request from some function arguments (issue #2066)

This commit is contained in:
Sébastien Helleu
2024-01-31 08:57:20 +01:00
parent 83567fd871
commit 89aeb03a13
7 changed files with 91 additions and 122 deletions
+3 -14
View File
@@ -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);