blob: 428ae50f3e204993ee13b4fb748f60a48e9c6d8e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef NEOVIM_OS_EVENT_DEFS_H
#define NEOVIM_OS_EVENT_DEFS_H
#include "os/job_defs.h"
#include "os/rstream_defs.h"
typedef enum {
kEventSignal,
kEventRStreamData,
kEventJobExit
} EventType;
typedef struct {
EventType type;
union {
int signum;
struct {
RStream *ptr;
bool eof;
} rstream;
Job *job;
} data;
} Event;
#endif // NEOVIM_OS_EVENT_DEFS_H
|