Function pipewire_sys::pw_impl_node_for_each_port
source · pub unsafe extern "C" fn pw_impl_node_for_each_port(
node: *mut pw_impl_node,
direction: spa_direction,
callback: Option<unsafe extern "C" fn(data: *mut c_void, port: *mut pw_impl_port) -> c_int>,
data: *mut c_void
) -> c_int
Expand description
Iterate the ports in the given direction. The callback should return 0 to fetch the next item, any other value stops the iteration and returns the value. When all callbacks return 0, this function returns 0 when all items are iterated.