ctl-commands: Use slightly more helpful schemas

srht-ci
Andri Yngvason 2023-01-15 18:10:26 +00:00
parent 5bf6f23eed
commit 267a4e55e3
1 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ struct cmd_info ctl_command_list[] = {
{ {
{ "id", { "id",
"The ID of the client to disconnect", "The ID of the client to disconnect",
"<id>", true }, "<integer>", true },
{}, {},
} }
}, },
@ -67,7 +67,7 @@ struct cmd_info ctl_command_list[] = {
{ {
{ "output-name", { "output-name",
"The specific output name to capture", "The specific output name to capture",
"<name>", true }, "<string>", true },
{}, {},
} }
}, },
@ -80,16 +80,16 @@ struct cmd_info ctl_command_list[] = {
#define CLIENT_EVENT_PARAMS(including) \ #define CLIENT_EVENT_PARAMS(including) \
{ "id", \ { "id", \
"A unique identifier for this client", \ "A unique identifier for this client", \
"<id>" }, \ "<integer>" }, \
{ "connection_count", \ { "connection_count", \
"The total number of connected VNC clients " including " this one.", \ "The total number of connected VNC clients " including " this one.", \
"<count>" }, \ "<integer>" }, \
{ "hostname", \ { "hostname", \
"The hostname or IP address of this client (may be null)", \ "The hostname or IP address of this client (may be null)", \
"<name|ip>" }, \ "<name|ip>" }, \
{ "username", \ { "username", \
"The username used to authentice this client (may be null).", \ "The username used to authentice this client (may be null).", \
"<name>" }, \ "<string>" }, \
{}, {},
struct cmd_info ctl_event_list[] = { struct cmd_info ctl_event_list[] = {
@ -98,7 +98,7 @@ struct cmd_info ctl_event_list[] = {
{ {
{ "output-name", { "output-name",
"The name of the output now being captured", "The name of the output now being captured",
"<name>" }, "<string>" },
{}, {},
}, },
}, },