diff options
author | Tanu Kaskinen <tanuk@iki.fi> | 2009-08-17 16:42:06 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2009-08-17 16:42:06 +0300 |
commit | a10e8360d72626635de1242cfc2c77207f13d56f (patch) | |
tree | c11a43bff5feb77077bc5cfc53d870933fc2ccb7 /src/modules/dbus | |
parent | f48684e4dbc00d102ed17700fb693726a2676566 (diff) |
dbusiface-core: New function: pa_dbusiface_core_get_client_path().
Diffstat (limited to 'src/modules/dbus')
-rw-r--r-- | src/modules/dbus/iface-core.c | 7 | ||||
-rw-r--r-- | src/modules/dbus/iface-core.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/dbus/iface-core.c b/src/modules/dbus/iface-core.c index 2b5cf0b9..ec87158f 100644 --- a/src/modules/dbus/iface-core.c +++ b/src/modules/dbus/iface-core.c @@ -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))); +} diff --git a/src/modules/dbus/iface-core.h b/src/modules/dbus/iface-core.h index 14dff7eb..cf2a3b20 100644 --- a/src/modules/dbus/iface-core.h +++ b/src/modules/dbus/iface-core.h @@ -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 |