aboutsummaryrefslogtreecommitdiff
path: root/server.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:37:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-01 19:39:09 +0000
commita1efd65746cb0c464fac987e076ec3632e632445 (patch)
treeebddbca25e8d20c3d5c2d768a023a17e5df26029 /server.h
parentmain: register signal handlers for SIGINT and SIGTERM (diff)
server: implement a --server mode
In this mode, foot listens on a UNIX socket and creates terminal windows when clients connect. A connecting client sends argc/argv to the server, and the server instantiates a new terminal window. When the terminal window is closed, the exit code is sent back to the client.
Diffstat (limited to 'server.h')
-rw-r--r--server.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/server.h b/server.h
new file mode 100644
index 00000000..a5f34071
--- /dev/null
+++ b/server.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "fdm.h"
+#include "config.h"
+#include "wayland.h"
+
+struct server;
+struct server *server_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl);
+void server_destroy(struct server *server);