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

@ -1149,7 +1149,7 @@ static bool do_export_node(struct data *data, const char *cmd, char *args, char
return false;
}
node = pw_global_get_object(global);
proxy = pw_remote_export(rd->remote, PW_TYPE_INTERFACE_Node, NULL, node);
proxy = pw_remote_export(rd->remote, PW_TYPE_INTERFACE_Node, NULL, node, 0);
id = pw_map_insert_new(&data->vars, proxy);
fprintf(stdout, "%d = @proxy:%d\n", id, pw_proxy_get_id((struct pw_proxy*)proxy));