diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-06-18 12:06:50 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-08-31 21:40:20 +0200 |
commit | 3bd3b3b76859b3eef80fa4969147efa881b60f40 (patch) | |
tree | 0e70b42651dd91ccb1a16fe4a2222b0e92e9a3d2 /src/nvim/api/private/dispatch.h | |
parent | de3a515123fa417ecce61efebe4bc117b010c657 (diff) | |
download | rneovim-3bd3b3b76859b3eef80fa4969147efa881b60f40.tar.gz rneovim-3bd3b3b76859b3eef80fa4969147efa881b60f40.tar.bz2 rneovim-3bd3b3b76859b3eef80fa4969147efa881b60f40.zip |
api: auto generate api function wrappers for viml
Diffstat (limited to 'src/nvim/api/private/dispatch.h')
-rw-r--r-- | src/nvim/api/private/dispatch.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/api/private/dispatch.h b/src/nvim/api/private/dispatch.h index 9047752026..d91456c306 100644 --- a/src/nvim/api/private/dispatch.h +++ b/src/nvim/api/private/dispatch.h @@ -3,13 +3,15 @@ #include "nvim/api/private/defs.h" +typedef Object (*ApiDispatchWrapper)(uint64_t channel_id, + uint64_t request_id, + Array args, + Error *error); + /// The rpc_method_handlers table, used in msgpack_rpc_dispatch(), stores /// functions of this type. typedef struct { - Object (*fn)(uint64_t channel_id, - uint64_t request_id, - Array args, - Error *error); + ApiDispatchWrapper fn; bool async; // function is always safe to run immediately instead of being // put in a request queue for handling when nvim waits for input. } MsgpackRpcRequestHandler; |