aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/handle.h
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-08-22 11:25:59 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2021-08-22 11:28:47 +0200
commitc265fd31ab2b0307650ad94e1ea272e9360c345f (patch)
tree9ca3efcc04236190d15a418e1ff0a2ca1d4d6a1c /src/nvim/api/private/handle.h
parentb888018aed249174aad7586859ac5142f1a3ef10 (diff)
downloadrneovim-c265fd31ab2b0307650ad94e1ea272e9360c345f.tar.gz
rneovim-c265fd31ab2b0307650ad94e1ea272e9360c345f.tar.bz2
rneovim-c265fd31ab2b0307650ad94e1ea272e9360c345f.zip
refactor(api): remove unneccesary indirection around handles
These things are just maps to pointers, no need to perform a huge song and dance around it.
Diffstat (limited to 'src/nvim/api/private/handle.h')
-rw-r--r--src/nvim/api/private/handle.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/nvim/api/private/handle.h b/src/nvim/api/private/handle.h
deleted file mode 100644
index 26e9dc3314..0000000000
--- a/src/nvim/api/private/handle.h
+++ /dev/null
@@ -1,24 +0,0 @@
-#ifndef NVIM_API_PRIVATE_HANDLE_H
-#define NVIM_API_PRIVATE_HANDLE_H
-
-#include "nvim/vim.h"
-#include "nvim/buffer_defs.h"
-#include "nvim/api/private/defs.h"
-
-#define HANDLE_DECLS(type, name) \
- type *handle_get_##name(handle_T handle); \
- void handle_register_##name(type *name); \
- void handle_unregister_##name(type *name);
-
-// handle_get_buffer handle_register_buffer, handle_unregister_buffer
-HANDLE_DECLS(buf_T, buffer)
-// handle_get_window handle_register_window, handle_unregister_window
-HANDLE_DECLS(win_T, window)
-// handle_get_tabpage handle_register_tabpage, handle_unregister_tabpage
-HANDLE_DECLS(tabpage_T, tabpage)
-
-void handle_init(void);
-
-
-#endif // NVIM_API_PRIVATE_HANDLE_H
-