introspect: Expose card profile available flag

Available flag can be used by clients to disable the selection of
profiles unavailable.

Update protocol to 29
This commit is contained in:
Luiz Augusto von Dentz 2013-07-15 18:21:25 +03:00 committed by Tanu Kaskinen
parent b76b9c32d9
commit b98a2e158f
5 changed files with 37 additions and 16 deletions

View file

@ -3287,6 +3287,9 @@ static void card_fill_tagstruct(pa_native_connection *c, pa_tagstruct *t, pa_car
pa_tagstruct_putu32(t, p->n_sinks);
pa_tagstruct_putu32(t, p->n_sources);
pa_tagstruct_putu32(t, p->priority);
if (c->version >= 29)
pa_tagstruct_putu32(t, (p->available != PA_AVAILABLE_NO));
}
pa_tagstruct_puts(t, card->active_profile->name);