summaryrefslogtreecommitdiff
path: root/src/dkp-main.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-01-30 13:04:09 +0000
committerRichard Hughes <richard@hughsie.com>2009-01-30 13:04:09 +0000
commit3ca11019c0f103e2e3c274067fceff2b021829d7 (patch)
tree34d1201b1371566d3c5f1d2aaae66e270177bcca /src/dkp-main.c
parenta239eff3bf0bfe2587ece54f2aff3f5624bb0fde (diff)
trivial: actually load the new module, and register on the bus
Diffstat (limited to 'src/dkp-main.c')
-rw-r--r--src/dkp-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dkp-main.c b/src/dkp-main.c
index 8465eae..e6f0ff1 100644
--- a/src/dkp-main.c
+++ b/src/dkp-main.c
@@ -45,6 +45,7 @@
#include "dkp-daemon.h"
#include "dkp-qos.h"
+#include "dkp-wakeups.h"
#define NAME_TO_CLAIM "org.freedesktop.DeviceKit.Power"
static GMainLoop *loop = NULL;
@@ -121,6 +122,7 @@ main (int argc, char **argv)
GError *error;
DkpDaemon *daemon;
DkpQos *qos;
+ DkpWakeups *wakeups;
GOptionContext *context;
DBusGProxy *bus_proxy;
DBusGConnection *bus;
@@ -167,6 +169,7 @@ main (int argc, char **argv)
egg_debug ("Starting devkit-power-daemon version %s", PACKAGE_VERSION);
qos = dkp_qos_new ();
+ wakeups = dkp_wakeups_new ();
daemon = dkp_daemon_new ();
if (daemon == NULL)
goto out;
@@ -175,6 +178,7 @@ main (int argc, char **argv)
g_main_loop_run (loop);
g_object_unref (qos);
+ g_object_unref (wakeups);
g_object_unref (daemon);
g_main_loop_unref (loop);
ret = 0;