aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-03-15 17:46:07 +0100
committerGitHub <noreply@github.com>2017-03-15 17:46:07 +0100
commitf4b8dbeeb21ca65c5cd19fa361c5588349c0a1e0 (patch)
tree183cfb73ac950194b70c37a1b89aeb57028cec6d /src/nvim/api/ui.c
parentec4e84210b87965e7110b061a321c7ec8a359d47 (diff)
parent7d28489a338e7112c0c7dc5e5a131ba8dcd1b3d2 (diff)
downloadrneovim-f4b8dbeeb21ca65c5cd19fa361c5588349c0a1e0.tar.gz
rneovim-f4b8dbeeb21ca65c5cd19fa361c5588349c0a1e0.tar.bz2
rneovim-f4b8dbeeb21ca65c5cd19fa361c5588349c0a1e0.zip
Merge pull request #5540 from bfredl/api_since
allow specify api since field and more api compatibility checks
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index 9178538110..625bcc6b4b 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -48,7 +48,7 @@ void remote_ui_disconnect(uint64_t channel_id)
void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height,
Dictionary options, Error *err)
- FUNC_API_NOEVAL
+ FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (pmap_has(uint64_t)(connected_uis, channel_id)) {
api_set_error(err, Exception, _("UI already attached for channel"));
@@ -118,7 +118,7 @@ void ui_attach(uint64_t channel_id, Integer width, Integer height,
}
void nvim_ui_detach(uint64_t channel_id, Error *err)
- FUNC_API_NOEVAL
+ FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
api_set_error(err, Exception, _("UI is not attached for channel"));
@@ -130,7 +130,7 @@ void nvim_ui_detach(uint64_t channel_id, Error *err)
void nvim_ui_try_resize(uint64_t channel_id, Integer width,
Integer height, Error *err)
- FUNC_API_NOEVAL
+ FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
api_set_error(err, Exception, _("UI is not attached for channel"));
@@ -151,7 +151,7 @@ void nvim_ui_try_resize(uint64_t channel_id, Integer width,
void nvim_ui_set_option(uint64_t channel_id, String name,
Object value, Error *error)
- FUNC_API_NOEVAL
+ FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
api_set_error(error, Exception, _("UI is not attached for channel"));