summaryrefslogtreecommitdiffstats
path: root/src/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
new file mode 100644
index 00000000..649c9dba
--- /dev/null
+++ b/src/core.h
@@ -0,0 +1,21 @@
+#ifndef foocorehfoo
+#define foocorehfoo
+
+#include "idxset.h"
+#include "mainloop.h"
+
+struct core {
+ struct mainloop *mainloop;
+
+ struct idxset *clients, *sinks, *sources, *output_streams, *input_streams, *modules;
+
+ uint32_t default_source_index, default_sink_index;
+};
+
+struct core* core_new(struct mainloop *m);
+void core_free(struct core*c);
+
+struct sink* core_get_default_sink(struct core *c);
+struct source* core_get_default_source(struct core *c);
+
+#endif