Struct pipewire_sys::pw_client_node_methods
source · #[repr(C)]pub struct pw_client_node_methods {
pub version: u32,
pub add_listener: Option<unsafe extern "C" fn(object: *mut c_void, listener: *mut spa_hook, events: *const pw_client_node_events, data: *mut c_void) -> c_int>,
pub get_node: Option<unsafe extern "C" fn(object: *mut c_void, version: u32, user_data_size: usize) -> *mut pw_node>,
pub update: Option<unsafe extern "C" fn(object: *mut c_void, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_node_info) -> c_int>,
pub port_update: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_port_info) -> c_int>,
pub set_active: Option<unsafe extern "C" fn(object: *mut c_void, active: bool) -> c_int>,
pub event: Option<unsafe extern "C" fn(object: *mut c_void, event: *const spa_event) -> c_int>,
pub port_buffers: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, mix_id: u32, n_buffers: u32, buffers: *mut *mut spa_buffer) -> c_int>,
}
Expand description
\ref pw_client_node methods
Fields§
§version: u32
§add_listener: Option<unsafe extern "C" fn(object: *mut c_void, listener: *mut spa_hook, events: *const pw_client_node_events, data: *mut c_void) -> c_int>
§get_node: Option<unsafe extern "C" fn(object: *mut c_void, version: u32, user_data_size: usize) -> *mut pw_node>
get the node object
update: Option<unsafe extern "C" fn(object: *mut c_void, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_node_info) -> c_int>
Update the node ports and properties
Update the maximum number of ports and the params of the client node. \param change_mask bitfield with changed parameters \param max_input_ports new max input ports \param max_output_ports new max output ports \param params new params
port_update: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, change_mask: u32, n_params: u32, params: *mut *const spa_pod, info: *const spa_port_info) -> c_int>
Update a node port
Update the information of one port of a node. \param direction the direction of the port \param port_id the port id to update \param change_mask a bitfield of changed items \param n_params number of port parameters \param params array of port parameters \param info port information
set_active: Option<unsafe extern "C" fn(object: *mut c_void, active: bool) -> c_int>
Activate or deactivate the node
event: Option<unsafe extern "C" fn(object: *mut c_void, event: *const spa_event) -> c_int>
Send an event to the node \param event the event to send
port_buffers: Option<unsafe extern "C" fn(object: *mut c_void, direction: spa_direction, port_id: u32, mix_id: u32, n_buffers: u32, buffers: *mut *mut spa_buffer) -> c_int>
Send allocated buffers
Trait Implementations§
source§impl Clone for pw_client_node_methods
impl Clone for pw_client_node_methods
source§fn clone(&self) -> pw_client_node_methods
fn clone(&self) -> pw_client_node_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 pw_client_node_methods
impl Debug for pw_client_node_methods
impl Copy for pw_client_node_methods
Auto Trait Implementations§
impl RefUnwindSafe for pw_client_node_methods
impl Send for pw_client_node_methods
impl Sync for pw_client_node_methods
impl Unpin for pw_client_node_methods
impl UnwindSafe for pw_client_node_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