summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-28 01:46:27 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-28 01:46:27 +0100
commita5401a50a67ebf1d86e979ee5556961b24a25400 (patch)
treefd5d1d48cf5810135dbc28f3f3f63519038b037a /src/pulsecore/core.h
parentfc3ff114186020637e1dfbe23ff01d00b0452ccf (diff)
store the default sink/source in proper pa_sink*/pa_source* pointers instead of a string
Diffstat (limited to 'src/pulsecore/core.h')
-rw-r--r--src/pulsecore/core.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h
index e33a2453..b349c6fc 100644
--- a/src/pulsecore/core.h
+++ b/src/pulsecore/core.h
@@ -25,6 +25,8 @@
#include <pulse/mainloop-api.h>
#include <pulse/sample.h>
+typedef struct pa_core pa_core;
+
#include <pulsecore/idxset.h>
#include <pulsecore/hashmap.h>
#include <pulsecore/memblock.h>
@@ -34,9 +36,8 @@
#include <pulsecore/hook-list.h>
#include <pulsecore/asyncmsgq.h>
#include <pulsecore/sample-util.h>
-
-typedef struct pa_core pa_core;
-
+#include <pulsecore/sink.h>
+#include <pulsecore/source.h>
#include <pulsecore/core-subscribe.h>
#include <pulsecore/sink-input.h>
#include <pulsecore/msgobject.h>
@@ -112,7 +113,8 @@ struct pa_core {
pa_hashmap *namereg, *shared;
/* The name of the default sink/source */
- char *default_source_name, *default_sink_name;
+ pa_source *default_source;
+ pa_sink *default_sink;
pa_sample_spec default_sample_spec;
unsigned default_n_fragments, default_fragment_size_msec;