mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
dbusiface-core: New function: pa_dbusiface_core_get_client_path().
This commit is contained in:
parent
f48684e4db
commit
a10e8360d7
2 changed files with 8 additions and 0 deletions
|
|
@ -2075,3 +2075,10 @@ const char *pa_dbusiface_core_get_module_path(pa_dbusiface_core *c, const pa_mod
|
|||
|
||||
return pa_dbusiface_module_get_path(pa_hashmap_get(c->modules, PA_UINT32_TO_PTR(module->index)));
|
||||
}
|
||||
|
||||
const char *pa_dbusiface_core_get_client_path(pa_dbusiface_core *c, const pa_client *client) {
|
||||
pa_assert(c);
|
||||
pa_assert(client);
|
||||
|
||||
return pa_dbusiface_client_get_path(pa_hashmap_get(c->clients, PA_UINT32_TO_PTR(client->index)));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,5 +41,6 @@ const char *pa_dbusiface_core_get_source_path(pa_dbusiface_core *c, const pa_sou
|
|||
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_client_path(pa_dbusiface_core *c, const pa_client *client);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue