summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 14:53:59 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-20 14:53:59 +0000
commit89edbea0fde48f3e91b634589299f5c0f13e1543 (patch)
tree8dec6f044bc9ea19b3fbfefa1a8800d18e7a0fb6 /hcid
parent6906a81304d989f0039896903a2496e63518898c (diff)
Get rid of g_idle_add
Diffstat (limited to 'hcid')
-rw-r--r--hcid/dbus-service.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index e1be0797..f1e3d05f 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -913,21 +913,6 @@ static void service_notify(int action, const char *name, void *user_data)
}
}
-static gboolean startup_services(gpointer user_data)
-{
- GSList *l;
-
- for (l = services; l != NULL; l = l->next) {
- struct service *service = l->data;
-
- if (service->autostart)
- service_start(service, get_dbus_connection());
-
- }
-
- return FALSE;
-}
-
int init_services(const char *path)
{
DIR *d;
@@ -964,14 +949,15 @@ int init_services(const char *path)
service_free(service);
continue;
}
+
+ if (service->autostart)
+ service_start(service, get_dbus_connection());
}
closedir(d);
notify_add(path, service_notify, NULL);
- g_idle_add(startup_services, NULL);
-
return 0;
}