aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/msgpack_rpc.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-08-28 15:46:21 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-08-29 22:08:58 -0300
commitaa23d2f835e32c01b318712459ba7b9f55922469 (patch)
tree8476c7d99b32b8e4faea05ddfdb8cd1f4e6f370f /src/nvim/os/msgpack_rpc.h
parent9d5e2c34c95739c8130f33aad8a18b19a281a1ad (diff)
downloadrneovim-aa23d2f835e32c01b318712459ba7b9f55922469.tar.gz
rneovim-aa23d2f835e32c01b318712459ba7b9f55922469.tar.bz2
rneovim-aa23d2f835e32c01b318712459ba7b9f55922469.zip
msgpack-rpc: Accept method names in requests
Diffstat (limited to 'src/nvim/os/msgpack_rpc.h')
-rw-r--r--src/nvim/os/msgpack_rpc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/os/msgpack_rpc.h b/src/nvim/os/msgpack_rpc.h
index 5aca900d2e..35f175d2a0 100644
--- a/src/nvim/os/msgpack_rpc.h
+++ b/src/nvim/os/msgpack_rpc.h
@@ -21,6 +21,11 @@ typedef Object (*rpc_method_handler_fn)(uint64_t channel_id,
msgpack_object *req,
Error *error);
+
+/// Initializes the msgpack-rpc method table
+void msgpack_rpc_init(void);
+
+
/// Dispatches to the actual API function after basic payload validation by
/// `msgpack_rpc_call`. It is responsible for validating/converting arguments
/// to C types, and converting the return value back to msgpack types.
@@ -33,11 +38,11 @@ typedef Object (*rpc_method_handler_fn)(uint64_t channel_id,
/// @param error Pointer to error structure
/// @return Some object
Object msgpack_rpc_dispatch(uint64_t channel_id,
- uint64_t method_id,
msgpack_object *req,
Error *error)
FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_NONNULL_ARG(3);
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/msgpack_rpc.h.generated.h"
#endif