summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-30 14:27:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-30 14:27:43 +0000
commit2d7feb3118c551dc7906ce9aac04349348cb3904 (patch)
tree40ec34eb5bb2e9866a595c1eb994013bc6685f0d
parent7f57c2d8d6900c985c149e1801ffc1f766cb409e (diff)
Add dummy implementation for the XML service records
-rw-r--r--hcid/dbus-adapter.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/hcid/dbus-adapter.c b/hcid/dbus-adapter.c
index 35f02719..ec27559e 100644
--- a/hcid/dbus-adapter.c
+++ b/hcid/dbus-adapter.c
@@ -1058,6 +1058,23 @@ static DBusHandlerResult adapter_get_remote_svc(DBusConnection *conn,
return get_remote_svc_rec(conn, msg, data);
}
+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);
+}
+
static DBusHandlerResult adapter_get_remote_svc_handles(DBusConnection *conn,
DBusMessage *msg,
void *data)
@@ -2714,6 +2731,7 @@ static struct service_data dev_services[] = {
{ "SetName", adapter_set_name },
{ "GetRemoteServiceRecord", adapter_get_remote_svc },
+ { "GetRemoteServiceRecordAsXML", adapter_get_remote_svc_xml },
{ "GetRemoteServiceHandles", adapter_get_remote_svc_handles },
{ "GetRemoteVersion", adapter_get_remote_version },