aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/event_defs.h
blob: 2dd9403d9fa70db1d0671bce3dee76b0941fca25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef NVIM_OS_EVENT_DEFS_H
#define NVIM_OS_EVENT_DEFS_H

#include <stdbool.h>

#include "nvim/os/job_defs.h"
#include "nvim/os/rstream_defs.h"

typedef struct event Event;
typedef void (*event_handler)(Event event);

struct event {
  void *data;
  event_handler handler;
};

#endif  // NVIM_OS_EVENT_DEFS_H