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

@ -16,6 +16,7 @@ extern "C" {
#include <pipewire/pipewire.h>
struct client;
struct pw_manager_object;
struct pw_manager_events {
@ -70,7 +71,7 @@ struct pw_manager_object {
struct pw_properties *props;
struct pw_proxy *proxy;
char *message_object_path;
int (*message_handler)(struct pw_manager *m, struct pw_manager_object *o,
int (*message_handler)(struct client *client, struct pw_manager_object *o,
const char *message, const char *params, FILE *response);
void *info;