dbusiface-core: New function: pa_dbusiface_core_get_card_path().

This commit is contained in:
Tanu Kaskinen 2009-08-15 06:11:38 +03:00
parent 90c73db449
commit 1e65d8d35b
2 changed files with 8 additions and 0 deletions

View file

@ -2034,6 +2034,13 @@ void pa_dbusiface_core_free(pa_dbusiface_core *c) {
pa_xfree(c);
}
const char *pa_dbusiface_core_get_card_path(pa_dbusiface_core *c, const pa_card *card) {
pa_assert(c);
pa_assert(card);
return pa_dbusiface_card_get_path(pa_hashmap_get(c->cards, PA_UINT32_TO_PTR(card->index)));
}
const char *pa_dbusiface_core_get_sink_path(pa_dbusiface_core *c, const pa_sink *sink) {
pa_assert(c);
pa_assert(sink);