summaryrefslogtreecommitdiff
path: root/src/plugins/relay/api/remote/relay-remote-network.h
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2024-04-04 23:24:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2024-04-07 13:18:14 +0200
commita499b50b7b70151b9088f8641152681b79dcc885 (patch)
tree43a34534bd613fc07d4eb11f07f248d46450a745 /src/plugins/relay/api/remote/relay-remote-network.h
parentb6647004a5ee91fc38829b35e0afb1cdd61867e3 (diff)
downloadweechat-a499b50b7b70151b9088f8641152681b79dcc885.zip
relay: add synchronization with remote and handler for events received (issue #2066)
Diffstat (limited to 'src/plugins/relay/api/remote/relay-remote-network.h')
-rw-r--r--src/plugins/relay/api/remote/relay-remote-network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/relay/api/remote/relay-remote-network.h b/src/plugins/relay/api/remote/relay-remote-network.h
index d0defa87e..bfd53ed2e 100644
--- a/src/plugins/relay/api/remote/relay-remote-network.h
+++ b/src/plugins/relay/api/remote/relay-remote-network.h
@@ -20,9 +20,13 @@
#ifndef WEECHAT_PLUGIN_RELAY_REMOTE_NETWORK_H
#define WEECHAT_PLUGIN_RELAY_REMOTE_NETWORK_H
+#include <cjson/cJSON.h>
+
extern int relay_remote_network_send (struct t_relay_remote *remote,
enum t_relay_msg_type msg_type,
const char *data, int data_size);
+extern int relay_remote_network_send_json (struct t_relay_remote *remote,
+ cJSON *json);
extern int relay_remote_network_connect (struct t_relay_remote *remote);
extern void relay_remote_network_disconnect (struct t_relay_remote *remote);