25 #ifndef PIPEWIRE_IMPL_PORT_H 26 #define PIPEWIRE_IMPL_PORT_H 59 #define PW_VERSION_IMPL_PORT_EVENTS 2 104 size_t user_data_size);
#define pw_direction
The direction of a port.
Definition: port.h:56
Definition: properties.h:49
pw_impl_port_state
Definition: impl-port.h:49
void(* control_removed)(void *data, struct pw_control *control)
a control was removed from the port
Definition: impl-port.h:88
the port is ready for format negotiation
Definition: impl-port.h:52
the port is in error
Definition: impl-port.h:50
A hook, contains the structure with functions and the data passed to the functions.
Definition: hook.h:76
struct spa_dict dict
dictionary of key/values
Definition: properties.h:50
struct pw_impl_port * pw_context_create_port(struct pw_context *context, enum pw_direction direction, uint32_t port_id, const struct spa_port_info *info, size_t user_data_size)
Create a new port.
Definition: impl-port.c:442
uint32_t version
Definition: impl-port.h:60
const struct pw_port_info * pw_impl_port_get_info(struct pw_impl_port *port)
Get the port info.
Definition: impl-port.c:699
void(* control_added)(void *data, struct pw_control *control)
a control was added to the port
Definition: impl-port.h:85
const struct pw_properties * pw_impl_port_get_properties(struct pw_impl_port *port)
Get the port properties.
Definition: impl-port.c:664
Definition: utils/dict.h:48
struct pw_impl_node * pw_impl_port_get_node(struct pw_impl_port *port)
Get the port parent node or NULL when not yet set.
Definition: impl-port.c:684
static uint32_t id
Definition: core.h:328
Port information structure.
Definition: x86_64-redhat-linux-gnu/doc/spa/node/node.h:99
int pw_impl_port_is_linked(struct pw_impl_port *port)
check is a port has links, return 0 if not, 1 if it is linked
Definition: impl-port.c:1360
int pw_impl_port_add(struct pw_impl_port *port, struct pw_impl_node *node)
Add a port to a node.
Definition: impl-port.c:924
void pw_impl_port_add_listener(struct pw_impl_port *port, struct spa_hook *listener, const struct pw_impl_port_events *events, void *data)
Add an event listener on the port.
Definition: impl-port.c:690
the port is paused
Definition: impl-port.h:54
Port events, use pw_impl_port_add_listener.
Definition: impl-port.h:58
void(* link_removed)(void *data, struct pw_impl_link *link)
a link is removed from this port
Definition: impl-port.h:78
enum pw_direction pw_impl_port_get_direction(struct pw_impl_port *port)
Get the port direction.
Definition: impl-port.c:652
void(* latency_changed)(void *data)
latency changed.
Definition: impl-port.h:94
void(* param_changed)(void *data, uint32_t id)
a parameter changed, since version 1
Definition: impl-port.h:91
void(* destroy)(void *data)
The port is destroyed.
Definition: impl-port.h:63
the port is ready for buffer allocation
Definition: impl-port.h:53
void(* info_changed)(void *data, const struct pw_port_info *info)
the port info changed
Definition: impl-port.h:72
the port is being created
Definition: impl-port.h:51
void(* link_added)(void *data, struct pw_impl_link *link)
a new link is added on this port
Definition: impl-port.h:75
int pw_impl_port_update_properties(struct pw_impl_port *port, const struct spa_dict *dict)
Update the port properties.
Definition: impl-port.c:670
void(* initialized)(void *data)
The port is initialized.
Definition: impl-port.h:69
void(* free)(void *data)
The port is freed.
Definition: impl-port.h:66
void(* state_changed)(void *data, enum pw_impl_port_state old, enum pw_impl_port_state state, const char *error)
the state of the port changed
Definition: impl-port.h:81
uint32_t pw_impl_port_get_id(struct pw_impl_port *port)
Get the port id.
Definition: impl-port.c:658