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

@ -135,10 +135,12 @@ inspect_port_params(struct data *data, struct spa_node *node,
}
}
static void node_info(void *data, const struct spa_dict *info)
static void node_info(void *data, const struct spa_node_info *info)
{
printf("node properties:\n");
spa_debug_dict(2, info);
if (info->change_mask & SPA_NODE_CHANGE_MASK_PROPS) {
printf("node properties:\n");
spa_debug_dict(2, info->props);
}
}
static const struct spa_node_callbacks node_callbacks =