diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-23 15:49:44 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-23 16:06:58 -0300 |
commit | a842fe4dc1e0624a6332ee0fef40517e7925dfb4 (patch) | |
tree | a7a870dcff8ddbaaf00d7a4eb78b209dfc0b1ad5 /src/nvim/api/private/defs.h | |
parent | f70f9bfac1ae62828d222bc6ccb528e6e93be523 (diff) | |
download | rneovim-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/api/private/defs.h')
-rw-r--r-- | src/nvim/api/private/defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/api/private/defs.h b/src/nvim/api/private/defs.h index 770f43b20a..6be786b15a 100644 --- a/src/nvim/api/private/defs.h +++ b/src/nvim/api/private/defs.h @@ -34,6 +34,9 @@ REMOTE_TYPE(Tabpage); typedef struct object Object; +TYPED_ARRAY_OF(Buffer); +TYPED_ARRAY_OF(Window); +TYPED_ARRAY_OF(Tabpage); TYPED_ARRAY_OF(String); typedef struct { |