node: pass struct to info callback to make it more extensible

This commit is contained in:
Wim Taymans 2019-02-13 11:44:58 +01:00
parent bb2b15a5fb
commit 04f1046113
9 changed files with 78 additions and 18 deletions

View file

@ -874,10 +874,11 @@ int pw_node_update_properties(struct pw_node *node, const struct spa_dict *dict)
return changed;
}
static void node_info(void *data, const struct spa_dict *info)
static void node_info(void *data, const struct spa_node_info *info)
{
struct pw_node *node = data;
pw_node_update_properties(node, info);
if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS)
pw_node_update_properties(node, info->props);
}
static void node_done(void *data, int seq, int res)