mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
dbusiface-core: Two new functions: pa_dbusiface_core_get_playback/record_stream_path().
This commit is contained in:
parent
91f626f777
commit
f663d13acd
2 changed files with 16 additions and 0 deletions
|
|
@ -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)));
|
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) {
|
const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_module *module) {
|
||||||
pa_assert(c);
|
pa_assert(c);
|
||||||
pa_assert(module);
|
pa_assert(module);
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,8 @@ void pa_dbusiface_core_free(pa_dbusiface_core *c);
|
||||||
const char *pa_dbusiface_core_get_card_path(pa_dbusiface_core *c, const pa_card *card);
|
const char *pa_dbusiface_core_get_card_path(pa_dbusiface_core *c, const pa_card *card);
|
||||||
const char *pa_dbusiface_core_get_sink_path(pa_dbusiface_core *c, const pa_sink *sink);
|
const char *pa_dbusiface_core_get_sink_path(pa_dbusiface_core *c, const pa_sink *sink);
|
||||||
const char *pa_dbusiface_core_get_source_path(pa_dbusiface_core *c, const pa_source *source);
|
const char *pa_dbusiface_core_get_source_path(pa_dbusiface_core *c, const pa_source *source);
|
||||||
|
const char *pa_dbusiface_core_get_playback_stream_path(pa_dbusiface_core *c, const pa_sink_input *sink_input);
|
||||||
|
const char *pa_dbusiface_core_get_record_stream_path(pa_dbusiface_core *c, const pa_source_output *source_output);
|
||||||
const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_module *module);
|
const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_module *module);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue