summaryrefslogtreecommitdiff
path: root/rust/src/repository/plugin.rs
diff options
context:
space:
mode:
author0cyn <kat@vector35.com>2025-11-03 15:04:53 -0500
committer0cyn <kat@vector35.com>2025-11-03 15:04:53 -0500
commit023ec070cf1328879ff95e520a6b14ee092dde60 (patch)
tree0c59006a0fd19fbe24ead3c51ed402dd7114d807 /rust/src/repository/plugin.rs
parent0c55bf12f6148a8f3c4b1af66c950d73e371b351 (diff)
Revert "Refactor Plugin Load/Management to support upcoming changes"
This reverts commit 72fcf44f3731ade3cf1310da55f633f1cb9069ce.
Diffstat (limited to 'rust/src/repository/plugin.rs')
-rw-r--r--rust/src/repository/plugin.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/src/repository/plugin.rs b/rust/src/repository/plugin.rs
index 45d0e684..e0ab9679 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<BNPlugin>,
+ handle: NonNull<BNRepoPlugin>,
}
impl RepositoryPlugin {
- pub(crate) unsafe fn from_raw(handle: NonNull<BNPlugin>) -> Self {
+ pub(crate) unsafe fn from_raw(handle: NonNull<BNRepoPlugin>) -> Self {
Self { handle }
}
- pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNPlugin>) -> Ref<Self> {
+ pub(crate) unsafe fn ref_from_raw(handle: NonNull<BNRepoPlugin>) -> 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 { BNPluginGetAuthorUrl(self.handle.as_ptr()) };
+ let result = unsafe { BNPluginGetAuthor(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 BNPlugin;
+ type Raw = *mut BNRepoPlugin;
type Context = ();
type Wrapped<'a> = Guard<'a, Self>;
}