mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
remote: add option for extra user data for proxy
When doing an export, make it possible to add extra data to the resulting proxy for user data.
This commit is contained in:
parent
11393ce9dd
commit
e1cbdaed0b
12 changed files with 30 additions and 21 deletions
|
|
@ -469,7 +469,7 @@ static void make_node(struct data *data)
|
|||
SPA_TYPE_INTERFACE_Node,
|
||||
SPA_VERSION_NODE,
|
||||
&impl_node, data);
|
||||
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node);
|
||||
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node, 0);
|
||||
}
|
||||
|
||||
static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remote_state state, const char *error)
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ static void make_node(struct data *data)
|
|||
SPA_TYPE_INTERFACE_Node,
|
||||
SPA_VERSION_NODE,
|
||||
&impl_node, data);
|
||||
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node);
|
||||
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node, 0);
|
||||
}
|
||||
|
||||
static void on_state_changed(void *_data, enum pw_remote_state old,
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ static int make_device(struct data *data)
|
|||
props, SPA_ID_INVALID);
|
||||
|
||||
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Device, NULL,
|
||||
pw_device_get_implementation(data->device));
|
||||
pw_device_get_implementation(data->device), 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ static int make_node(struct data *data)
|
|||
|
||||
pw_node_set_active(data->node, true);
|
||||
|
||||
pw_remote_export(data->remote, PW_TYPE_INTERFACE_Node, NULL, data->node);
|
||||
pw_remote_export(data->remote, PW_TYPE_INTERFACE_Node, NULL, data->node, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue