From edc56a7f7a993aa60b979a4093e39f66e7f7a8c8 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 1 Aug 2008 01:56:09 +0300 Subject: rename pa_property_xxx to pa_shared_xxx to avoid confusion with property lists --- src/pulsecore/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pulsecore/core.c') diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index b2638b10..9aabd37d 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -141,7 +141,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { for (j = 0; j < PA_CORE_HOOK_MAX; j++) pa_hook_init(&c->hooks[j], c); - pa_property_init(c); + pa_shared_init(c); pa_random(&c->cookie, sizeof(c->cookie)); @@ -189,7 +189,7 @@ static void core_free(pa_object *o) { pa_silence_cache_done(&c->silence_cache); pa_mempool_free(c->mempool); - pa_property_cleanup(c); + pa_shared_cleanup(c); for (j = 0; j < PA_CORE_HOOK_MAX; j++) pa_hook_free(&c->hooks[j]); -- cgit From d36c5c97e53ac8865971bdd34ea27bf11bde49e1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 1 Aug 2008 02:10:54 +0300 Subject: rename props.[ch] to shared.[ch] --- src/pulsecore/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulsecore/core.c') diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index 9aabd37d..fd836fb2 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include #include -- cgit From 084f4292f6d1f36ae175b9fd1de070dc942ff29e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 3 Aug 2008 16:21:08 +0200 Subject: rename pa_hook_free() to pa_hook_done() since the hook struct is allocated on the stack not via malloc --- src/pulsecore/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pulsecore/core.c') diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index fd836fb2..1907fcaf 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -192,7 +192,7 @@ static void core_free(pa_object *o) { pa_shared_cleanup(c); for (j = 0; j < PA_CORE_HOOK_MAX; j++) - pa_hook_free(&c->hooks[j]); + pa_hook_done(&c->hooks[j]); pa_xfree(c); } -- cgit From 23bde22b1002b8900bb712fe30ffc30ec2deff93 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 3 Aug 2008 18:53:43 +0200 Subject: start idle timer even when no module is ever loaded --- src/pulsecore/core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/pulsecore/core.c') diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index 1907fcaf..aa8de8df 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -149,6 +149,8 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { pa_check_signal_is_blocked(SIGPIPE); #endif + pa_core_check_quit(c); + return c; } -- cgit