aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/handle.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-23 15:49:30 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-23 16:06:58 -0300
commited99198ff1a3c2b6aad88b03e838a1337f83c4dc (patch)
treef3f9b32f07bdb53b532cbfee71f4958689d2e667 /src/nvim/api/private/handle.h
parent7dfc7bc2e17151dc545c3f2f339515c1b946e586 (diff)
downloadrneovim-ed99198ff1a3c2b6aad88b03e838a1337f83c4dc.tar.gz
rneovim-ed99198ff1a3c2b6aad88b03e838a1337f83c4dc.tar.bz2
rneovim-ed99198ff1a3c2b6aad88b03e838a1337f83c4dc.zip
API: Refactor: Register/unregister created/destroyed buffers
- Add the 'handle' field to `buf_T` - Add declare/implement functions for registering/unregistering/retrieving buffers - Register/unregister buffers when they are created/destroyed.
Diffstat (limited to 'src/nvim/api/private/handle.h')
-rw-r--r--src/nvim/api/private/handle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/api/private/handle.h b/src/nvim/api/private/handle.h
index b9ed507ce9..846b20dff2 100644
--- a/src/nvim/api/private/handle.h
+++ b/src/nvim/api/private/handle.h
@@ -2,13 +2,17 @@
#define NVIM_API_HANDLE_H
#include "nvim/vim.h"
+#include "nvim/buffer_defs.h"
#define HANDLE_DECLS(type, name) \
type *handle_get_##name(uint64_t handle); \
void handle_register_##name(type *name); \
void handle_unregister_##name(type *name);
+HANDLE_DECLS(buf_T, buffer)
+
void handle_init(void);
+
#endif // NVIM_API_HANDLE_H