From 6ed9d47a6e0a28d163e1cf78e521e1282b725a87 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Sun, 5 Jun 2016 01:02:56 +0100 Subject: pty_process: split into plat-specific files (#3976) --- src/nvim/os/pty_process_unix.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/nvim/os/pty_process_unix.h (limited to 'src/nvim/os/pty_process_unix.h') diff --git a/src/nvim/os/pty_process_unix.h b/src/nvim/os/pty_process_unix.h new file mode 100644 index 0000000000..f7c57b3839 --- /dev/null +++ b/src/nvim/os/pty_process_unix.h @@ -0,0 +1,31 @@ +#ifndef NVIM_OS_PTY_PROCESS_UNIX_H +#define NVIM_OS_PTY_PROCESS_UNIX_H + +#include + +#include "nvim/event/process.h" + +typedef struct pty_process { + Process process; + char *term_name; + uint16_t width, height; + struct winsize winsize; + int tty_fd; +} PtyProcess; + +static inline PtyProcess pty_process_init(Loop *loop, void *data) +{ + PtyProcess rv; + rv.process = process_init(loop, kProcessTypePty, data); + rv.term_name = NULL; + rv.width = 80; + rv.height = 24; + rv.tty_fd = -1; + return rv; +} + +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "os/pty_process_unix.h.generated.h" +#endif + +#endif // NVIM_OS_PTY_PROCESS_UNIX_H -- cgit