aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/handle.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-23 18:10:52 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-23 18:10:52 -0300
commit9e95c8aa331e3872253e7a06be32103b440bc97f (patch)
treed25a81cd37939466e5b9c8b33b3566f9aefbdf49 /src/nvim/api/private/handle.h
parentf1e52c496ddb89f830cdbc4f23d756131106b97f (diff)
parent6c96e42e2c18bd6ae685b5a41c69b03954aa0375 (diff)
downloadrneovim-9e95c8aa331e3872253e7a06be32103b440bc97f.tar.gz
rneovim-9e95c8aa331e3872253e7a06be32103b440bc97f.tar.bz2
rneovim-9e95c8aa331e3872253e7a06be32103b440bc97f.zip
Merge branch 'use-uids-for-api-remote-objects'
Diffstat (limited to 'src/nvim/api/private/handle.h')
-rw-r--r--src/nvim/api/private/handle.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/api/private/handle.h b/src/nvim/api/private/handle.h
new file mode 100644
index 0000000000..27df453233
--- /dev/null
+++ b/src/nvim/api/private/handle.h
@@ -0,0 +1,20 @@
+#ifndef NVIM_API_HANDLE_H
+#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)
+HANDLE_DECLS(win_T, window)
+HANDLE_DECLS(tabpage_T, tabpage)
+
+void handle_init(void);
+
+
+#endif // NVIM_API_HANDLE_H
+