summaryrefslogtreecommitdiff
path: root/src/shared/ptyfwd.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-31 16:54:11 +0100
committerLennart Poettering <lennart@poettering.net>2014-10-31 16:55:04 +0100
commit023fb90b83871a15ef7f57e8cd126e3426f99b9e (patch)
tree616c6080d064bcb8df72ef8a08899a15e5f8557b /src/shared/ptyfwd.h
parentfedfcdee6f55c3f183752b7fac4879bf41eed60b (diff)
ptyforward: rework PTY forwarder logic used by nspawn to utilize the normal event loop
We really should not run manual event loops anymore, but standardize on sd_event, so that we can run sd_bus connections from it eventually.
Diffstat (limited to 'src/shared/ptyfwd.h')
-rw-r--r--src/shared/ptyfwd.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shared/ptyfwd.h b/src/shared/ptyfwd.h
index 8b657023a9..5a612fd597 100644
--- a/src/shared/ptyfwd.h
+++ b/src/shared/ptyfwd.h
@@ -24,4 +24,11 @@
#include <sys/types.h>
#include <signal.h>
-int process_pty(int master, sigset_t *mask, pid_t kill_pid, int signo);
+#include "sd-event.h"
+
+typedef struct PTYForward PTYForward;
+
+int pty_forward_new(sd_event *event, int master, PTYForward **f);
+PTYForward *pty_forward_free(PTYForward *f);
+
+DEFINE_TRIVIAL_CLEANUP_FUNC(PTYForward*, pty_forward_free);