From 73976e975ddf4dd0cbb5aa49425cf36e5655cd5c Mon Sep 17 00:00:00 2001 From: 0cyn Date: Sat, 25 Apr 2026 15:18:38 -0400 Subject: Re-add license text field to API --- rust/src/repository/plugin.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rust/src') diff --git a/rust/src/repository/plugin.rs b/rust/src/repository/plugin.rs index ac7c9d20..1abee1e8 100644 --- a/rust/src/repository/plugin.rs +++ b/rust/src/repository/plugin.rs @@ -103,6 +103,13 @@ impl Extension { unsafe { BnString::into_string(result as *mut c_char) } } + /// String complete license text for the given plugin + pub fn license_text(&self) -> String { + let result = unsafe { BNPluginGetLicenseText(self.handle.as_ptr()) }; + assert!(!result.is_null()); + unsafe { BnString::into_string(result as *mut c_char) } + } + /// Minimum version info the plugin was tested on pub fn minimum_version_info(&self) -> VersionInfo { let result = unsafe { BNPluginGetMinimumVersionInfo(self.handle.as_ptr()) }; -- cgit v1.3.1