remote: add option for extra user data for proxy

When doing an export, make it possible to add extra data to the
resulting proxy for user data.
This commit is contained in:
Wim Taymans 2019-05-30 16:11:31 +02:00
parent 11393ce9dd
commit e1cbdaed0b
12 changed files with 30 additions and 21 deletions

View file

@ -469,7 +469,7 @@ static void make_node(struct data *data)
SPA_TYPE_INTERFACE_Node,
SPA_VERSION_NODE,
&impl_node, data);
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node);
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node, 0);
}
static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remote_state state, const char *error)

View file

@ -477,7 +477,7 @@ static void make_node(struct data *data)
SPA_TYPE_INTERFACE_Node,
SPA_VERSION_NODE,
&impl_node, data);
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node);
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Node, props, &data->impl_node, 0);
}
static void on_state_changed(void *_data, enum pw_remote_state old,

View file

@ -64,7 +64,7 @@ static int make_device(struct data *data)
props, SPA_ID_INVALID);
pw_remote_export(data->remote, SPA_TYPE_INTERFACE_Device, NULL,
pw_device_get_implementation(data->device));
pw_device_get_implementation(data->device), 0);
return 0;
}

View file

@ -70,7 +70,7 @@ static int make_node(struct data *data)
pw_node_set_active(data->node, true);
pw_remote_export(data->remote, PW_TYPE_INTERFACE_Node, NULL, data->node);
pw_remote_export(data->remote, PW_TYPE_INTERFACE_Node, NULL, data->node, 0);
return 0;
}