Improve introspection

Move introspectable info to the node and link.
Only enumerate the device formats once.
Change some field names.
Pass link format in introspection
This commit is contained in:
Wim Taymans 2017-06-02 10:40:43 +02:00
parent e48c361a66
commit dbe20c9934
14 changed files with 163 additions and 140 deletions

View file

@ -1032,9 +1032,9 @@ static void on_initialized(struct pw_listener *listener, struct pw_node *node)
if (this->resource == NULL)
return;
impl->transport = pw_transport_new(node->max_input_ports, node->max_output_ports);
impl->transport->area->n_inputs = node->n_input_ports;
impl->transport->area->n_outputs = node->n_output_ports;
impl->transport = pw_transport_new(node->info.max_input_ports, node->info.max_output_ports);
impl->transport->area->n_input_ports = node->info.n_input_ports;
impl->transport->area->n_output_ports = node->info.n_output_ports;
pw_transport_get_info(impl->transport, &info);
pw_client_node_notify_transport(this->resource, info.memfd, info.offset, info.size);