mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
maintain a pa_core state variable
This commit is contained in:
parent
88c9f9fba6
commit
a3162a396e
2 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue