mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
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:
parent
955e4287ab
commit
0904a35ba8
19 changed files with 235 additions and 210 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue