summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/source.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/source.h')
-rw-r--r--src/pulsecore/source.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/source.h b/src/pulsecore/source.h
index 4db2dedf..e2b02ceb 100644
--- a/src/pulsecore/source.h
+++ b/src/pulsecore/source.h
@@ -148,4 +148,8 @@ unsigned pa_source_used_by(pa_source *s);
void pa_source_post(pa_source*s, const pa_memchunk *b);
int pa_source_process_msg(pa_msgobject *o, int code, void *userdata, pa_memchunk *chunk);
+static inline int PA_SOURCE_OPENED(pa_source_state_t x) {
+ return x == PA_SOURCE_RUNNING || x == PA_SOURCE_IDLE;
+}
+
#endif