pty_process: split into plat-specific files (#3976)

This commit is contained in:
Rui Abreu Ferreira
2016-06-05 01:02:56 +01:00
committed by Justin M. Keyes
parent 02e6914a93
commit 6ed9d47a6e
7 changed files with 52 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
#ifndef NVIM_OS_PTY_PROCESS_WIN_H
#define NVIM_OS_PTY_PROCESS_WIN_H
#include "nvim/event/libuv_process.h"
typedef struct pty_process {
Process process;
char *term_name;
uint16_t width, height;
} PtyProcess;
#define pty_process_spawn(job) libuv_process_spawn((LibuvProcess *)job)
#define pty_process_close(job) libuv_process_close((LibuvProcess *)job)
#define pty_process_close_master(job) libuv_process_close((LibuvProcess *)job)
#define pty_process_resize(job, width, height)
#define pty_process_teardown(loop)
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;
return rv;
}
#endif // NVIM_OS_PTY_PROCESS_WIN_H