summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-adapter.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-10 17:59:14 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-10 17:59:14 +0000
commite1046e6b02c2eef72ad63f2a61949e1ca606f63f (patch)
tree9ca8d4936a0baa5df7d420289c1c34c18ef61264 /hcid/dbus-adapter.c
parent326cf15e58c699fb2fb62181fcdd47339ec60c15 (diff)
Added raw service record to xml conversion functions
Diffstat (limited to 'hcid/dbus-adapter.c')
-rw-r--r--hcid/dbus-adapter.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 1aeccbc6..3edbabf2 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1063,24 +1063,13 @@ static DBusHandlerResult adapter_set_name(DBusConnection *conn,
static DBusHandlerResult adapter_get_remote_svc(DBusConnection *conn,
DBusMessage *msg, void *data)
{
- return get_remote_svc_rec(conn, msg, data);
+ return get_remote_svc_rec(conn, msg, data, SDP_FORMAT_BINARY);
}
static DBusHandlerResult adapter_get_remote_svc_xml(DBusConnection *conn,
DBusMessage *msg, void *data)
{
- DBusMessage *reply;
- const char *result = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"
- "<record></record>";
-
- reply = dbus_message_new_method_return(msg);
- if (!reply)
- return DBUS_HANDLER_RESULT_NEED_MEMORY;
-
- dbus_message_append_args(reply, DBUS_TYPE_STRING, &result,
- DBUS_TYPE_INVALID);
-
- return send_message_and_unref(conn, reply);
+ return get_remote_svc_rec(conn, msg, data, SDP_FORMAT_XML);
}
static DBusHandlerResult adapter_get_remote_svc_handles(DBusConnection *conn,