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; 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 impl *impl = data;
struct pw_client_stream *this = &impl->this; struct pw_client_stream *this = &impl->this;

View file

@ -98,7 +98,7 @@ struct pw_client_events {
void (*free) (void *data); void (*free) (void *data);
/** emited when the client info changed */ /** 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 */ /** emited when a new resource is added for client */
void (*resource_added) (void *data, struct pw_resource *resource); 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 */ /** Finish configuration and register a client */
int pw_client_register(struct pw_client *client, /**< the client to register */ 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_global *parent, /**< the client parent */
struct pw_properties *properties/**< extra properties */); struct pw_properties *properties/**< extra properties */);

View file

@ -88,7 +88,7 @@ struct pw_core_events {
/** The core is being freed */ /** The core is being freed */
void (*free) (void *data); void (*free) (void *data);
/** The core info changed, use \ref pw_core_get_info() to get the updated info */ /** 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 */ /** a new client object is added */
void (*check_access) (void *data, struct pw_client *client); void (*check_access) (void *data, struct pw_client *client);
/** a new global object was added */ /** a new global object was added */

View file

@ -58,7 +58,7 @@ struct pw_device_events {
void (*destroy) (void *data); void (*destroy) (void *data);
/** the device info changed */ /** 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, 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); void (*port_removed) (void *data, struct pw_port *port);
/** the node info changed */ /** 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 */ /** the node active state changed */
void (*active_changed) (void *data, bool active); void (*active_changed) (void *data, bool active);
/** the node enabled state changed */ /** the node enabled state changed */

View file

@ -70,7 +70,7 @@ struct pw_port_events {
void (*free) (void *data); void (*free) (void *data);
/** the port info changed */ /** 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 */ /** a new link is added on this port */
void (*link_added) (void *data, struct pw_link *link); 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); 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; struct node_data *d = data;
uint32_t change_mask = 0; uint32_t change_mask = 0;