multiqueue.h
Go to the documentation of this file.
1 #ifndef NVIM_EVENT_MULTIQUEUE_H
2 #define NVIM_EVENT_MULTIQUEUE_H
3 
4 #include <uv.h>
5 
6 #include "nvim/event/defs.h"
7 #include "nvim/lib/queue.h"
8 
9 typedef struct multiqueue MultiQueue;
10 typedef void (*put_callback)(MultiQueue *multiq, void *data);
11 
12 #define multiqueue_put(q, h, ...) \
13  multiqueue_put_event(q, event_create(h, __VA_ARGS__));
14 
15 
16 #ifdef INCLUDE_GENERATED_DECLARATIONS
17 # include "event/multiqueue.h.generated.h"
18 #endif
19 #endif // NVIM_EVENT_MULTIQUEUE_H
void(* put_callback)(MultiQueue *multiq, void *data)
Definition: multiqueue.h:10
void * data
Definition: multiqueue.c:77
Definition: multiqueue.c:73