From b3029464a4cc0348649beeeea76e459b384addd5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 22 Aug 2007 00:26:43 +0000 Subject: add new option to pa_core stating whether we are running as high prio process git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1693 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/core.c | 5 +++-- src/pulsecore/core.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index 2e9d96b1..7ca2e753 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -127,8 +127,6 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { c->mempool = pool; - c->disallow_module_loading = 0; - c->quit_event = NULL; c->exit_idle_time = -1; @@ -138,6 +136,9 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { c->resample_method = PA_RESAMPLER_SRC_SINC_FASTEST; c->is_system_instance = 0; + c->disallow_module_loading = 0; + c->high_priority = 0; + for (j = 0; j < PA_CORE_HOOK_MAX; j++) pa_hook_init(&c->hooks[j], c); diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index 4d92960d..61cb47d5 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -101,16 +101,16 @@ struct pa_core { pa_mempool *mempool; - int disallow_module_loading, running_as_daemon; int exit_idle_time, module_idle_time, scache_idle_time; pa_time_event *quit_event; pa_time_event *scache_auto_unload_event; + int disallow_module_loading, running_as_daemon; pa_resample_method_t resample_method; - int is_system_instance; + int high_priority; /* hooks */ pa_hook hooks[PA_CORE_HOOK_MAX]; -- cgit