|
PipeWire
0.3.36
|
A link is the connection between 2 nodes (PipeWire Node). More...
Data Structures | |
| struct | pw_link_info |
| The link information. More... | |
| struct | pw_link_events |
| Link events. More... | |
| struct | pw_link_methods |
| Link methods. More... | |
Macros | |
| #define | PW_TYPE_INTERFACE_Link PW_TYPE_INFO_INTERFACE_BASE "Link" |
| #define | PW_VERSION_LINK 3 |
| #define | PW_LINK_EVENT_INFO 0 |
| #define | PW_LINK_EVENT_NUM 1 |
| #define | PW_LINK_METHOD_ADD_LISTENER 0 |
| #define | PW_LINK_METHOD_NUM 1 |
| #define | pw_link_method(o, method, version, ...) |
| #define | pw_link_add_listener(c, ...) pw_link_method(c,add_listener,0,__VA_ARGS__) |
Enumerations | |
| enum | pw_link_state { PW_LINK_STATE_ERROR = -2, PW_LINK_STATE_UNLINKED = -1, PW_LINK_STATE_INIT = 0, PW_LINK_STATE_NEGOTIATING = 1, PW_LINK_STATE_ALLOCATING = 2, PW_LINK_STATE_PAUSED = 3, PW_LINK_STATE_ACTIVE = 4 } |
| The different link states. More... | |
Functions | |
| const char * | pw_link_state_as_string (enum pw_link_state state) |
| Convert a pw_link_state to a readable string. More... | |
| struct pw_link_info * | pw_link_info_update (struct pw_link_info *info, const struct pw_link_info *update) |
| struct pw_link_info * | pw_link_info_merge (struct pw_link_info *info, const struct pw_link_info *update, bool reset) |
| void | pw_link_info_free (struct pw_link_info *info) |
A link is the connection between 2 nodes (PipeWire Node).
Nodes are linked together on ports.
The link is responsible for negotiating the format and buffers for the nodes.
| #define pw_link_add_listener | ( | c, | |
| ... | |||
| ) | pw_link_method(c,add_listener,0,__VA_ARGS__) |
| #define PW_LINK_EVENT_INFO 0 |
| #define PW_LINK_EVENT_NUM 1 |
| #define pw_link_method | ( | o, | |
| method, | |||
| version, | |||
| ... | |||
| ) |
| #define PW_LINK_METHOD_ADD_LISTENER 0 |
| #define PW_LINK_METHOD_NUM 1 |
| #define PW_TYPE_INTERFACE_Link PW_TYPE_INFO_INTERFACE_BASE "Link" |
Referenced by pipewire__module_init(), and pw_impl_link_register().
| #define PW_VERSION_LINK 3 |
Referenced by pipewire__module_init(), and pw_impl_link_register().
| enum pw_link_state |
The different link states.
| void pw_link_info_free | ( | struct pw_link_info * | info | ) |
References pw_link_info::error, pw_link_info::format, and pw_link_info::props.
| struct pw_link_info* pw_link_info_merge | ( | struct pw_link_info * | info, |
| const struct pw_link_info * | update, | ||
| bool | reset | ||
| ) |
References pw_link_info::change_mask, pw_link_info::error, pw_link_info::format, pw_link_info::id, pw_link_info::input_node_id, pw_link_info::input_port_id, pw_link_info::output_node_id, pw_link_info::output_port_id, pw_link_info::props, PW_LINK_CHANGE_MASK_FORMAT, PW_LINK_CHANGE_MASK_PROPS, PW_LINK_CHANGE_MASK_STATE, spa_pod_copy(), and pw_link_info::state.
Referenced by pw_link_info_update().
| struct pw_link_info* pw_link_info_update | ( | struct pw_link_info * | info, |
| const struct pw_link_info * | update | ||
| ) |
References pw_link_info_merge().
| const char* pw_link_state_as_string | ( | enum pw_link_state | state | ) |
Convert a pw_link_state to a readable string.
References PW_LINK_STATE_ACTIVE, PW_LINK_STATE_ALLOCATING, PW_LINK_STATE_ERROR, PW_LINK_STATE_INIT, PW_LINK_STATE_NEGOTIATING, PW_LINK_STATE_PAUSED, and PW_LINK_STATE_UNLINKED.
Referenced by pw_impl_link_activate().