aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/channel.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-09-09 09:36:14 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-09-12 13:25:28 -0300
commitcac24cb06ddcad0cfb3a9379c3bdd0e8706602f9 (patch)
tree62893d01eccd43216001d1c1d481f018e42286bc /src/nvim/os/channel.c
parent2792a0e33c0845fdd5b1b752d99ee573f6534256 (diff)
downloadrneovim-cac24cb06ddcad0cfb3a9379c3bdd0e8706602f9.tar.gz
rneovim-cac24cb06ddcad0cfb3a9379c3bdd0e8706602f9.tar.bz2
rneovim-cac24cb06ddcad0cfb3a9379c3bdd0e8706602f9.zip
api/msgpack-rpc: Refactor msgpack_rpc_helpers.{c,h}
- Move helpers that are specific to API types to api/private/helpers.{c,h} - Include headers with generated declarations - Delete unused macros
Diffstat (limited to 'src/nvim/os/channel.c')
-rw-r--r--src/nvim/os/channel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/os/channel.c b/src/nvim/os/channel.c
index bc1bef3a57..5a42db112e 100644
--- a/src/nvim/os/channel.c
+++ b/src/nvim/os/channel.c
@@ -158,7 +158,7 @@ bool channel_send_event(uint64_t id, char *name, Array args)
if (id > 0) {
if (!(channel = pmap_get(uint64_t)(channels, id)) || !channel->enabled) {
- msgpack_rpc_free_array(args);
+ api_free_array(args);
return false;
}
send_event(channel, name, args);
@@ -186,7 +186,7 @@ bool channel_send_call(uint64_t id,
Channel *channel = NULL;
if (!(channel = pmap_get(uint64_t)(channels, id)) || !channel->enabled) {
- msgpack_rpc_free_array(args);
+ api_free_array(args);
return false;
}
@@ -199,7 +199,7 @@ bool channel_send_call(uint64_t id,
"Channel %" PRIu64 " crossed maximum stack depth",
channel->id);
*result = STRING_OBJ(cstr_to_string(buf));
- msgpack_rpc_free_array(args);
+ api_free_array(args);
return false;
}
@@ -448,7 +448,7 @@ static void broadcast_event(char *name, Array args)
});
if (!kv_size(subscribed)) {
- msgpack_rpc_free_array(args);
+ api_free_array(args);
goto end;
}