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 fast; // Function is safe to be executed immediately while running the
15  // uv loop (the loop is run very frequently due to breakcheck).
16  // If "fast" is false, the function is deferred, i e the call will
17  // be put in the event queue, for safe handling later.
19 
20 #ifdef INCLUDE_GENERATED_DECLARATIONS
21 # include "api/private/dispatch.h.generated.h"
22 # include "api/private/dispatch_wrappers.h.generated.h"
23 #endif
24 
25 #endif // NVIM_API_PRIVATE_DISPATCH_H
bool fast
Definition: dispatch.h:14
Definition: defs.h:61
va_list args
Definition: log.c:138
Definition: defs.h:87
int int error
Definition: eval.c:6414
ApiDispatchWrapper fn
Definition: dispatch.h:13
struct object Object
Definition: defs.h:85
Object(* ApiDispatchWrapper)(uint64_t channel_id, Array args, Error *error)
Definition: dispatch.h:6
Definition: dispatch.h:12