chiark / gitweb /
man: make bootup graph consistent
[elogind.git] / src / shared / ptyfwd.h
index d7b658e181831a35cb30a1a0a51b53d59a2ef65d..6208a543db971ffc02a7ff2d39be5759cc222023 100644 (file)
 
 #include <sys/types.h>
 #include <signal.h>
+#include <stdbool.h>
 
+#include "util.h"
 #include "sd-event.h"
 
 typedef struct PTYForward PTYForward;
 
-int pty_forward_new(sd_event *event, int master, bool repeat, PTYForward **f);
+int pty_forward_new(sd_event *event, int master, bool ignore_vhangup, bool read_only, PTYForward **f);
 PTYForward *pty_forward_free(PTYForward *f);
 
-int pty_forward_last_char(PTYForward *f, char *ch);
+int pty_forward_get_last_char(PTYForward *f, char *ch);
+
+int pty_forward_set_ignore_vhangup(PTYForward *f, bool ignore_vhangup);
+int pty_forward_get_ignore_vhangup(PTYForward *f);
 
 DEFINE_TRIVIAL_CLEANUP_FUNC(PTYForward*, pty_forward_free);