[Pommed-commits] r389 - trunk/dbus-client
jblache at alioth.debian.org
jblache at alioth.debian.org
Mon Nov 26 10:35:50 UTC 2007
Author: jblache
Date: 2007-11-26 10:35:50 +0000 (Mon, 26 Nov 2007)
New Revision: 389
Modified:
trunk/dbus-client/dbus-client.c
trunk/dbus-client/dbus-client.h
Log:
Add MBP_DBUS_SIG_VIDEO for the videoSwitch notification.
Modified: trunk/dbus-client/dbus-client.c
===================================================================
--- trunk/dbus-client/dbus-client.c 2007-11-26 10:31:11 UTC (rev 388)
+++ trunk/dbus-client/dbus-client.c 2007-11-26 10:35:50 UTC (rev 389)
@@ -359,5 +359,12 @@
return NULL;
}
+ if ((signals & MBP_DBUS_SIG_VIDEO)
+ && (bus_add_match(conn, "type='signal',path='/org/pommed/notify/videoSwitch',interface='org.pommed.signal.videoSwitch'") < 0))
+ {
+ mbp_dbus_cleanup();
+ return NULL;
+ }
+
return conn;
}
Modified: trunk/dbus-client/dbus-client.h
===================================================================
--- trunk/dbus-client/dbus-client.h 2007-11-26 10:31:11 UTC (rev 388)
+++ trunk/dbus-client/dbus-client.h 2007-11-26 10:35:50 UTC (rev 389)
@@ -12,6 +12,7 @@
#define MBP_DBUS_SIG_MUTE (1 << 3)
#define MBP_DBUS_SIG_EJECT (1 << 4)
#define MBP_DBUS_SIG_LIGHT (1 << 5)
+#define MBP_DBUS_SIG_VIDEO (1 << 6)
#define LCD_USER 0
More information about the Pommed-commits
mailing list