1 #ifndef NVIM_EVENT_TIME_H
2 #define NVIM_EVENT_TIME_H
3 
4 #include <uv.h>
5 
6 #include "nvim/event/loop.h"
7 
8 typedef struct time_watcher TimeWatcher;
9 typedef void (*time_cb)(TimeWatcher *watcher, void *data);
10 
11 struct time_watcher {
12   uv_timer_t uv;
13   void *data;
14   time_cb cb, close_cb;
15   MultiQueue *events;
16   bool blockable;
17 };
18 
19 #ifdef INCLUDE_GENERATED_DECLARATIONS
20 # include "event/time.h.generated.h"
21 #endif
22 #endif  // NVIM_EVENT_TIME_H
23