summaryrefslogtreecommitdiff
path: root/src
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
parenta239eff3bf0bfe2587ece54f2aff3f5624bb0fde (diff)
trivial: actually load the new module, and register on the bus
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
-rw-r--r--src/dkp-main.c4
2 files changed, 13 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 337691f..7ae40f8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -27,6 +27,7 @@ BUILT_SOURCES = \
dkp-daemon-glue.h \
dkp-device-glue.h \
dkp-qos-glue.h \
+ dkp-wakeups-glue.h \
dkp-marshal.h \
dkp-marshal.c
@@ -45,13 +46,17 @@ dkp-device-glue.h: org.freedesktop.DeviceKit.Power.Device.xml Makefile.am
dkp-qos-glue.h: org.freedesktop.DeviceKit.Power.QoS.xml Makefile.am
dbus-binding-tool --prefix=dkp_qos --mode=glib-server --output=dkp-qos-glue.h org.freedesktop.DeviceKit.Power.QoS.xml
+dkp-wakeups-glue.h: org.freedesktop.DeviceKit.Power.Wakeups.xml Makefile.am
+ dbus-binding-tool --prefix=dkp_wakeups --mode=glib-server --output=dkp-wakeups-glue.h org.freedesktop.DeviceKit.Power.Wakeups.xml
+
libexec_PROGRAMS = devkit-power-daemon
dbusifdir = $(datadir)/dbus-1/interfaces
dbusif_DATA = \
org.freedesktop.DeviceKit.Power.xml \
org.freedesktop.DeviceKit.Power.Device.xml \
- org.freedesktop.DeviceKit.Power.QoS.xml
+ org.freedesktop.DeviceKit.Power.QoS.xml \
+ org.freedesktop.DeviceKit.Power.Wakeups.xml
devkit_power_daemon_SOURCES = \
egg-debug.c \
@@ -65,6 +70,7 @@ devkit_power_daemon_SOURCES = \
dkp-wup.h dkp-wup.c \
dkp-hid.h dkp-hid.c \
dkp-qos.h dkp-qos.c \
+ dkp-wakeups.h dkp-wakeups.c \
dkp-history.h dkp-history.c \
sysfs-utils.h sysfs-utils.c \
dkp-main.c \
@@ -115,7 +121,8 @@ CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = \
org.freedesktop.DeviceKit.Power.xml \
org.freedesktop.DeviceKit.Power.Device.xml \
- org.freedesktop.DeviceKit.Power.QoS.xml \
+ org.freedesktop.DeviceKit.Power.QoS.xml \
+ org.freedesktop.DeviceKit.Power.Wakeups.xml \
dkp-marshal.list \
95-devkit-power-csr.rules \
95-devkit-power-hid.rules \
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;