pulse: share private enum values with client side

This commit is contained in:
Marc-André Lureau 2009-01-16 15:53:27 +02:00
parent a3762a2f98
commit 310f433848
3 changed files with 18 additions and 20 deletions

View file

@ -45,15 +45,6 @@ typedef struct pa_source pa_source;
#define PA_MAX_OUTPUTS_PER_SOURCE 32
/* anonymous enum extending pa_source_state_t */
enum {
PA_SOURCE_INIT = -2,
/* Initialization state */
PA_SOURCE_UNLINKED = -3
/* The state when the source is getting unregistered and removed from client access */
};
/* Returns true if source is linked: registered and accessible from client side. */
static inline pa_bool_t PA_SOURCE_IS_LINKED(pa_source_state_t x) {
return x == PA_SOURCE_RUNNING || x == PA_SOURCE_IDLE || x == PA_SOURCE_SUSPENDED;