From 73dbb97f8e51c77bb553a8af645b728543462d26 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 9 May 2014 18:22:37 -0300 Subject: API: Implement window/tabpage switching functions Also moved `find_buffer` to 'api/helpers.c' and removed unnecessary declaration in 'window.h' --- src/api/vim.h | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'src/api/vim.h') 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 -- cgit