From a1efd65746cb0c464fac987e076ec3632e632445 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 1 Nov 2019 20:37:22 +0100 Subject: 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. --- server.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 server.h (limited to 'server.h') 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); -- cgit v1.3