mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
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:
parent
4e69507b18
commit
e8f17814ba
3 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue