mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -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
|
|
@ -29,6 +29,14 @@ typedef struct pa_card pa_card;
|
|||
#include <pulsecore/module.h>
|
||||
#include <pulsecore/idxset.h>
|
||||
|
||||
/* This enum replaces pa_port_available_t (defined in pulse/def.h) for
|
||||
* internal use, so make sure both enum types stay in sync. */
|
||||
typedef enum pa_available {
|
||||
PA_AVAILABLE_UNKNOWN = 0,
|
||||
PA_AVAILABLE_NO = 1,
|
||||
PA_AVAILABLE_YES = 2,
|
||||
} pa_available_t;
|
||||
|
||||
typedef struct pa_card_profile {
|
||||
pa_card *card;
|
||||
char *name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue