summaryrefslogtreecommitdiffstats
path: root/src/modules/dbus/iface-core.c
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2009-08-15 16:54:11 +0300
committerTanu Kaskinen <tanuk@iki.fi>2009-08-15 16:54:11 +0300
commitf663d13acd306feafe2526c6a9258f14fd5d2ffc (patch)
tree7d0a374a0a14a16c49de8906bc3563618e735455 /src/modules/dbus/iface-core.c
parent91f626f777402fa6485658b04cbcdf2a7aac3f01 (diff)
dbusiface-core: Two new functions: pa_dbusiface_core_get_playback/record_stream_path().
Diffstat (limited to 'src/modules/dbus/iface-core.c')
-rw-r--r--src/modules/dbus/iface-core.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/dbus/iface-core.c b/src/modules/dbus/iface-core.c
index 81e709f5..2b5cf0b9 100644
--- a/src/modules/dbus/iface-core.c
+++ b/src/modules/dbus/iface-core.c
@@ -2055,6 +2055,20 @@ const char *pa_dbusiface_core_get_source_path(pa_dbusiface_core *c, const pa_sou
return pa_dbusiface_device_get_path(pa_hashmap_get(c->sources_by_index, PA_UINT32_TO_PTR(source->index)));
}
+const char *pa_dbusiface_core_get_playback_stream_path(pa_dbusiface_core *c, const pa_sink_input *sink_input) {
+ pa_assert(c);
+ pa_assert(sink_input);
+
+ return pa_dbusiface_stream_get_path(pa_hashmap_get(c->playback_streams, PA_UINT32_TO_PTR(sink_input->index)));
+}
+
+const char *pa_dbusiface_core_get_record_stream_path(pa_dbusiface_core *c, const pa_source_output *source_output) {
+ pa_assert(c);
+ pa_assert(source_output);
+
+ return pa_dbusiface_stream_get_path(pa_hashmap_get(c->record_streams, PA_UINT32_TO_PTR(source_output->index)));
+}
+
const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_module *module) {
pa_assert(c);
pa_assert(module);