mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue