summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-23 22:29:02 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-23 22:29:02 +0100
commita3162a396e2344b9e48fe27e406e5d92ba94af9b (patch)
tree048a7788ca88cdd25bdb5c958ef1d52f509f43c7 /src/pulsecore/core.h
parent88c9f9fba631d30ba7dbca38b2aca3abe3bd4ac6 (diff)
maintain a pa_core state variable
Diffstat (limited to 'src/pulsecore/core.h')
-rw-r--r--src/pulsecore/core.h8
1 files changed, 8 insertions, 0 deletions
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 <pulsecore/sink-input.h>
#include <pulsecore/msgobject.h>
+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;