dbusiface-core: New function: pa_dbusiface_core_get_client_path().
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 17 Aug 2009 13:42:06 +0000 (16:42 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 17 Aug 2009 13:42:06 +0000 (16:42 +0300)
src/modules/dbus/iface-core.c
src/modules/dbus/iface-core.h

index 2b5cf0b..ec87158 100644 (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)));
+}
index 14dff7e..cf2a3b2 100644 (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