dbusiface-core: New function: pa_dbusiface_core_get_client_path().

This commit is contained in:
Tanu Kaskinen 2009-08-17 16:42:06 +03:00
parent f48684e4db
commit a10e8360d7
2 changed files with 8 additions and 0 deletions

View file

@ -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)));
}

View file

@ -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