20 #ifndef __PIPEWIRE_PORT_H__ 21 #define __PIPEWIRE_PORT_H__ 27 #define PW_TYPE__Port "PipeWire:Object:Port" 28 #define PW_TYPE_PORT_BASE PW_TYPE__Port ":" 30 #include <spa/utils/hook.h> 61 #define PW_VERSION_PORT_EVENTS 0 106 struct spa_hook *listener,
A collection of key/value pairs.
Definition: properties.h:38
int pw_port_update_properties(struct pw_port *port, const struct spa_dict *dict)
Update the port properties.
Definition: port.c:247
uint32_t pw_port_get_id(struct pw_port *port)
Get the port id.
Definition: port.c:237
void(* link_added)(void *data, struct pw_link *link)
a new link is added on this port
Definition: port.h:74
struct spa_dict dict
Definition: properties.h:39
the port is ready for format negotiation
Definition: port.h:53
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.
Definition: port.c:274
Definition: introspect.h:168
uint32_t version
Definition: port.h:62
const struct pw_properties * pw_port_get_properties(struct pw_port *port)
Get the port properties.
Definition: port.c:242
Port events, use pw_port_add_listener.
Definition: port.h:60
the port is in error
Definition: port.h:51
pw_port_state
Definition: port.h:50
the port is streaming
Definition: port.h:56
the port is paused
Definition: port.h:55
void(* free)(void *data)
The port is freed.
Definition: port.h:68
the port is ready for buffer allocation
Definition: port.h:54
void(* info_changed)(void *data, struct pw_port_info *info)
the port info changed
Definition: port.h:71
void(* state_changed)(void *data, enum pw_port_state state)
the state of the port changed
Definition: port.h:80
void(* destroy)(void *data)
The port is destroyed.
Definition: port.h:65
enum pw_direction pw_port_get_direction(struct pw_port *port)
Get the port direction.
Definition: port.c:232
struct pw_node * pw_port_get_node(struct pw_port *port)
Get the port parent node or NULL when not yet set.
Definition: port.c:269
the port is being created
Definition: port.h:52
void(* link_removed)(void *data, struct pw_link *link)
a link is removed from this port
Definition: port.h:77
void(* control_added)(void *data, struct pw_control *control)
a control was added to the port
Definition: port.h:83
void(* control_removed)(void *data, struct pw_control *control)
a control was removed from the port
Definition: port.h:86
pw_direction
The direction of a port.
Definition: introspect.h:47