add const to spa_event and spa_command

This commit is contained in:
Wim Taymans 2019-05-28 13:51:12 +02:00
parent 4661ee882c
commit 5299677f88
10 changed files with 11 additions and 11 deletions

View file

@ -100,7 +100,7 @@ struct spa_device_events {
void (*result) (void *data, int seq, int res, const void *result);
/** a device event */
void (*event) (void *data, struct spa_event *event);
void (*event) (void *data, const struct spa_event *event);
/** info changed for an object managed by the device, info is NULL when
* the object is removed */

View file

@ -84,7 +84,7 @@ struct spa_monitor_callbacks {
int (*info) (void *data, const struct spa_dict *info);
/** an item is added/removed/changed on the monitor */
int (*event) (void *data, struct spa_event *event);
int (*event) (void *data, const struct spa_event *event);
};
/**

View file

@ -168,7 +168,7 @@ struct spa_node_events {
* This will be called when an out-of-bound event is notified
* on \a node.
*/
void (*event) (void *data, struct spa_event *event);
void (*event) (void *data, const struct spa_event *event);
};
/** Node callbacks

View file

@ -67,7 +67,7 @@ static int on_monitor_info(void *_data, const struct spa_dict *info)
return 0;
}
static int on_monitor_event(void *_data, struct spa_event *event)
static int on_monitor_event(void *_data, const struct spa_event *event)
{
struct data *data = _data;