a8a140b8939a9cfa07a092a725c66d341737d203
[profile/ivi/pulseaudio.git] / src / core.h
1 #ifndef foocorehfoo
2 #define foocorehfoo
3
4 #include "idxset.h"
5 #include "mainloop.h"
6
7 struct core {
8     struct mainloop *mainloop;
9
10     struct idxset *clients, *sinks, *sources, *sink_inputs, *source_outputs, *modules;
11
12     uint32_t default_source_index, default_sink_index;
13 };
14
15 struct core* core_new(struct mainloop *m);
16 void core_free(struct core*c);
17
18 struct sink* core_get_default_sink(struct core *c);
19 struct source* core_get_default_source(struct core *c);
20
21 #endif