maintain a pa_core state variable

This commit is contained in:
Lennart Poettering 2009-01-23 22:29:02 +01:00
parent 88c9f9fba6
commit a3162a396e
2 changed files with 13 additions and 0 deletions

View file

@ -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;