summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-19 13:55:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-19 13:55:43 +0000
commit23a3129d08193398a52ac4830e77cd054f0bf3fc (patch)
treea89be52912c27aea3a79a344fc660bc42222d4f0 /daemon
parentd4ce0f576380eabd35340f86f7904a0d6d36367d (diff)
For testing purpose always return the test service
Diffstat (limited to 'daemon')
-rw-r--r--daemon/service.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/daemon/service.c b/daemon/service.c
index 4d024b3a..a03a57f7 100644
--- a/daemon/service.c
+++ b/daemon/service.c
@@ -66,17 +66,20 @@ DBusHandlerResult manager_find_service(DBusConnection *conn,
{
DBusMessage *reply;
const char *pattern;
+ const char path[] = "/org/bluez/service", *ptr = path;
dbus_message_get_args(msg, NULL,
DBUS_TYPE_STRING, &pattern, DBUS_TYPE_INVALID);
debug("Searching service with pattern \"%s\"", pattern);
- reply = dbus_message_new_error(msg, ERROR_INTERFACE ".NotFound",
- "Service does not exists");
+ reply = dbus_message_new_method_return(msg);
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
+ dbus_message_append_args(reply, DBUS_TYPE_STRING, &ptr,
+ DBUS_TYPE_INVALID);
+
return dbus_connection_send_and_unref(conn, reply);
}