From 9fddd2a54eaa640888c656cdfb490690ec6f519b Mon Sep 17 00:00:00 2001 From: 0cyn Date: Tue, 14 Apr 2026 15:45:28 -0400 Subject: Plugin Manifest V2 Support --- rust/src/repository.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/src/repository.rs') diff --git a/rust/src/repository.rs b/rust/src/repository.rs index b7d61cac..2f1ab267 100644 --- a/rust/src/repository.rs +++ b/rust/src/repository.rs @@ -11,7 +11,7 @@ use std::ptr::NonNull; use binaryninjacore_sys::*; use crate::rc::{Array, CoreArrayProvider, CoreArrayProviderInner, Guard, Ref, RefCountable}; -use crate::repository::plugin::RepositoryPlugin; +use crate::repository::plugin::Extension; use crate::string::{BnString, IntoCStr}; pub use manager::RepositoryManager; @@ -49,17 +49,17 @@ impl Repository { } /// List of RepoPlugin objects contained within this repository - pub fn plugins(&self) -> Array { + pub fn plugins(&self) -> Array { let mut count = 0; let result = unsafe { BNRepositoryGetPlugins(self.handle.as_ptr(), &mut count) }; assert!(!result.is_null()); unsafe { Array::new(result, count, ()) } } - pub fn plugin_by_path(&self, path: &Path) -> Option> { + pub fn plugin_by_path(&self, path: &Path) -> Option> { let path = path.to_cstr(); let result = unsafe { BNRepositoryGetPluginByPath(self.handle.as_ptr(), path.as_ptr()) }; - NonNull::new(result).map(|h| unsafe { RepositoryPlugin::ref_from_raw(h) }) + NonNull::new(result).map(|h| unsafe { Extension::ref_from_raw(h) }) } /// String full path the repository -- cgit v1.3.1