aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-04 10:38:10 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-12-08 23:44:23 -0300
commit8b6cfff6a18d839d11900cd1fade5938dc9a02d5 (patch)
treee7d6ab153622b3415caf0ea183ded51143dbd549 /src
parent8bb7aa329d20cb265d8952c96c84a0e54a5726ab (diff)
downloadrneovim-8b6cfff6a18d839d11900cd1fade5938dc9a02d5.tar.gz
rneovim-8b6cfff6a18d839d11900cd1fade5938dc9a02d5.tar.bz2
rneovim-8b6cfff6a18d839d11900cd1fade5938dc9a02d5.zip
msgpack-rpc: Allow registration of handlers by other modules
Diffstat (limited to 'src')
-rw-r--r--src/nvim/msgpack_rpc/defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/msgpack_rpc/defs.h b/src/nvim/msgpack_rpc/defs.h
index 13067fb7b4..0492a65290 100644
--- a/src/nvim/msgpack_rpc/defs.h
+++ b/src/nvim/msgpack_rpc/defs.h
@@ -19,6 +19,10 @@ typedef struct {
/// 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);
/// Dispatches to the actual API function after basic payload validation by