From d5153fe354dce4bc9aef990614dad29d9804aa9b Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Fri, 16 Sep 2022 02:46:03 +0200 Subject: xC/xP: implement M-H in the web frontend --- xC-proto | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'xC-proto') diff --git a/xC-proto b/xC-proto index 819eb24..03c40d7 100644 --- a/xC-proto +++ b/xC-proto @@ -9,24 +9,28 @@ struct CommandMessage { union CommandData switch (enum Command { HELLO, ACTIVE, - BUFFER_INPUT, BUFFER_ACTIVATE, + BUFFER_INPUT, + BUFFER_TOGGLE_UNIMPORTANT, PING_RESPONSE, PING, BUFFER_COMPLETE, BUFFER_LOG, } command) { + // If the version check succeeds, the client will receive + // an initial stream of SERVER_UPDATE, BUFFER_UPDATE, BUFFER_STATS, + // BUFFER_LINE, and finally a BUFFER_ACTIVATE message. case HELLO: u32 version; - // If the version check succeeds, the client will receive - // an initial stream of SERVER_UPDATE, BUFFER_UPDATE, BUFFER_STATS, - // BUFFER_LINE, and finally a BUFFER_ACTIVATE message. case ACTIVE: void; + case BUFFER_ACTIVATE: + string buffer_name; case BUFFER_INPUT: string buffer_name; string text; - case BUFFER_ACTIVATE: + // XXX: Perhaps this should rather be handled through a /buffer command. + case BUFFER_TOGGLE_UNIMPORTANT: string buffer_name; case PING_RESPONSE: u32 event_seq; -- cgit v1.2.3-70-g09d2