feat: Add dynamic checks for supported plugins

This commit is contained in:
Fabio Lenherr / DashieTM 2024-04-09 17:34:48 +02:00
parent 5c7bdd6889
commit ebbd226676
2 changed files with 15 additions and 3 deletions

View file

@ -15,7 +15,7 @@ pub const INTERFACE: &str = "org.Xetibo.ReSet.TestPlugin";
#[allow(improper_ctypes_definitions)]
pub extern "C" fn capabilities() -> PluginCapabilities {
println!("frontend capabilities called");
PluginCapabilities::new(vec!["frontend test"], PluginImplementation::Frontend)
PluginCapabilities::new(vec!["test"], PluginImplementation::Frontend)
}
#[no_mangle]
@ -81,4 +81,4 @@ pub struct LabelWrapper {
unsafe impl Send for LabelWrapper {}
unsafe impl Sync for LabelWrapper {}
unsafe impl Sync for LabelWrapper {}