chiark / gitweb /
ptyforward: rework PTY forwarder logic used by nspawn to utilize the normal event...
[elogind.git] / src / shared / ptyfwd.h
index 8b657023a99a74921641232338d1e640a06ffb10..5a612fd5975cf8bfcce679ea5cc3d0d42a6378b3 100644 (file)
 #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);