diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-28 08:42:10 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-28 08:52:54 -0300 |
commit | c3c826da34be63543f3bf54f31c2ff38bfcd715a (patch) | |
tree | e9a3983cffed1a3ab2e1b4254ee5bbe1aaa0a384 /src/nvim/api/vim.h | |
parent | 6b006dd7a227fb6d14161cab3759a467a69f21d3 (diff) | |
download | rneovim-c3c826da34be63543f3bf54f31c2ff38bfcd715a.tar.gz rneovim-c3c826da34be63543f3bf54f31c2ff38bfcd715a.tar.bz2 rneovim-c3c826da34be63543f3bf54f31c2ff38bfcd715a.zip |
API: Events: Add functions for {un}subscribing to broadcasted events
Diffstat (limited to 'src/nvim/api/vim.h')
-rw-r--r-- | src/nvim/api/vim.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/api/vim.h b/src/nvim/api/vim.h index acfab11cf7..4d1ac9023e 100644 --- a/src/nvim/api/vim.h +++ b/src/nvim/api/vim.h @@ -155,5 +155,17 @@ Tabpage vim_get_current_tabpage(void); /// @param[out] err Details of an error that may have occurred void vim_set_current_tabpage(Tabpage tabpage, Error *err); +/// Subscribes to event broadcasts +/// +/// @param channel_id The channel id(passed automatically by the dispatcher) +/// @param event The event type string +void vim_subscribe(uint64_t channel_id, String event); + +/// Unsubscribes to event broadcasts +/// +/// @param channel_id The channel id(passed automatically by the dispatcher) +/// @param event The event type string +void vim_unsubscribe(uint64_t channel_id, String event); + #endif // NVIM_API_VIM_H |