diff options
Diffstat (limited to 'src/pulse')
-rw-r--r-- | src/pulse/def.h | 20 | ||||
-rw-r--r-- | src/pulse/version.h.in | 3 |
2 files changed, 19 insertions, 4 deletions
diff --git a/src/pulse/def.h b/src/pulse/def.h index 7a715b66..03e8416e 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -46,7 +46,7 @@ typedef enum pa_context_state { PA_CONTEXT_TERMINATED /**< The connection was terminated cleanly */ } pa_context_state_t; -/** Return non-zero if the passed state is one of the connected states */ +/** Return non-zero if the passed state is one of the connected states. \since 0.9.11 */ static inline int PA_CONTEXT_IS_GOOD(pa_context_state_t x) { return x == PA_CONTEXT_CONNECTING || @@ -55,6 +55,10 @@ static inline int PA_CONTEXT_IS_GOOD(pa_context_state_t x) { x == PA_CONTEXT_READY; } +/** \cond fulldocs */ +#define PA_CONTEXT_IS_GOOD PA_CONTEXT_IS_GOOD +/** \endcond */ + /** The state of a stream */ typedef enum pa_stream_state { PA_STREAM_UNCONNECTED, /**< The stream is not yet connected to any sink or source */ @@ -64,13 +68,17 @@ typedef enum pa_stream_state { PA_STREAM_TERMINATED /**< The stream has been terminated cleanly */ } pa_stream_state_t; -/** Return non-zero if the passed state is one of the connected states */ +/** Return non-zero if the passed state is one of the connected states. \since 0.9.11 */ static inline int PA_STREAM_IS_GOOD(pa_stream_state_t x) { return x == PA_STREAM_CREATING || x == PA_STREAM_READY; } +/** \cond fulldocs */ +#define PA_STREAM_IS_GOOD PA_STREAM_IS_GOOD +/** \endcond */ + /** The state of an operation */ typedef enum pa_operation_state { PA_OPERATION_RUNNING, /**< The operation is still running */ @@ -383,7 +391,10 @@ typedef enum pa_subscription_mask { PA_SUBSCRIPTION_MASK_AUTOLOAD = 0x0100U, /**< Autoload table events. */ - PA_SUBSCRIPTION_MASK_ALL = 0x01ffU + PA_SUBSCRIPTION_MASK_CARD = 0x0200U, + /**< Card events. \since 0.9.15 */ + + PA_SUBSCRIPTION_MASK_ALL = 0x03ffU /**< Catch all events */ } pa_subscription_mask_t; @@ -416,6 +427,9 @@ typedef enum pa_subscription_event_type { PA_SUBSCRIPTION_EVENT_AUTOLOAD = 0x0008U, /**< Event type: Autoload table changes. */ + PA_SUBSCRIPTION_EVENT_CARD = 0x0009U, + /**< Event type: Card \since 0.9.15 */ + PA_SUBSCRIPTION_EVENT_FACILITY_MASK = 0x000FU, /**< A mask to extract the event type from an event value */ diff --git a/src/pulse/version.h.in b/src/pulse/version.h.in index e6226c44..0e37f983 100644 --- a/src/pulse/version.h.in +++ b/src/pulse/version.h.in @@ -43,7 +43,8 @@ const char* pa_get_library_version(void); /** The current API version. Version 6 relates to Polypaudio * 0.6. Prior versions (i.e. Polypaudio 0.5.1 and older) have - * PA_API_VERSION undefined. */ + * PA_API_VERSION undefined. Please note that this is only ever + * increased on incompatible API changes! */ #define PA_API_VERSION @PA_API_VERSION@ /** The current protocol version. Version 8 relates to Polypaudio |