diff options
| author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2021-11-26 18:44:43 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 10:44:43 +0100 |
| commit | c349586d84e63f9c752340246fc5ca7fa538795d (patch) | |
| tree | 3bbbaf6884bc42ac35354d7bd92f692234bb376c /zellij-tile | |
| parent | update(readme): update matrix link to new room (#903) (diff) | |
| download | sl0ppij-c349586d84e63f9c752340246fc5ca7fa538795d.tar.gz sl0ppij-c349586d84e63f9c752340246fc5ca7fa538795d.tar.xz sl0ppij-c349586d84e63f9c752340246fc5ca7fa538795d.zip | |
feat: provide the zellij version to plugins (#894)
* feat: add draft of feature
* feat(wasm): add plugin API for getting of zellij version
* feat(wasm): update feedback
* delete unnecessary function
Diffstat (limited to 'zellij-tile')
| -rw-r--r-- | zellij-tile/src/shim.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs index c664d36b..e3537053 100644 --- a/zellij-tile/src/shim.rs +++ b/zellij-tile/src/shim.rs @@ -27,6 +27,11 @@ pub fn get_plugin_ids() -> PluginIds { object_from_stdin().unwrap() } +pub fn get_zellij_version() -> String { + unsafe { host_get_zellij_version() }; + object_from_stdin().unwrap() +} + // Host Functions pub fn open_file(path: &Path) { @@ -66,6 +71,7 @@ extern "C" { fn host_unsubscribe(); fn host_set_selectable(selectable: i32); fn host_get_plugin_ids(); + fn host_get_zellij_version(); fn host_open_file(); fn host_switch_tab_to(tab_idx: u32); fn host_set_timeout(secs: f64); |
