aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_process.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-07-16 23:10:15 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-07-17 00:19:55 -0300
commitac2bd0256183fe4255e5fcccf37f860f037d43a6 (patch)
tree09bcdf6eefd9b18a58159f06a20b97c938d4f367 /src/nvim/os/pty_process.h
parent991d3ec1e679bb6407f2a5820910d2968424183c (diff)
downloadrneovim-ac2bd0256183fe4255e5fcccf37f860f037d43a6.tar.gz
rneovim-ac2bd0256183fe4255e5fcccf37f860f037d43a6.tar.bz2
rneovim-ac2bd0256183fe4255e5fcccf37f860f037d43a6.zip
rstream/wstream: Unify structures and simplify API
- Simplify RStream/WStream API and make it more consistent with libuv. - Move into the event loop layer(event subdirectory) - Remove uv_helpers module. - Simplify job/process internal modules/API. - Unify RStream and WStream into a single structure. This is necessary because libuv streams can be readable and writable at the same time(and because the uv_helpers.c hack to associate multiple streams with libuv handle was removed) - Make struct definition public, allowing more flexible/simple memory management by users of the module. - Adapt channel/job modules to cope with the changes.
Diffstat (limited to 'src/nvim/os/pty_process.h')
-rw-r--r--src/nvim/os/pty_process.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/os/pty_process.h b/src/nvim/os/pty_process.h
index 62fcd1671f..b5a2eba8b3 100644
--- a/src/nvim/os/pty_process.h
+++ b/src/nvim/os/pty_process.h
@@ -1,6 +1,16 @@
#ifndef NVIM_OS_PTY_PROCESS_H
#define NVIM_OS_PTY_PROCESS_H
+#include <sys/ioctl.h>
+
+#include <uv.h>
+
+typedef struct {
+ struct winsize winsize;
+ uv_pipe_t proc_stdin, proc_stdout, proc_stderr;
+ int tty_fd;
+} PtyProcess;
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/pty_process.h.generated.h"
#endif