aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/channel.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-26 13:39:08 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-26 14:02:12 -0300
commit139c7ffdc785b19297e8c3b2d2586dfa284f97a5 (patch)
tree79426fb6758f3206b5ae07de2d8eb3b364c5fb5f /src/nvim/os/channel.c
parent7a00caf7c40e8526db2c75cd4c1445b624023728 (diff)
downloadrneovim-139c7ffdc785b19297e8c3b2d2586dfa284f97a5.tar.gz
rneovim-139c7ffdc785b19297e8c3b2d2586dfa284f97a5.tar.bz2
rneovim-139c7ffdc785b19297e8c3b2d2586dfa284f97a5.zip
API: Events: Return channel id from the API discover request
This refactors msgapck_rpc_{dipatch,call} to receive the channel id as argument. Now the discovery request returns the [id, metadata] array.
Diffstat (limited to 'src/nvim/os/channel.c')
-rw-r--r--src/nvim/os/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/channel.c b/src/nvim/os/channel.c
index 8184003593..c103a71f46 100644
--- a/src/nvim/os/channel.c
+++ b/src/nvim/os/channel.c
@@ -157,7 +157,7 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof)
channel->proto.msgpack.sbuffer,
msgpack_sbuffer_write);
// Perform the call
- msgpack_rpc_call(&unpacked.data, &response);
+ msgpack_rpc_call(channel->id, &unpacked.data, &response);
wstream_write(channel->data.streams.write,
xmemdup(channel->proto.msgpack.sbuffer->data,
channel->proto.msgpack.sbuffer->size),