add const to info

This commit is contained in:
Wim Taymans 2019-01-09 17:49:45 +01:00
parent 8fa6126599
commit 349a11cde5
8 changed files with 39 additions and 39 deletions

View file

@ -614,7 +614,7 @@ static void info_device(struct proxy_data *pd)
info->change_mask = 0;
}
static void core_event_info(void *object, struct pw_core_info *info)
static void core_event_info(void *object, const struct pw_core_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -635,7 +635,7 @@ static const struct pw_core_proxy_events core_events = {
};
static void module_event_info(void *object, struct pw_module_info *info)
static void module_event_info(void *object, const struct pw_module_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -655,7 +655,7 @@ static const struct pw_module_proxy_events module_events = {
.info = module_event_info
};
static void node_event_info(void *object, struct pw_node_info *info)
static void node_event_info(void *object, const struct pw_node_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -692,7 +692,7 @@ static const struct pw_node_proxy_events node_events = {
};
static void port_event_info(void *object, struct pw_port_info *info)
static void port_event_info(void *object, const struct pw_port_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -728,7 +728,7 @@ static const struct pw_port_proxy_events port_events = {
.param = port_event_param
};
static void factory_event_info(void *object, struct pw_factory_info *info)
static void factory_event_info(void *object, const struct pw_factory_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -748,7 +748,7 @@ static const struct pw_factory_proxy_events factory_events = {
.info = factory_event_info
};
static void client_event_info(void *object, struct pw_client_info *info)
static void client_event_info(void *object, const struct pw_client_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -768,7 +768,7 @@ static const struct pw_client_proxy_events client_events = {
.info = client_event_info
};
static void link_event_info(void *object, struct pw_link_info *info)
static void link_event_info(void *object, const struct pw_link_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;
@ -789,7 +789,7 @@ static const struct pw_link_proxy_events link_events = {
};
static void device_event_info(void *object, struct pw_device_info *info)
static void device_event_info(void *object, const struct pw_device_info *info)
{
struct proxy_data *pd = object;
struct remote_data *rd = pd->rd;

View file

@ -158,7 +158,7 @@ static void on_info_changed(void *data, const struct pw_core_info *info)
}
}
static void module_event_info(void *object, struct pw_module_info *info)
static void module_event_info(void *object, const struct pw_module_info *info)
{
struct proxy_data *data = object;
bool print_all, print_mark;
@ -244,7 +244,7 @@ static void print_node(struct proxy_data *data)
}
}
static void node_event_info(void *object, struct pw_node_info *info)
static void node_event_info(void *object, const struct pw_node_info *info)
{
struct proxy_data *data = object;
bool is_new = data->info == NULL;
@ -310,7 +310,7 @@ static void print_port(struct proxy_data *data)
}
}
static void port_event_info(void *object, struct pw_port_info *info)
static void port_event_info(void *object, const struct pw_port_info *info)
{
struct proxy_data *data = object;
@ -340,7 +340,7 @@ static const struct pw_port_proxy_events port_events = {
.param = port_event_param
};
static void factory_event_info(void *object, struct pw_factory_info *info)
static void factory_event_info(void *object, const struct pw_factory_info *info)
{
struct proxy_data *data = object;
bool print_all, print_mark;
@ -376,7 +376,7 @@ static const struct pw_factory_proxy_events factory_events = {
.info = factory_event_info
};
static void client_event_info(void *object, struct pw_client_info *info)
static void client_event_info(void *object, const struct pw_client_info *info)
{
struct proxy_data *data = object;
bool print_all, print_mark;
@ -410,7 +410,7 @@ static const struct pw_client_proxy_events client_events = {
.info = client_event_info
};
static void link_event_info(void *object, struct pw_link_info *info)
static void link_event_info(void *object, const struct pw_link_info *info)
{
struct proxy_data *data = object;
bool print_all, print_mark;
@ -460,7 +460,7 @@ static const struct pw_link_proxy_events link_events = {
static void device_event_info(void *object, struct pw_device_info *info)
static void device_event_info(void *object, const struct pw_device_info *info)
{
struct proxy_data *data = object;
bool print_all, print_mark;