mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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.
This commit is contained in:
parent
32c6ed7069
commit
a1efd65746
4 changed files with 334 additions and 2 deletions
9
server.h
Normal file
9
server.h
Normal file
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue