Add parent_id

Add parent_id to globals to make hierarchy of interfaces. We can use
this to group interfaces or to describe the owner.
This commit is contained in:
Wim Taymans 2017-07-18 14:58:14 +02:00
parent 1acba78234
commit a003d1a39f
27 changed files with 151 additions and 99 deletions

View file

@ -464,7 +464,7 @@ static void make_nodes(struct data *data)
struct pw_node_factory *factory;
struct pw_properties *props;
data->node = pw_node_new(data->core, NULL, "SDL-sink", NULL, 0);
data->node = pw_node_new(data->core, NULL, NULL, "SDL-sink", NULL, 0);
data->node->user_data = data;
data->node->implementation = &impl_node;
@ -480,6 +480,7 @@ static void make_nodes(struct data *data)
data->v4l2 = pw_node_factory_create_node(factory, NULL, "v4l2-source", props);
data->link = pw_link_new(data->core,
NULL,
pw_node_get_free_port(data->v4l2, PW_DIRECTION_OUTPUT),
data->port,
NULL,