diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-09 18:22:37 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-13 09:33:41 -0300 |
commit | 73dbb97f8e51c77bb553a8af645b728543462d26 (patch) | |
tree | 2c989a2c8f3ec4ce74e24f4faef7748f5c8ae2a9 /src/api/helpers.h | |
parent | 9dd1d2cd003d2567fcd47c8cb54603cc348dec01 (diff) | |
download | rneovim-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.h | 14 |
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 */ |