From e4db4f0704ea6e6b381e9322a336661dc23c3b5f Mon Sep 17 00:00:00 2001 From: 0cyn Date: Mon, 27 Apr 2026 13:25:14 -0400 Subject: Expose 'is_paid' Extension field in API --- rust/src/repository/plugin.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/src') diff --git a/rust/src/repository/plugin.rs b/rust/src/repository/plugin.rs index 1abee1e8..9a8dba91 100644 --- a/rust/src/repository/plugin.rs +++ b/rust/src/repository/plugin.rs @@ -157,6 +157,11 @@ impl Extension { unsafe { BnString::into_string(result as *mut c_char) } } + /// Boolean True if this plugin requires payment, False otherwise + pub fn is_paid(&self) -> bool { + unsafe { BNPluginGetIsPaid(self.handle.as_ptr()) } + } + /// String URL of the plugin author's url pub fn author_url(&self) -> String { let result = unsafe { BNPluginGetAuthorUrl(self.handle.as_ptr()) }; -- cgit v1.3.1