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:
Wim Taymans 2023-03-21 17:22:27 +01:00
parent 59cd5670d7
commit fb8709716c
14 changed files with 111 additions and 29 deletions

View file

@ -162,7 +162,7 @@ static void sink_proxy_removed(void *data)
pw_proxy_destroy(impl->sink);
}
static void sink_proxy_bound(void *data, uint32_t id)
static void sink_proxy_bound_props(void *data, uint32_t id, const struct spa_dict *props)
{
struct impl *impl = data;
@ -186,7 +186,7 @@ static void sink_proxy_destroy(void *data)
static const struct pw_proxy_events sink_proxy_events = {
PW_VERSION_PROXY_EVENTS,
.removed = sink_proxy_removed,
.bound = sink_proxy_bound,
.bound_props = sink_proxy_bound_props,
.destroy = sink_proxy_destroy,
};