summaryrefslogtreecommitdiffstats
path: root/polyp/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/core.h')
-rw-r--r--polyp/core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/polyp/core.h b/polyp/core.h
index 09e58b46..6c6070b1 100644
--- a/polyp/core.h
+++ b/polyp/core.h
@@ -29,13 +29,20 @@
#include "memblock.h"
#include "resampler.h"
+/* The core structure of polypaudio. Every polypaudio daemon contains
+ * exactly one of these. It is used for storing kind of global
+ * variables for the daemon. */
+
struct pa_core {
struct pa_mainloop_api *mainloop;
+ /* idxset of all kinds of entities */
struct pa_idxset *clients, *sinks, *sources, *sink_inputs, *source_outputs, *modules, *scache, *autoload_idxset;
+ /* Some hashmaps for all sorts of entities */
struct pa_hashmap *namereg, *autoload_hashmap, *properties;
+ /* The name of the default sink/source */
char *default_source_name, *default_sink_name;
struct pa_sample_spec default_sample_spec;
@@ -60,6 +67,8 @@ struct pa_core {
struct pa_core* pa_core_new(struct pa_mainloop_api *m);
void pa_core_free(struct pa_core*c);
+
+/* Check whether noone is connected to this core */
void pa_core_check_quit(struct pa_core *c);
#endif