aboutsummaryrefslogtreecommitdiff
path: root/client-protocol.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-07-31 15:37:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-08-01 07:38:05 +0000
commitb13a8f12d2d360e0923ee30ff40f25b245576bb5 (patch)
tree13b7ce03099a5f6cdb60692cfaf9e2cff546f775 /client-protocol.h
parentchangelog: SIGUSR changes in the server (diff)
server/client: add support for sending SIGUSR to footclient
This patch adds the IPC infrastructure necessary to propagate SIGUSR1/SIGUSR2 from a footclient process to the server process. By targeting a particular footclient instance, only that particular instance changes theme. This is different from when targeting the server process, where all instances change theme. Closes #2156
Diffstat (limited to 'client-protocol.h')
-rw-r--r--client-protocol.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/client-protocol.h b/client-protocol.h
index 505825f6..efd601d7 100644
--- a/client-protocol.h
+++ b/client-protocol.h
@@ -29,3 +29,17 @@ struct client_data {
} __attribute__((packed));
_Static_assert(sizeof(struct client_data) == 10, "protocol struct size error");
+
+enum client_ipc_code {
+ FOOT_IPC_SIGUSR,
+};
+
+struct client_ipc_hdr {
+ enum client_ipc_code ipc_code;
+ uint8_t size;
+} __attribute__((packed));
+
+
+struct client_ipc_sigusr {
+ int signo;
+} __attribute__((packed));