Commit 624fcfdc authored by Jussi Kukkonen's avatar Jussi Kukkonen Committed by Regis Merlino

[API] Return object paths in GetRenderers() as documented

GetRenderers() should return object paths instead of strings
(documentation already claims it does).

Fixes #110.
Signed-off-by: default avatarJussi Kukkonen <jussi.kukkonen@intel.com>
parent 1027d57b
......@@ -130,7 +130,7 @@ static const gchar g_root_introspection[] =
" <method name='"DLR_INTERFACE_RELEASE"'>"
" </method>"
" <method name='"DLR_INTERFACE_GET_RENDERERS"'>"
" <arg type='as' name='"DLR_INTERFACE_RENDERERS"'"
" <arg type='ao' name='"DLR_INTERFACE_RENDERERS"'"
" direction='out'/>"
" </method>"
" <method name='"DLR_INTERFACE_RESCAN"'>"
......
......@@ -63,7 +63,7 @@ dlr_task_t *dlr_task_get_servers_new(dleyna_connector_msg_id_t invocation)
task->type = DLR_TASK_GET_SERVERS;
task->invocation = invocation;
task->result_format = "(@as)";
task->result_format = "(@ao)";
task->synchronous = TRUE;
return task;
......
......@@ -411,12 +411,12 @@ GVariant *dlr_upnp_get_server_ids(dlr_upnp_t *upnp)
DLEYNA_LOG_DEBUG("Enter");
g_variant_builder_init(&vb, G_VARIANT_TYPE("as"));
g_variant_builder_init(&vb, G_VARIANT_TYPE("ao"));
g_hash_table_iter_init(&iter, upnp->server_udn_map);
while (g_hash_table_iter_next(&iter, NULL, &value)) {
device = value;
g_variant_builder_add(&vb, "s", device->path);
g_variant_builder_add(&vb, "o", device->path);
}
DLEYNA_LOG_DEBUG("Exit");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment