diff options
| author | 0cyn <kat@vector35.com> | 2025-10-22 02:37:05 -0400 |
|---|---|---|
| committer | 0cyn <kat@vector35.com> | 2025-10-29 07:50:20 -0400 |
| commit | 72fcf44f3731ade3cf1310da55f633f1cb9069ce (patch) | |
| tree | 8b110d6951080ee3bf3a1a742c2c72dbb497c517 /rust/src/repository/plugin.rs | |
| parent | 5d9fa6553036f9d0e5216948585f4e7dcde3fcb7 (diff) | |
Refactor Plugin Load/Management to support upcoming changes
Diffstat (limited to 'rust/src/repository/plugin.rs')
| -rw-r--r-- | rust/src/repository/plugin.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/repository/plugin.rs b/rust/src/repository/plugin.rs index e0ab9679..45d0e684 100644 --- a/rust/src/repository/plugin.rs +++ b/rust/src/repository/plugin.rs @@ -11,15 +11,15 @@ use std::time::{Duration, SystemTime, UNIX_EPOCH}; #[repr(transparent)] pub struct RepositoryPlugin { - handle: NonNull<BNRepoPlugin>, + handle: NonNull<BNPlugin>, } impl RepositoryPlugin { - pub(crate) unsafe fn from_raw(handle: NonNull<BNRepoPlugin>) -> Self { + pub(crate) unsafe fn from_raw(handle: NonNull<BNPlugin>) -> Self { Self { handle } } - pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNRepoPlugin>) -> Ref<Self> { + pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNPlugin>) -> Ref<Self> { Ref::new(Self { handle }) } @@ -33,7 +33,7 @@ impl RepositoryPlugin { /// String of the plugin author pub fn author(&self) -> String { - let result = unsafe { BNPluginGetAuthor(self.handle.as_ptr()) }; + let result = unsafe { BNPluginGetAuthorUrl(self.handle.as_ptr()) }; assert!(!result.is_null()); unsafe { BnString::into_string(result as *mut c_char) } } @@ -287,7 +287,7 @@ unsafe impl RefCountable for RepositoryPlugin { } impl CoreArrayProvider for RepositoryPlugin { - type Raw = *mut BNRepoPlugin; + type Raw = *mut BNPlugin; type Context = (); type Wrapped<'a> = Guard<'a, Self>; } |
