PipeWire
0.2.0
|
Go to the source code of this file.
Data Structures | |
struct | pw_port_events |
Port events, use pw_port_add_listener. More... | |
Macros | |
#define | PW_TYPE__Port "PipeWire:Object:Port" |
#define | PW_TYPE_PORT_BASE PW_TYPE__Port ":" |
#define | PW_VERSION_PORT_EVENTS 0 |
Enumerations | |
enum | pw_port_state { PW_PORT_STATE_ERROR = -1, PW_PORT_STATE_INIT = 0, PW_PORT_STATE_CONFIGURE = 1, PW_PORT_STATE_READY = 2, PW_PORT_STATE_PAUSED = 3, PW_PORT_STATE_STREAMING = 4 } |
Functions | |
enum pw_direction | pw_port_get_direction (struct pw_port *port) |
Get the port direction. More... | |
const struct pw_properties * | pw_port_get_properties (struct pw_port *port) |
Get the port properties. More... | |
int | pw_port_update_properties (struct pw_port *port, const struct spa_dict *dict) |
Update the port properties. More... | |
uint32_t | pw_port_get_id (struct pw_port *port) |
Get the port id. More... | |
struct pw_node * | pw_port_get_node (struct pw_port *port) |
Get the port parent node or NULL when not yet set. More... | |
void | pw_port_add_listener (struct pw_port *port, struct spa_hook *listener, const struct pw_port_events *events, void *data) |
Add an event listener on the port. More... | |
#define PW_TYPE__Port "PipeWire:Object:Port" |
#define PW_TYPE_PORT_BASE PW_TYPE__Port ":" |
#define PW_VERSION_PORT_EVENTS 0 |
enum pw_port_state |
void pw_port_add_listener | ( | struct pw_port * | port, |
struct spa_hook * | listener, | ||
const struct pw_port_events * | events, | ||
void * | data | ||
) |
Add an event listener on the port.
enum pw_direction pw_port_get_direction | ( | struct pw_port * | port | ) |
Get the port direction.
uint32_t pw_port_get_id | ( | struct pw_port * | port | ) |
Get the port id.
Get the port parent node or NULL when not yet set.
const struct pw_properties* pw_port_get_properties | ( | struct pw_port * | port | ) |
Get the port properties.
int pw_port_update_properties | ( | struct pw_port * | port, |
const struct spa_dict * | dict | ||
) |
Update the port properties.
References PW_PORT_CHANGE_MASK_PROPS, pw_port_resource_info, and pw_properties::pw_properties_set().
Referenced by pw_port_add().