mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-14 06:59:57 -05:00
Add client info message
Update client info and improve core info
This commit is contained in:
parent
2f18af1fb2
commit
ff5e260d67
11 changed files with 165 additions and 21 deletions
|
|
@ -91,6 +91,29 @@ pinos_properties_new (const char *key, ...)
|
|||
return &impl->this;
|
||||
}
|
||||
|
||||
/**
|
||||
* pinos_properties_new_dict:
|
||||
* @dict: a dict
|
||||
*
|
||||
* Make a new #PinosProperties with given @dict.
|
||||
*
|
||||
* Returns: a new #PinosProperties
|
||||
*/
|
||||
PinosProperties *
|
||||
pinos_properties_new_dict (const SpaDict *dict)
|
||||
{
|
||||
unsigned int i;
|
||||
PinosPropertiesImpl *impl;
|
||||
|
||||
impl = calloc (1, sizeof (PinosPropertiesImpl));
|
||||
pinos_array_init (&impl->items);
|
||||
|
||||
for (i = 0; i < dict->n_items; i++)
|
||||
add_func (&impl->this, strdup (dict->items[i].key), strdup (dict->items[i].value));
|
||||
|
||||
return &impl->this;
|
||||
}
|
||||
|
||||
/**
|
||||
* pinos_properties_copy:
|
||||
* @properties: a #PinosProperties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue