pty_process_win.h
Go to the documentation of this file.
1 #ifndef NVIM_OS_PTY_PROCESS_WIN_H
2 #define NVIM_OS_PTY_PROCESS_WIN_H
3 
4 #include <uv.h>
5 
6 #include "nvim/event/process.h"
7 #include "nvim/lib/queue.h"
9 
10 typedef struct pty_process {
12  uint16_t width, height;
16  uv_timer_t wait_eof_timer;
17 } PtyProcess;
18 
19 // Structure used by build_cmd_line()
20 typedef struct arg_node {
21  char *arg; // pointer to argument.
22  QUEUE node; // QUEUE structure.
23 } ArgNode;
24 
25 static inline PtyProcess pty_process_init(Loop *loop, void *data)
26 {
27  PtyProcess rv;
28  rv.process = process_init(loop, kProcessTypePty, data);
29  rv.width = 80;
30  rv.height = 24;
31  rv.conpty = NULL;
32  rv.finish_wait = NULL;
33  rv.process_handle = NULL;
34  return rv;
35 }
36 
37 #ifdef INCLUDE_GENERATED_DECLARATIONS
38 # include "os/pty_process_win.h.generated.h"
39 #endif
40 
41 #endif // NVIM_OS_PTY_PROCESS_WIN_H
pty_process::process
Process process
Definition: pty_process_unix.h:9
process.h
rv
int rv
Definition: log.c:314
_queue
Definition: queue.h:27
arg_node
Definition: pty_process_win.h:20
pty_process::process_handle
HANDLE process_handle
Definition: pty_process_win.h:15
arg_node::node
QUEUE node
Definition: pty_process_win.h:22
pty_process
Definition: pty_process_unix.h:8
arg_node::arg
char * arg
Definition: pty_process_win.h:21
pty_conpty_win.h
pty_process::height
uint16_t height
Definition: pty_process_unix.h:10
ArgNode
struct arg_node ArgNode
PtyProcess
struct pty_process PtyProcess
queue.h
process
Definition: process.h:18
pty_process::wait_eof_timer
uv_timer_t wait_eof_timer
Definition: pty_process_win.h:16
pty_process::finish_wait
HANDLE finish_wait
Definition: pty_process_win.h:14
pty_process::conpty
conpty_t * conpty
Definition: pty_process_win.h:13
conpty
Definition: pty_conpty_win.h:13
HANDLE
HANDLE
Definition: pty_conpty_win.c:17
kProcessTypePty
@ kProcessTypePty
Definition: process.h:11
pty_process::width
uint16_t width
Definition: pty_process_unix.h:10
NULL
return NULL
Definition: eval.c:9968
loop
Definition: loop.h:16