pulse-server: make separate index

Separate the id (the pipewire object id) from the index (what we send to
the client to identify the objects).
This commit is contained in:
Wim Taymans 2022-01-17 11:28:40 +01:00
parent 955e4287ab
commit 0904a35ba8
19 changed files with 235 additions and 210 deletions

View file

@ -35,12 +35,12 @@ static const struct extension extensions[] = {
{ "module-device-manager", 2 | MODULE_EXTENSION_FLAG, do_extension_device_manager, },
};
const struct extension *extension_find(uint32_t idx, const char *name)
const struct extension *extension_find(uint32_t index, const char *name)
{
const struct extension *ext;
SPA_FOR_EACH_ELEMENT(extensions, ext) {
if (idx == ext->idx || spa_streq(name, ext->name))
if (index == ext->index || spa_streq(name, ext->name))
return ext;
}