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
Error
Definition: defs.h:62
MsgpackRpcRequestHandler::fn
ApiDispatchWrapper fn
Definition: dispatch.h:13
Array
Definition: defs.h:88
MsgpackRpcRequestHandler::fast
bool fast
Definition: dispatch.h:14
defs.h
MsgpackRpcRequestHandler
Definition: dispatch.h:12
Object
struct object Object
Definition: defs.h:86
ApiDispatchWrapper
Object(* ApiDispatchWrapper)(uint64_t channel_id, Array args, Error *error)
Definition: dispatch.h:6
args
va_list args
Definition: log.c:149