diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-08-12 02:18:24 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-08-12 02:18:24 +0000 |
commit | 47d009afd69612aa97fd368fd481734f1c52909a (patch) | |
tree | bc8c09db82d5ee0a73406d89fee850d1a3ddbd52 /src/pulsecore/core.h | |
parent | f8e5f47e233fc401eec5e2c7fdeab46c7314a6b2 (diff) |
rework subscription code: try to drop redundant queued events
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1211 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/core.h')
-rw-r--r-- | src/pulsecore/core.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index 61f17432..391ba9b8 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -24,14 +24,15 @@ typedef struct pa_core pa_core; -#include <pulsecore/idxset.h> -#include <pulsecore/hashmap.h> #include <pulse/mainloop-api.h> #include <pulse/sample.h> +#include <pulsecore/idxset.h> +#include <pulsecore/hashmap.h> #include <pulsecore/memblock.h> #include <pulsecore/resampler.h> #include <pulsecore/queue.h> #include <pulsecore/core-subscribe.h> +#include <pulsecore/llist.h> /* The core structure of PulseAudio. Every PulseAudio daemon contains * exactly one of these. It is used for storing kind of global @@ -58,8 +59,9 @@ struct pa_core { pa_defer_event *module_defer_unload_event; pa_defer_event *subscription_defer_event; - pa_queue *subscription_event_queue; - pa_subscription *subscriptions; + PA_LLIST_HEAD(pa_subscription, subscriptions); + PA_LLIST_HEAD(pa_subscription_event, subscription_event_queue); + pa_subscription_event *subscription_event_last; pa_memblock_stat *memblock_stat; |