mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-20 08:56:47 -05:00
Introduce "available" concept for ports, and communicate that to clients. Bump protocol version to 24.
Note: There is still no notification when status availability changes. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
fabb28f935
commit
961ec210a6
8 changed files with 88 additions and 53 deletions
|
|
@ -977,6 +977,21 @@ typedef void (*pa_free_cb_t)(void *p);
|
|||
* playback, \since 1.0 */
|
||||
#define PA_STREAM_EVENT_FORMAT_LOST "format-lost"
|
||||
|
||||
/** Port availability / jack detection status
|
||||
* \since 2.0 */
|
||||
typedef enum pa_port_available {
|
||||
PA_PORT_AVAILABLE_UNKNOWN = 0, /**< This port does not support jack detection \since 2.0 */
|
||||
PA_PORT_AVAILABLE_NO = 1, /**< This port is not available, likely because the jack is not plugged in. \since 2.0 */
|
||||
PA_PORT_AVAILABLE_YES = 2, /**< This port is available, likely because the jack is plugged in. \since 2.0 */
|
||||
} pa_port_available_t;
|
||||
|
||||
/** \cond fulldocs */
|
||||
#define PA_PORT_AVAILABLE_UNKNOWN PA_PORT_AVAILABLE_UNKNOWN
|
||||
#define PA_PORT_AVAILABLE_NO PA_PORT_AVAILABLE_NO
|
||||
#define PA_PORT_AVAILABLE_YES PA_PORT_AVAILABLE_YES
|
||||
|
||||
/** \endcond */
|
||||
|
||||
PA_C_DECL_END
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue