summaryrefslogtreecommitdiff
path: root/src/up-main.c
diff options
context:
space:
mode:
authorAlex Murray <murray.alex@gmail.com>2010-10-09 07:50:32 +1030
committerRichard Hughes <richard@hughsie.com>2010-10-11 11:03:06 +0100
commit5d902c22b7d009b0695587fbe2d1ba46a4f78bac (patch)
treed58679fe7e0dbb2ddf456748f2450d5e821aa409 /src/up-main.c
parent58f3d9fbdff88173276f05e0d6da2cf864758381 (diff)
downloadupower-5d902c22b7d009b0695587fbe2d1ba46a4f78bac.tar.gz
Add support for controlling leds keyboard backlights
Add a new DBus interface based on the QoS one to provide for controlling a keyboard backlight via the Linux leds interface. Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'src/up-main.c')
-rw-r--r--src/up-main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/up-main.c b/src/up-main.c
index 281ea28..9f2cb24 100644
--- a/src/up-main.c
+++ b/src/up-main.c
@@ -40,6 +40,7 @@
#include "up-daemon.h"
#include "up-qos.h"
+#include "up-kbd-backlight.h"
#include "up-wakeups.h"
#define DEVKIT_POWER_SERVICE_NAME "org.freedesktop.UPower"
@@ -125,6 +126,7 @@ main (gint argc, gchar **argv)
GError *error = NULL;
UpDaemon *daemon = NULL;
UpQos *qos = NULL;
+ UpKbdBacklight *kbd_backlight = NULL;
UpWakeups *wakeups = NULL;
GOptionContext *context;
DBusGProxy *bus_proxy;
@@ -182,6 +184,7 @@ main (gint argc, gchar **argv)
egg_debug ("Starting upowerd version %s", PACKAGE_VERSION);
qos = up_qos_new ();
+ kbd_backlight = up_kbd_backlight_new ();
wakeups = up_wakeups_new ();
daemon = up_daemon_new ();
loop = g_main_loop_new (NULL, FALSE);
@@ -209,6 +212,8 @@ main (gint argc, gchar **argv)
out:
if (qos != NULL)
g_object_unref (qos);
+ if (kbd_backlight != NULL)
+ g_object_unref (kbd_backlight);
if (wakeups != NULL)
g_object_unref (wakeups);
if (daemon != NULL)