aboutsummaryrefslogtreecommitdiff
path: root/src/api/helpers.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/helpers.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/helpers.h')
-rw-r--r--src/api/helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/api/helpers.h b/src/api/helpers.h
index d98ed3b22b..f9b8a81c16 100644
--- a/src/api/helpers.h
+++ b/src/api/helpers.h
@@ -66,5 +66,19 @@ void set_option_to(void *to, int type, String name, Object value, Error *err);
/// @return The converted value
Object vim_to_object(typval_T *obj);
+/// Finds the pointer for a window number
+///
+/// @param window the window number
+/// @param[out] err Details of an error that may have occurred
+/// @return the window pointer
+buf_T *find_buffer(Buffer buffer, Error *err);
+
+/// Finds the pointer for a window number
+///
+/// @param window the window number
+/// @param[out] err Details of an error that may have occurred
+/// @return the window pointer
+win_T * find_window(Window window, Error *err);
+
#endif /* NEOVIM_API_HELPERS_H */