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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user