diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-12 02:25:17 +0200 |
---|---|---|
committer | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-05-15 20:46:01 +0200 |
commit | da51dc9cf202772f60bd2da975dbef257bd9237c (patch) | |
tree | 5c16b93238a153f55634e9323077f30c8133970c /src/nvim/api/tabpage.h | |
parent | ffe61e5ba1721340ca51d56bae3ddaca415fb5bc (diff) | |
download | rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.gz rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.tar.bz2 rneovim-da51dc9cf202772f60bd2da975dbef257bd9237c.zip |
Introduce nvim namespace: Move files.
Move files from src/ to src/nvim/.
- src/nvim/ becomes the new root dir for nvim executable sources.
- src/libnvim/ is planned to become root dir of the neovim library.
Diffstat (limited to 'src/nvim/api/tabpage.h')
-rw-r--r-- | src/nvim/api/tabpage.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/nvim/api/tabpage.h b/src/nvim/api/tabpage.h new file mode 100644 index 0000000000..ccd6c7ab9e --- /dev/null +++ b/src/nvim/api/tabpage.h @@ -0,0 +1,47 @@ +#ifndef NEOVIM_API_TABPAGE_H +#define NEOVIM_API_TABPAGE_H + +#include <stdint.h> +#include <stdbool.h> + +#include "api/defs.h" + +/// Gets the number of windows in a tabpage +/// +/// @param tabpage The tabpage +/// @param[out] err Details of an error that may have occurred +/// @return The number of windows in `tabpage` +int64_t tabpage_get_window_count(Tabpage tabpage, Error *err); + +/// Gets a tabpage variable +/// +/// @param tabpage The tab page handle +/// @param name The variable name +/// @param[out] err Details of an error that may have occurred +/// @return The variable value +Object tabpage_get_var(Tabpage tabpage, String name, Error *err); + +/// Sets a tabpage variable. Passing 'nil' as value deletes the variable. +/// +/// @param tabpage handle +/// @param name The variable name +/// @param value The variable value +/// @param[out] err Details of an error that may have occurred +/// @return The tab page handle +Object tabpage_set_var(Tabpage tabpage, String name, Object value, Error *err); + +/// Gets the current window in a tab page +/// +/// @param tabpage The tab page handle +/// @param[out] err Details of an error that may have occurred +/// @return The Window handle +Window tabpage_get_window(Tabpage tabpage, Error *err); + +/// Checks if a tab page is valid +/// +/// @param tabpage The tab page handle +/// @return true if the tab page is valid, false otherwise +bool tabpage_is_valid(Tabpage tabpage); + +#endif // NEOVIM_API_TABPAGE_H + |