mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-24 07:00:05 -05:00
interfaces: make events return void
Events are dispatched with hooks and have no return value. Make it possible to get the last resource and proxy sender value for where we need it.
This commit is contained in:
parent
0390969228
commit
09c4683ef1
29 changed files with 269 additions and 330 deletions
|
|
@ -36,7 +36,7 @@ struct spa_result_device_params_data {
|
|||
struct spa_result_device_params data;
|
||||
};
|
||||
|
||||
static inline int spa_result_func_device_params(void *data, int seq, int res,
|
||||
static inline void spa_result_func_device_params(void *data, int seq, int res,
|
||||
const void *result)
|
||||
{
|
||||
struct spa_result_device_params_data *d =
|
||||
|
|
@ -47,7 +47,6 @@ static inline int spa_result_func_device_params(void *data, int seq, int res,
|
|||
spa_pod_builder_raw_padded(d->builder, r->param, SPA_POD_SIZE(r->param));
|
||||
d->data.next = r->next;
|
||||
d->data.param = SPA_MEMBER(d->builder->data, offset, struct spa_pod);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int spa_device_enum_params_sync(struct spa_device *device,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue