pulse-server: pass the client to message handlers

Instead of passing the pw_manager object, pass the client
object to the message handler. The client's manager can
still be accessed via `client->manager`. Furthermore,
message handlers now have access to `client->impl`.
This commit is contained in:
Barnabás Pőcze 2022-01-20 18:05:26 +01:00 committed by Wim Taymans
parent 4e69507b18
commit e8f17814ba
3 changed files with 7 additions and 5 deletions

View file

@ -5141,7 +5141,7 @@ static int do_send_object_message(struct client *client, uint32_t command, uint3
if (response == NULL)
return -errno;
res = o->message_handler(manager, o, message, params, response);
res = o->message_handler(client, o, message, params, response);
if (fclose(response))
return -errno;