From 9dd1d2cd003d2567fcd47c8cb54603cc348dec01 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 9 May 2014 14:45:18 -0300 Subject: API: Implement buffer switching functions --- src/api/vim.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/api/vim.h') diff --git a/src/api/vim.h b/src/api/vim.h index 81aadb2014..e310842e5b 100644 --- a/src/api/vim.h +++ b/src/api/vim.h @@ -101,13 +101,6 @@ void vim_err_write(String str); /// @return The number of buffers int64_t vim_get_buffer_count(void); -/// Gets a buffer by index -/// -/// @param num The buffer number -/// @param[out] err Details of an error that may have occurred -/// @return The buffer handle -Buffer vim_get_buffer(int64_t num, Error *err); - /// Return the current buffer /// /// @reqturn The buffer handle @@ -116,7 +109,8 @@ Buffer vim_get_current_buffer(void); /// Sets the current buffer /// /// @param id The buffer handle -void vim_set_current_buffer(Buffer buffer); +/// @param[out] err Details of an error that may have occurred +void vim_set_current_buffer(Buffer buffer, Error *err); /// Gets the number of windows /// -- cgit