diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-06-02 23:01:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 23:01:21 +0200 |
commit | 9745941ef620da86bf18f965f85e8fc2ce8206b5 (patch) | |
tree | 083649c7f958c9292b4fe6307d97d08e52358156 /src/nvim/api/vim.c | |
parent | 26966688aa622b448e3ef46d8f1155d57b099211 (diff) | |
parent | d5f047bee04a42f40425c34061c84b39af846e1f (diff) | |
download | rneovim-9745941ef620da86bf18f965f85e8fc2ce8206b5.tar.gz rneovim-9745941ef620da86bf18f965f85e8fc2ce8206b5.tar.bz2 rneovim-9745941ef620da86bf18f965f85e8fc2ce8206b5.zip |
Merge pull request #18730 from bfredl/apiconvert
convert API types using mpack instead of msgpack
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r-- | src/nvim/api/vim.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index 228d114376..2320ae62af 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -45,6 +45,7 @@ #include "nvim/move.h" #include "nvim/msgpack_rpc/channel.h" #include "nvim/msgpack_rpc/helpers.h" +#include "nvim/msgpack_rpc/unpacker.h" #include "nvim/ops.h" #include "nvim/option.h" #include "nvim/os/input.h" @@ -2188,6 +2189,12 @@ void nvim__screenshot(String path) ui_call_screenshot(path); } +Object nvim__unpack(String str, Error *err) + FUNC_API_FAST +{ + return unpack(str.data, str.size, err); +} + /// Deletes an uppercase/file named mark. See |mark-motions|. /// /// @note fails with error if a lowercase or buffer local named mark is used. |