Struct pipewire_sys::pw_context_events
source · #[repr(C)]pub struct pw_context_events {
pub version: u32,
pub destroy: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub free: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub check_access: Option<unsafe extern "C" fn(data: *mut c_void, client: *mut pw_impl_client)>,
pub global_added: Option<unsafe extern "C" fn(data: *mut c_void, global: *mut pw_global)>,
pub global_removed: Option<unsafe extern "C" fn(data: *mut c_void, global: *mut pw_global)>,
pub driver_added: Option<unsafe extern "C" fn(data: *mut c_void, node: *mut pw_impl_node)>,
pub driver_removed: Option<unsafe extern "C" fn(data: *mut c_void, node: *mut pw_impl_node)>,
}
Expand description
context events emitted by the context object added with \ref pw_context_add_listener
Fields§
§version: u32
§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>
The context is being destroyed
free: Option<unsafe extern "C" fn(data: *mut c_void)>
The context is being freed
check_access: Option<unsafe extern "C" fn(data: *mut c_void, client: *mut pw_impl_client)>
a new client object is added
global_added: Option<unsafe extern "C" fn(data: *mut c_void, global: *mut pw_global)>
a new global object was added
global_removed: Option<unsafe extern "C" fn(data: *mut c_void, global: *mut pw_global)>
a global object was removed
driver_added: Option<unsafe extern "C" fn(data: *mut c_void, node: *mut pw_impl_node)>
a driver was added, since 0.3.75 version:1
driver_removed: Option<unsafe extern "C" fn(data: *mut c_void, node: *mut pw_impl_node)>
a driver was removed, since 0.3.75 version:1
Trait Implementations§
source§impl Clone for pw_context_events
impl Clone for pw_context_events
source§fn clone(&self) -> pw_context_events
fn clone(&self) -> pw_context_events
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 pw_context_events
impl Debug for pw_context_events
impl Copy for pw_context_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_context_events
impl Send for pw_context_events
impl Sync for pw_context_events
impl Unpin for pw_context_events
impl UnwindSafe for pw_context_events
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