summaryrefslogtreecommitdiffstats
path: root/src/core.h
blob: 649c9dbad4d5bba81f9b2e0cfbe43b84bc903f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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