From a3162a396e2344b9e48fe27e406e5d92ba94af9b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Jan 2009 22:29:02 +0100 Subject: maintain a pa_core state variable --- src/pulsecore/core.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pulsecore/core.h') diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index 9f463d67..a91d7526 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -41,6 +41,12 @@ typedef struct pa_core pa_core; #include #include +typedef enum pa_core_state { + PA_CORE_STARTUP, + PA_CORE_RUNNING, + PA_CORE_SHUTDOWN +} pa_core_state_t; + typedef enum pa_core_hook { PA_CORE_HOOK_SINK_NEW, PA_CORE_HOOK_SINK_FIXATE, @@ -92,6 +98,8 @@ typedef enum pa_core_hook { struct pa_core { pa_msgobject parent; + pa_core_state_t state; + /* A random value which may be used to identify this instance of * PulseAudio. Not cryptographically secure in any way. */ uint32_t cookie; -- cgit