summaryrefslogtreecommitdiffstats
path: root/polyp/core.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-11-21 21:31:28 +0000
committerLennart Poettering <lennart@poettering.net>2004-11-21 21:31:28 +0000
commit4763ca1376fc136158e576de94dc1cf6c6584973 (patch)
tree6f8d36ec68061a587883d94e9eacc52bbf707028 /polyp/core.h
parent2fb83d13f27214476f90fe619b26f5bbc8f520c8 (diff)
Comment some more files
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@309 fefdeb5f-60dc-0310-8127-8f9354f1896f
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