Struct libspa_sys::spa_plugin_loader_methods
source · #[repr(C)]pub struct spa_plugin_loader_methods {
pub version: u32,
pub load: Option<unsafe extern "C" fn(object: *mut c_void, factory_name: *const c_char, info: *const spa_dict) -> *mut spa_handle>,
pub unload: Option<unsafe extern "C" fn(object: *mut c_void, handle: *mut spa_handle) -> c_int>,
}
Fields§
§version: u32
§load: Option<unsafe extern "C" fn(object: *mut c_void, factory_name: *const c_char, info: *const spa_dict) -> *mut spa_handle>
Load a SPA plugin.
\param factory_name Plugin factory name \param info Info dictionary for plugin. NULL if none. \return plugin handle, or NULL on error
unload: Option<unsafe extern "C" fn(object: *mut c_void, handle: *mut spa_handle) -> c_int>
Unload a SPA plugin.
\param handle Plugin handle. \return 0 on success, < 0 on error
Trait Implementations§
source§impl Clone for spa_plugin_loader_methods
impl Clone for spa_plugin_loader_methods
source§fn clone(&self) -> spa_plugin_loader_methods
fn clone(&self) -> spa_plugin_loader_methods
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for spa_plugin_loader_methods
impl Debug for spa_plugin_loader_methods
source§impl PartialEq for spa_plugin_loader_methods
impl PartialEq for spa_plugin_loader_methods
source§fn eq(&self, other: &spa_plugin_loader_methods) -> bool
fn eq(&self, other: &spa_plugin_loader_methods) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for spa_plugin_loader_methods
impl Eq for spa_plugin_loader_methods
impl StructuralPartialEq for spa_plugin_loader_methods
Auto Trait Implementations§
impl RefUnwindSafe for spa_plugin_loader_methods
impl Send for spa_plugin_loader_methods
impl Sync for spa_plugin_loader_methods
impl Unpin for spa_plugin_loader_methods
impl UnwindSafe for spa_plugin_loader_methods
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more