chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exit-status: introduce common exit_status_set_test() call for testing exit status...
[elogind.git]
/
src
/
shared
/
ptyfwd.h
diff --git
a/src/shared/ptyfwd.h
b/src/shared/ptyfwd.h
index 5a612fd5975cf8bfcce679ea5cc3d0d42a6378b3..6f84e4036a7e67881f8a88d11650a736aa7099bc 100644
(file)
--- a/
src/shared/ptyfwd.h
+++ b/
src/shared/ptyfwd.h
@@
-21,14
+21,18
@@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <sys/types.h>
-#include <signal.h>
+#include <stdbool.h>
#include "sd-event.h"
typedef struct PTYForward PTYForward;
#include "sd-event.h"
typedef struct PTYForward PTYForward;
-int pty_forward_new(sd_event *event, int master, 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);
PTYForward *pty_forward_free(PTYForward *f);
+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);
DEFINE_TRIVIAL_CLEANUP_FUNC(PTYForward*, pty_forward_free);