]> code.delx.au - pulseaudio/commitdiff
add new option to pa_core stating whether we are running as high prio process
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Aug 2007 00:26:43 +0000 (00:26 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Aug 2007 00:26:43 +0000 (00:26 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1693 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/core.c
src/pulsecore/core.h

index 2e9d96b1d93a08a7d4f1fbcc09741739f852bac4..7ca2e75313536d547272a592a832bb343850a254 100644 (file)
@@ -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);
index 4d92960dbe6d1263727831568e6d6269117d9090..61cb47d5654b8fb998f04f56109efd88c46cf0d8 100644 (file)
@@ -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];