mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00

- Define specialized arrays for each remote object type - Implement msgpack_rpc functions for dealing with the new types - Refactor all functions dealing with buffers, windows and tabpages to return/accept handles instead of list indexes.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
#ifndef NVIM_API_TABPAGE_H
|
|
#define NVIM_API_TABPAGE_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "nvim/api/private/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`
|
|
WindowArray tabpage_get_windows(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
|
|
Boolean tabpage_is_valid(Tabpage tabpage);
|
|
|
|
#endif // NVIM_API_TABPAGE_H
|
|
|