diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-06-16 13:35:04 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-08-31 21:40:20 +0200 |
commit | de3a515123fa417ecce61efebe4bc117b010c657 (patch) | |
tree | 544542b8b92fa77016be159a1ad78bf482e436bd /src/nvim/msgpack_rpc/defs.h | |
parent | 5e59916e84933b0b05fda8ed76cf5f24fa3f48b6 (diff) | |
download | rneovim-de3a515123fa417ecce61efebe4bc117b010c657.tar.gz rneovim-de3a515123fa417ecce61efebe4bc117b010c657.tar.bz2 rneovim-de3a515123fa417ecce61efebe4bc117b010c657.zip |
api: rename "msgpack_rpc/defs.h" to "api/private/dispatch.h" and use the header generator.
Diffstat (limited to 'src/nvim/msgpack_rpc/defs.h')
-rw-r--r-- | src/nvim/msgpack_rpc/defs.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/nvim/msgpack_rpc/defs.h b/src/nvim/msgpack_rpc/defs.h deleted file mode 100644 index 5611636d4f..0000000000 --- a/src/nvim/msgpack_rpc/defs.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef NVIM_MSGPACK_RPC_DEFS_H -#define NVIM_MSGPACK_RPC_DEFS_H - - -/// 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); - 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; - -/// Initializes the msgpack-rpc method table -void msgpack_rpc_init_method_table(void); - -// Add a handler to the method table -void msgpack_rpc_add_method_handler(String method, - MsgpackRpcRequestHandler handler); - -void msgpack_rpc_init_function_metadata(Dictionary *metadata); - -MsgpackRpcRequestHandler msgpack_rpc_get_handler_for(const char *name, - size_t name_len) - FUNC_ATTR_NONNULL_ARG(1); -#endif // NVIM_MSGPACK_RPC_DEFS_H |