Struct pipewire_sys::pw_impl_node_events
source · #[repr(C)]pub struct pw_impl_node_events {Show 17 fields
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 initialized: Option<unsafe extern "C" fn(data: *mut c_void)>,
pub port_init: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>,
pub port_added: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>,
pub port_removed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>,
pub info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_node_info)>,
pub port_info_changed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port, info: *const pw_port_info)>,
pub active_changed: Option<unsafe extern "C" fn(data: *mut c_void, active: bool)>,
pub state_request: Option<unsafe extern "C" fn(data: *mut c_void, state: pw_node_state)>,
pub state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_node_state, state: pw_node_state, error: *const c_char)>,
pub result: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, res: c_int, type_: u32, result: *const c_void)>,
pub event: Option<unsafe extern "C" fn(data: *mut c_void, event: *const spa_event)>,
pub driver_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: *mut pw_impl_node, driver: *mut pw_impl_node)>,
pub peer_added: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>,
pub peer_removed: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>,
}
Expand description
Node events, listen to them with \ref pw_impl_node_add_listener
Fields§
§version: u32
§destroy: Option<unsafe extern "C" fn(data: *mut c_void)>
the node is destroyed
free: Option<unsafe extern "C" fn(data: *mut c_void)>
the node is about to be freed
initialized: Option<unsafe extern "C" fn(data: *mut c_void)>
the node is initialized
port_init: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>
a port is being initialized on the node
port_added: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>
a port was added
port_removed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port)>
a port was removed
info_changed: Option<unsafe extern "C" fn(data: *mut c_void, info: *const pw_node_info)>
the node info changed
port_info_changed: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port, info: *const pw_port_info)>
a port on the node changed info
active_changed: Option<unsafe extern "C" fn(data: *mut c_void, active: bool)>
the node active state changed
state_request: Option<unsafe extern "C" fn(data: *mut c_void, state: pw_node_state)>
a new state is requested on the node
state_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: pw_node_state, state: pw_node_state, error: *const c_char)>
the state of the node changed
result: Option<unsafe extern "C" fn(data: *mut c_void, seq: c_int, res: c_int, type_: u32, result: *const c_void)>
a result was received
event: Option<unsafe extern "C" fn(data: *mut c_void, event: *const spa_event)>
an event is emitted
driver_changed: Option<unsafe extern "C" fn(data: *mut c_void, old: *mut pw_impl_node, driver: *mut pw_impl_node)>
the driver of the node changed
peer_added: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>
a peer was added
peer_removed: Option<unsafe extern "C" fn(data: *mut c_void, peer: *mut pw_impl_node)>
a peer was removed
Trait Implementations§
source§impl Clone for pw_impl_node_events
impl Clone for pw_impl_node_events
source§fn clone(&self) -> pw_impl_node_events
fn clone(&self) -> pw_impl_node_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_impl_node_events
impl Debug for pw_impl_node_events
impl Copy for pw_impl_node_events
Auto Trait Implementations§
impl RefUnwindSafe for pw_impl_node_events
impl Send for pw_impl_node_events
impl Sync for pw_impl_node_events
impl Unpin for pw_impl_node_events
impl UnwindSafe for pw_impl_node_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