mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -05:00
Add core introspection
Use global ids in info messages to refer to global objects.
This commit is contained in:
parent
0d0385b881
commit
8ce3f949e2
10 changed files with 102 additions and 9 deletions
|
|
@ -78,7 +78,7 @@ client_bind_func (PinosGlobal *global,
|
|||
spa_list_insert (this->resource_list.prev, &resource->link);
|
||||
|
||||
m.info = &info;
|
||||
info.id = resource->id;
|
||||
info.id = global->id;
|
||||
info.change_mask = ~0;
|
||||
info.props = this->properties ? &this->properties->dict : NULL;
|
||||
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ core_bind_func (PinosGlobal *global,
|
|||
pinos_log_debug ("core %p: bound to %d", global->object, resource->id);
|
||||
|
||||
m.info = &info;
|
||||
info.id = resource->id;
|
||||
info.id = global->id;
|
||||
info.change_mask = ~0;
|
||||
info.user_name = "wim";
|
||||
info.host_name = "wtay";
|
||||
|
|
|
|||
|
|
@ -775,7 +775,7 @@ link_bind_func (PinosGlobal *global,
|
|||
spa_list_insert (this->resource_list.prev, &resource->link);
|
||||
|
||||
m.info = &info;
|
||||
info.id = resource->id;
|
||||
info.id = global->id;
|
||||
info.change_mask = ~0;
|
||||
info.output_node_id = this->output ? this->output->node->global->id : -1;
|
||||
info.output_port_id = this->output ? this->output->port_id : -1;
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ module_bind_func (PinosGlobal *global,
|
|||
pinos_log_debug ("module %p: bound to %d", global->object, resource->id);
|
||||
|
||||
m.info = &info;
|
||||
info.id = resource->id;
|
||||
info.id = global->id;
|
||||
info.change_mask = ~0;
|
||||
info.name = this->name;
|
||||
info.filename = this->filename;
|
||||
|
|
|
|||
|
|
@ -432,7 +432,7 @@ node_bind_func (PinosGlobal *global,
|
|||
spa_list_insert (this->resource_list.prev, &resource->link);
|
||||
|
||||
m.info = &info;
|
||||
info.id = resource->id;
|
||||
info.id = global->id;
|
||||
info.change_mask = ~0;
|
||||
info.name = this->name;
|
||||
info.state = this->state;
|
||||
|
|
@ -817,7 +817,7 @@ pinos_node_update_state (PinosNode *node,
|
|||
info.state = node->state;
|
||||
|
||||
spa_list_for_each (resource, &node->resource_list, link) {
|
||||
info.id = resource->id;
|
||||
info.id = node->global->id;
|
||||
pinos_resource_send_message (resource,
|
||||
PINOS_MESSAGE_NODE_INFO,
|
||||
&m,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue