add const to info changes

This commit is contained in:
Wim Taymans 2019-01-08 17:34:32 +01:00
parent 979d155382
commit 57e0a94163
7 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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 */

View file

@ -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,

View file

@ -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 */

View file

@ -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);

View file

@ -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;