From e1046e6b02c2eef72ad63f2a61949e1ca606f63f Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 10 Nov 2006 17:59:14 +0000 Subject: Added raw service record to xml conversion functions --- hcid/dbus-adapter.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'hcid/dbus-adapter.c') 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 = "" - ""; - - 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, -- cgit