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
|
|
@ -42,6 +42,7 @@ static void test_core_abi(void)
|
|||
void (*bound_id) (void *data, uint32_t id, uint32_t global_id);
|
||||
void (*add_mem) (void *data, uint32_t id, uint32_t type, int fd, uint32_t flags);
|
||||
void (*remove_mem) (void *data, uint32_t id);
|
||||
void (*bound_props) (void *data, uint32_t id, uint32_t global_id, const struct spa_dict *props);
|
||||
} events = { PW_VERSION_CORE_EVENTS, };
|
||||
|
||||
struct pw_core_events e;
|
||||
|
|
@ -68,7 +69,8 @@ static void test_core_abi(void)
|
|||
TEST_FUNC(e, events, bound_id);
|
||||
TEST_FUNC(e, events, add_mem);
|
||||
TEST_FUNC(e, events, remove_mem);
|
||||
spa_assert_se(PW_VERSION_CORE_EVENTS == 0);
|
||||
TEST_FUNC(e, events, bound_props);
|
||||
spa_assert_se(PW_VERSION_CORE_EVENTS == 1);
|
||||
spa_assert_se(sizeof(e) == sizeof(events));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue