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

@ -122,7 +122,7 @@ void register_object_message_handlers(struct pw_manager_object *o)
{
const char *str;
if (o->id == 0) {
if (o->id == PW_ID_CORE) {
free(o->message_object_path);
o->message_object_path = strdup("/core");
o->message_handler = core_object_message_handler;