mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
relay/api: add field "hidden" in GET /api/buffers (issue #2159)
This commit is contained in:
@@ -380,6 +380,7 @@ relay_api_msg_buffer_to_json (struct t_gui_buffer *buffer,
|
||||
if (weechat_strcmp (ptr_string, "free") == 0)
|
||||
lines = lines_free;
|
||||
MSG_ADD_STR_PTR("type", ptr_string);
|
||||
MSG_ADD_HDATA_VAR(Bool, "hidden", integer, "hidden");
|
||||
MSG_ADD_HDATA_STR_COLORS("title", "title");
|
||||
MSG_ADD_HDATA_STR_COLORS("modes", "modes");
|
||||
MSG_ADD_HDATA_STR_COLORS("input_prompt", "input_prompt");
|
||||
|
||||
@@ -592,6 +592,10 @@ components:
|
||||
- free
|
||||
description: the buffer type
|
||||
example: formatted
|
||||
hidden:
|
||||
type: boolean
|
||||
description: buffer is hidden
|
||||
example: false
|
||||
title:
|
||||
type: string
|
||||
description: the buffer title (can contain colors)
|
||||
@@ -656,6 +660,7 @@ components:
|
||||
- short_name
|
||||
- number
|
||||
- type
|
||||
- hidden
|
||||
- title
|
||||
- modes
|
||||
- input_prompt
|
||||
|
||||
Reference in New Issue
Block a user