aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/msgpack_rpc.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-23 15:49:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-23 16:06:58 -0300
commita842fe4dc1e0624a6332ee0fef40517e7925dfb4 (patch)
treea7a870dcff8ddbaaf00d7a4eb78b209dfc0b1ad5 /src/nvim/os/msgpack_rpc.c
parentf70f9bfac1ae62828d222bc6ccb528e6e93be523 (diff)
downloadrneovim-a842fe4dc1e0624a6332ee0fef40517e7925dfb4.tar.gz
rneovim-a842fe4dc1e0624a6332ee0fef40517e7925dfb4.tar.bz2
rneovim-a842fe4dc1e0624a6332ee0fef40517e7925dfb4.zip
API: Refactor: Return handles instead of indexes
- Define specialized arrays for each remote object type - Implement msgpack_rpc functions for dealing with the new types - Refactor all functions dealing with buffers, windows and tabpages to return/accept handles instead of list indexes.
Diffstat (limited to 'src/nvim/os/msgpack_rpc.c')
-rw-r--r--src/nvim/os/msgpack_rpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/os/msgpack_rpc.c b/src/nvim/os/msgpack_rpc.c
index 5840d25375..d7ffa6f559 100644
--- a/src/nvim/os/msgpack_rpc.c
+++ b/src/nvim/os/msgpack_rpc.c
@@ -377,5 +377,8 @@ REMOTE_FUNCS_IMPL(Buffer, buffer)
REMOTE_FUNCS_IMPL(Window, window)
REMOTE_FUNCS_IMPL(Tabpage, tabpage)
+TYPED_ARRAY_IMPL(Buffer, buffer)
+TYPED_ARRAY_IMPL(Window, window)
+TYPED_ARRAY_IMPL(Tabpage, tabpage)
TYPED_ARRAY_IMPL(String, string)