aboutsummaryrefslogtreecommitdiff
path: root/src/api/vim.h
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-09 18:22:37 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-13 09:33:41 -0300
commit73dbb97f8e51c77bb553a8af645b728543462d26 (patch)
tree2c989a2c8f3ec4ce74e24f4faef7748f5c8ae2a9 /src/api/vim.h
parent9dd1d2cd003d2567fcd47c8cb54603cc348dec01 (diff)
downloadrneovim-73dbb97f8e51c77bb553a8af645b728543462d26.tar.gz
rneovim-73dbb97f8e51c77bb553a8af645b728543462d26.tar.bz2
rneovim-73dbb97f8e51c77bb553a8af645b728543462d26.zip
API: Implement window/tabpage switching functions
Also moved `find_buffer` to 'api/helpers.c' and removed unnecessary declaration in 'window.h'
Diffstat (limited to 'src/api/vim.h')
-rw-r--r--src/api/vim.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/api/vim.h b/src/api/vim.h
index e310842e5b..19de6554a6 100644
--- a/src/api/vim.h
+++ b/src/api/vim.h
@@ -117,13 +117,6 @@ void vim_set_current_buffer(Buffer buffer, Error *err);
/// @return The number of windows
int64_t vim_get_window_count(void);
-/// Gets a window by index
-///
-/// @param num The window number
-/// @param[out] err Details of an error that may have occurred
-/// @return The window handle
-Window vim_get_window(int64_t num, Error *err);
-
/// Return the current window
///
/// @return The window handle
@@ -132,20 +125,13 @@ Window vim_get_current_window(void);
/// Sets the current window
///
/// @param handle The window handle
-void vim_set_current_window(Window window);
+void vim_set_current_window(Window window, Error *err);
/// Gets the number of tab pages
///
/// @return The number of tab pages
int64_t vim_get_tabpage_count(void);
-/// Gets a tab page by index
-///
-/// @param num The tabpage number
-/// @param[out] err Details of an error that may have occurred
-/// @return The tab page handle
-Tabpage vim_get_tabpage(int64_t num, Error *err);
-
/// Return the current tab page
///
/// @return The tab page handle
@@ -154,7 +140,8 @@ Tabpage vim_get_current_tabpage(void);
/// Sets the current tab page
///
/// @param handle The tab page handle
-void vim_set_current_tabpage(Tabpage tabpage);
+/// @param[out] err Details of an error that may have occurred
+void vim_set_current_tabpage(Tabpage tabpage, Error *err);
#endif // NEOVIM_API_VIM_H