mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
acp: move acp_dict_lookup to public header
This commit is contained in:
parent
37a51533e0
commit
aec07d974e
2 changed files with 10 additions and 10 deletions
|
|
@ -1625,16 +1625,6 @@ static void prune_singleton_availability_groups(pa_hashmap *ports) {
|
|||
pa_hashmap_free(group_counts);
|
||||
}
|
||||
|
||||
static const char *acp_dict_lookup(const struct acp_dict *dict, const char *key)
|
||||
{
|
||||
const struct acp_dict_item *it;
|
||||
acp_dict_for_each(it, dict) {
|
||||
if (spa_streq(key, it->key))
|
||||
return it->value;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct acp_card *acp_card_new(uint32_t index, const struct acp_dict *props)
|
||||
{
|
||||
pa_card *impl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue