Skip to content

Commit

Permalink
feat: Add factory function for plugindata
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Mar 17, 2024
1 parent cc87f82 commit 11ab6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn plugin_data() -> PluginData {
}

#[repr(C)]
pub struct PluginCapabilities(Vec<String>);
pub struct PluginCapabilities(pub Vec<String>);

impl PluginCapabilities {
pub fn get_capabilities(&self) -> Vec<String> {
Expand All @@ -18,7 +18,7 @@ impl PluginCapabilities {
}

#[repr(C)]
pub struct PluginData(HashMap<String, Variant>);
pub struct PluginData(pub HashMap<String, Variant>);

impl PluginData {
pub fn get_data(&self) -> HashMap<String, Variant> {
Expand Down

0 comments on commit 11ab6c1

Please sign in to comment.