#[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 duplicate 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
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 Freeze for spa_plugin_loader_methods
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