aboutsummaryrefslogtreecommitdiff
path: root/src/os/event.h
blob: 2470add1cfed4dea5f4623d031f5339d109a5345 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef NEOVIM_OS_EVENT_H
#define NEOVIM_OS_EVENT_H

#include <stdint.h>
#include <stdbool.h>

typedef enum {
  kEventSignal
} EventType;

typedef struct {
  EventType type;
  void *data;
} Event;

void event_init(void);
bool event_poll(int32_t ms);
void event_push(Event event);

#endif  // NEOVIM_OS_EVENT_H