diff --git a/src/modules/module-client-node/client-stream.c b/src/modules/module-client-node/client-stream.c index 0aebab922..293ee9056 100644 --- a/src/modules/module-client-node/client-stream.c +++ b/src/modules/module-client-node/client-stream.c @@ -1146,7 +1146,7 @@ static void client_node_active_changed(void *data, bool active) impl->active = active; } -static void client_node_info_changed (void *data, struct pw_node_info *info) +static void client_node_info_changed (void *data, const struct pw_node_info *info) { struct impl *impl = data; struct pw_client_stream *this = &impl->this; diff --git a/src/pipewire/client.h b/src/pipewire/client.h index 4ef37aab0..689703b79 100644 --- a/src/pipewire/client.h +++ b/src/pipewire/client.h @@ -98,7 +98,7 @@ struct pw_client_events { void (*free) (void *data); /** emited when the client info changed */ - void (*info_changed) (void *data, struct pw_client_info *info); + void (*info_changed) (void *data, const struct pw_client_info *info); /** emited when a new resource is added for client */ void (*resource_added) (void *data, struct pw_resource *resource); @@ -135,7 +135,7 @@ void pw_client_destroy(struct pw_client *client); /** Finish configuration and register a client */ int pw_client_register(struct pw_client *client, /**< the client to register */ - struct pw_client *owner, /**< optional owner */ + struct pw_client *owner, /**< optional owner */ struct pw_global *parent, /**< the client parent */ struct pw_properties *properties/**< extra properties */); diff --git a/src/pipewire/core.h b/src/pipewire/core.h index cfae245f7..43a00c78e 100644 --- a/src/pipewire/core.h +++ b/src/pipewire/core.h @@ -88,7 +88,7 @@ struct pw_core_events { /** The core is being freed */ void (*free) (void *data); /** The core info changed, use \ref pw_core_get_info() to get the updated info */ - void (*info_changed) (void *data, struct pw_core_info *info); + void (*info_changed) (void *data, const struct pw_core_info *info); /** a new client object is added */ void (*check_access) (void *data, struct pw_client *client); /** a new global object was added */ diff --git a/src/pipewire/device.h b/src/pipewire/device.h index 2af1f1dc2..969ca4a26 100644 --- a/src/pipewire/device.h +++ b/src/pipewire/device.h @@ -58,7 +58,7 @@ struct pw_device_events { void (*destroy) (void *data); /** the device info changed */ - void (*info_changed) (void *data, struct pw_device_info *info); + void (*info_changed) (void *data, const struct pw_device_info *info); }; struct pw_device *pw_device_new(struct pw_core *core, diff --git a/src/pipewire/node.h b/src/pipewire/node.h index 6d98a9865..bc772b796 100644 --- a/src/pipewire/node.h +++ b/src/pipewire/node.h @@ -69,7 +69,7 @@ struct pw_node_events { void (*port_removed) (void *data, struct pw_port *port); /** the node info changed */ - void (*info_changed) (void *data, struct pw_node_info *info); + void (*info_changed) (void *data, const struct pw_node_info *info); /** the node active state changed */ void (*active_changed) (void *data, bool active); /** the node enabled state changed */ diff --git a/src/pipewire/port.h b/src/pipewire/port.h index b2886c7bb..5bbb5b529 100644 --- a/src/pipewire/port.h +++ b/src/pipewire/port.h @@ -70,7 +70,7 @@ struct pw_port_events { void (*free) (void *data); /** the port info changed */ - void (*info_changed) (void *data, struct pw_port_info *info); + void (*info_changed) (void *data, const struct pw_port_info *info); /** a new link is added on this port */ void (*link_added) (void *data, struct pw_link *link); diff --git a/src/pipewire/remote.c b/src/pipewire/remote.c index d42995d9b..fc4e28749 100644 --- a/src/pipewire/remote.c +++ b/src/pipewire/remote.c @@ -1329,7 +1329,7 @@ static void node_destroy(void *data) spa_hook_remove(&d->proxy_listener); } -static void node_info_changed(void *data, struct pw_node_info *info) +static void node_info_changed(void *data, const struct pw_node_info *info) { struct node_data *d = data; uint32_t change_mask = 0;