mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
device-port: Add a property list to ports.
They're not used for anything yet, but hopefully soon they'll be. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
1623859d1b
commit
0ef3456f68
3 changed files with 9 additions and 1 deletions
|
|
@ -70,6 +70,8 @@ static void device_port_free(pa_object *o) {
|
|||
pa_assert(p);
|
||||
pa_assert(pa_device_port_refcnt(p) == 0);
|
||||
|
||||
if (p->proplist)
|
||||
pa_proplist_free(p->proplist);
|
||||
if (p->profiles)
|
||||
pa_hashmap_free(p->profiles, NULL, NULL);
|
||||
pa_xfree(p->name);
|
||||
|
|
@ -94,6 +96,7 @@ pa_device_port *pa_device_port_new(pa_core *c, const char *name, const char *des
|
|||
p->profiles = NULL;
|
||||
p->is_input = FALSE;
|
||||
p->is_output = FALSE;
|
||||
p->proplist = pa_proplist_new();
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue