dispatch.h
Go to the documentation of this file.
1 #ifndef NVIM_API_PRIVATE_DISPATCH_H
2 #define NVIM_API_PRIVATE_DISPATCH_H
3 
5 
6 typedef Object (*ApiDispatchWrapper)(uint64_t channel_id,
7  Array args,
8  Error *error);
9 
12 typedef struct {
14  bool async; // function is always safe to run immediately instead of being
15  // put in a request queue for handling when nvim waits for input.
17 
18 #ifdef INCLUDE_GENERATED_DECLARATIONS
19 # include "api/private/dispatch.h.generated.h"
20 # include "api/private/dispatch_wrappers.h.generated.h"
21 #endif
22 
23 #endif // NVIM_API_PRIVATE_DISPATCH_H
Definition: defs.h:62
va_list args
Definition: log.c:127
Definition: defs.h:88
bool async
Definition: dispatch.h:14
ApiDispatchWrapper fn
Definition: dispatch.h:13
struct object Object
Definition: defs.h:86
Object(* ApiDispatchWrapper)(uint64_t channel_id, Array args, Error *error)
Definition: dispatch.h:6
Definition: dispatch.h:12