utils: don't remove pending after first callback

Let the caller remove the pending result when finished.
Use non _sync verions to enum_params in node/port/device.
Set result.id in alsa and v4l2 correctly.
This commit is contained in:
Wim Taymans 2019-02-25 20:19:33 +01:00
parent 245a0d5634
commit aab2b5594f
8 changed files with 89 additions and 60 deletions

View file

@ -168,10 +168,10 @@ int pw_node_for_each_port(struct pw_node *node,
void *data);
int pw_node_for_each_param(struct pw_node *node,
uint32_t seq, uint32_t param_id,
int seq, uint32_t param_id,
uint32_t index, uint32_t max,
const struct spa_pod *filter,
int (*callback) (void *data, uint32_t seq,
int (*callback) (void *data, int seq,
uint32_t id, uint32_t index, uint32_t next,
struct spa_pod *param),
void *data);