mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-21 01:40:30 -05:00
core: Internally deprecate pa_port_available_t to use pa_available_t
Generalize the availability flag in order to be used beyond the scope of ports. However, pa_port_availability_t is left unchanged to avoid modifying the protocol and the client API. This should be replaced by pa_available_t after a validation phase of this new generic enum type.
This commit is contained in:
parent
3aefdd995c
commit
8851644a3c
12 changed files with 68 additions and 58 deletions
|
|
@ -103,13 +103,13 @@ char *pa_client_list_to_string(pa_core *c) {
|
|||
return pa_strbuf_tostring_free(s);
|
||||
}
|
||||
|
||||
static const char *port_available_to_string(pa_port_available_t a) {
|
||||
static const char *port_available_to_string(pa_available_t a) {
|
||||
switch (a) {
|
||||
case PA_PORT_AVAILABLE_UNKNOWN:
|
||||
case PA_AVAILABLE_UNKNOWN:
|
||||
return "unknown";
|
||||
case PA_PORT_AVAILABLE_NO:
|
||||
case PA_AVAILABLE_NO:
|
||||
return "no";
|
||||
case PA_PORT_AVAILABLE_YES:
|
||||
case PA_AVAILABLE_YES:
|
||||
return "yes";
|
||||
default:
|
||||
return "invalid"; /* Should never happen! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue