mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
add const to spa_event and spa_command
This commit is contained in:
parent
4661ee882c
commit
5299677f88
10 changed files with 11 additions and 11 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue