mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
core: add bound_props event
this event extends the bound_id event and sends the global properties as well. This can be used to get the object.serial, for example. It can also be used in the future to let the server generate unique property values, like the node.name, and let the client know about the new property value.
This commit is contained in:
parent
59cd5670d7
commit
fb8709716c
14 changed files with 111 additions and 29 deletions
|
|
@ -36,7 +36,7 @@ struct data {
|
|||
uint32_t id;
|
||||
};
|
||||
|
||||
static void proxy_event_bound(void *_data, uint32_t global_id)
|
||||
static void proxy_event_bound_props(void *_data, uint32_t global_id, const struct spa_dict *props)
|
||||
{
|
||||
struct data *data = _data;
|
||||
if (data->id != global_id) {
|
||||
|
|
@ -47,7 +47,7 @@ static void proxy_event_bound(void *_data, uint32_t global_id)
|
|||
|
||||
static const struct pw_proxy_events proxy_events = {
|
||||
PW_VERSION_PROXY_EVENTS,
|
||||
.bound = proxy_event_bound,
|
||||
.bound_props = proxy_event_bound_props,
|
||||
};
|
||||
|
||||
static int make_node(struct data *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue