summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-19 20:21:51 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-19 20:21:51 +0000
commit2a01a5f6eb1b238b74f0ac9d3adfd2952f6f0ea1 (patch)
treecf3c82405484fd191311747bc80ad98f7ee5600f /hcid/dbus-service.c
parent8e0a966c57f17e914ebf614e0fb11526496a03c8 (diff)
Fix ActivateService to return the right response if a service is already running
Diffstat (limited to 'hcid/dbus-service.c')
-rw-r--r--hcid/dbus-service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 08b39d87..db643edf 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -858,7 +858,7 @@ void release_services(DBusConnection *conn)
services = NULL;
}
-const char *search_service(DBusConnection *conn, const char *pattern)
+struct service *search_service(DBusConnection *conn, const char *pattern)
{
GSList *l;
@@ -866,7 +866,7 @@ const char *search_service(DBusConnection *conn, const char *pattern)
struct service *service = l->data;
if (service->ident && !strcmp(service->ident, pattern))
- return service->object_path;
+ return service;
}
return NULL;