aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/event_defs.h
blob: c5de8b9ece77c235b7f8979e86990512f54b287e (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 "nvim/os/job_defs.h"
#include "nvim/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