diff options
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 */ |