diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-08-29 22:27:54 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-08-29 22:27:54 -0300 |
commit | df64c0f932c8c9d4cfbec8b54aefb6c5cc7c359e (patch) | |
tree | 330a542669f1adaf4ba0d8774975b4a04c5af128 /src/nvim/os/provider.c | |
parent | 9d5e2c34c95739c8130f33aad8a18b19a281a1ad (diff) | |
parent | 887446a0382593ba5d3206eb4008df22457d57d7 (diff) | |
download | rneovim-df64c0f932c8c9d4cfbec8b54aefb6c5cc7c359e.tar.gz rneovim-df64c0f932c8c9d4cfbec8b54aefb6c5cc7c359e.tar.bz2 rneovim-df64c0f932c8c9d4cfbec8b54aefb6c5cc7c359e.zip |
Merge PR #1121 'Full compliance with msgpack-RPC'
Diffstat (limited to 'src/nvim/os/provider.c')
-rw-r--r-- | src/nvim/os/provider.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/provider.c b/src/nvim/os/provider.c index d94203f683..07e757fe0e 100644 --- a/src/nvim/os/provider.c +++ b/src/nvim/os/provider.c @@ -98,7 +98,7 @@ bool provider_register(char *method, uint64_t channel_id) return true; } -Object provider_call(char *method, Object arg) +Object provider_call(char *method, Array args) { uint64_t channel_id = get_provider_for(method); @@ -109,13 +109,13 @@ Object provider_call(char *method, Object arg) "Provider for \"%s\" is not available", method); report_error(buf); - msgpack_rpc_free_object(arg); + msgpack_rpc_free_array(args); return NIL; } bool error = false; Object result = NIL; - channel_send_call(channel_id, method, arg, &result, &error); + channel_send_call(channel_id, method, args, &result, &error); if (error) { report_error(result.data.string.data); |