aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/provider.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/provider.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/provider.c')
-rw-r--r--src/nvim/os/provider.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/os/provider.c b/src/nvim/os/provider.c
index 07e757fe0e..57c2e57a3c 100644
--- a/src/nvim/os/provider.c
+++ b/src/nvim/os/provider.c
@@ -14,7 +14,6 @@
#include "nvim/log.h"
#include "nvim/map.h"
#include "nvim/message.h"
-#include "nvim/os/msgpack_rpc_helpers.h"
#define FEATURE_COUNT (sizeof(features) / sizeof(features[0]))
@@ -109,7 +108,7 @@ Object provider_call(char *method, Array args)
"Provider for \"%s\" is not available",
method);
report_error(buf);
- msgpack_rpc_free_array(args);
+ api_free_array(args);
return NIL;
}
@@ -119,7 +118,7 @@ Object provider_call(char *method, Array args)
if (error) {
report_error(result.data.string.data);
- msgpack_rpc_free_object(result);
+ api_free_object(result);
return NIL;
}