mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-node: handle events, send them to the server part
This commit is contained in:
parent
b4dc04c777
commit
100c12460f
1 changed files with 11 additions and 0 deletions
|
|
@ -1088,6 +1088,16 @@ static void node_active_changed(void *data, bool active)
|
|||
pw_client_node_set_active(d->client_node, active);
|
||||
}
|
||||
|
||||
static void node_event(void *data, const struct spa_event *event)
|
||||
{
|
||||
struct node_data *d = data;
|
||||
pw_log_debug("%p", d);
|
||||
|
||||
if (d->client_node == NULL)
|
||||
return;
|
||||
pw_client_node_event(d->client_node, event);
|
||||
}
|
||||
|
||||
static const struct pw_impl_node_events node_events = {
|
||||
PW_VERSION_IMPL_NODE_EVENTS,
|
||||
.destroy = node_destroy,
|
||||
|
|
@ -1096,6 +1106,7 @@ static const struct pw_impl_node_events node_events = {
|
|||
.port_info_changed = node_port_info_changed,
|
||||
.port_removed = node_port_removed,
|
||||
.active_changed = node_active_changed,
|
||||
.event = node_event,
|
||||
};
|
||||
|
||||
static void client_node_removed(void *_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue