aboutsummaryrefslogtreecommitdiff
path: root/xC-proto
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-16 02:46:03 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-16 02:52:16 +0200
commitd5153fe354dce4bc9aef990614dad29d9804aa9b (patch)
tree9cf649555d43861a8f17290efc08825d304c8549 /xC-proto
parentee76186bef6f40da41f8cfa89a9c54ae9c9540f4 (diff)
downloadxK-d5153fe354dce4bc9aef990614dad29d9804aa9b.tar.gz
xK-d5153fe354dce4bc9aef990614dad29d9804aa9b.tar.xz
xK-d5153fe354dce4bc9aef990614dad29d9804aa9b.zip
xC/xP: implement M-H in the web frontend
Diffstat (limited to 'xC-proto')
-rw-r--r--xC-proto14
1 files changed, 9 insertions, 5 deletions
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;