1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

relay/api: add "body_type" in response when a body is set and connected via websocket (issue #2066)

This commit is contained in:
Sébastien Helleu
2024-03-31 16:26:17 +02:00
parent 643adecff5
commit 9d7e887d8e
3 changed files with 32 additions and 28 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ enum t_relay_api_colors;
extern int relay_api_msg_send_json (struct t_relay_client *client,
int return_code,
const char *message,
const char *body_type,
cJSON *json_body);
extern int relay_api_msg_send_error_json (struct t_relay_client *client,
int return_code,
@@ -33,8 +34,8 @@ extern int relay_api_msg_send_error_json (struct t_relay_client *client,
const char *format, ...);
extern int relay_api_msg_send_event (struct t_relay_client *client,
const char *name,
const char *type,
struct t_gui_buffer *buffer,
const char *body_type,
cJSON *json_body);
extern cJSON *relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
long lines,