From 41bbc89b27fa9988451bc42c17a3c6154bc3471b Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Tue, 20 Nov 2018 12:40:16 +0200 Subject: [PATCH 1/3] [mce] Add D-Bus constants for button backlight mode. JB#42094 Available in mce >= 1.98.0 Signed-off-by: Simo Piiroinen --- include/mce/dbus-names.h | 15 +++++++++++++++ include/mce/mode-names.h | 27 +++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/include/mce/dbus-names.h b/include/mce/dbus-names.h index 96db04e..5129420 100644 --- a/include/mce/dbus-names.h +++ b/include/mce/dbus-names.h @@ -1031,6 +1031,21 @@ */ # define MCE_BUTTON_BACKLIGHT_CHANGE_REQ "req_button_backlight_change" +/** Request button backlight mode change + * + * @since mce 1.98.0 + * + * For use from the CSD application button backlight verification test. + * + * Allows bypassing of the button backlight policy and explicitly turn + * the backlight on or off. + * + * @param mode int32: #MCE_BUTTON_BACKLIGHT_MODE_OFF, + * #MCE_BUTTON_BACKLIGHT_MODE_ON, or + * #MCE_BUTTON_BACKLIGHT_MODE_POLICY + */ +# define MCE_BUTTON_BACKLIGHT_MODE_REQ "req_button_backlight_mode" + /** Indication for change of button backlight state * * @since mce 1.90.0 diff --git a/include/mce/mode-names.h b/include/mce/mode-names.h index a0152da..0461c81 100644 --- a/include/mce/mode-names.h +++ b/include/mce/mode-names.h @@ -736,4 +736,31 @@ /*@}*/ +///////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////////// +/** @name Button backlight operation modes + * + *@{ + */ + +/** Button backlight should be turned off + * + * @since mce 1.98.0 + */ +#define MCE_BUTTON_BACKLIGHT_MODE_OFF 0 + +/** Button backlight should be turned on + * + * @since mce 1.98.0 + */ +#define MCE_BUTTON_BACKLIGHT_MODE_ON 1 + +/** Button backlight should be turned on/off according to policy + * + * @since mce 1.98.0 + */ +#define MCE_BUTTON_BACKLIGHT_MODE_POLICY 2 + +/*@}*/ + #endif /* MCE_MODE_NAMES_H_ */ From 2fea21d3918af44095a82739b6a9c240714dd925 Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Tue, 20 Nov 2018 12:40:55 +0200 Subject: [PATCH 2/3] [mce] Add missing Doxygen group name tag Signed-off-by: Simo Piiroinen --- include/mce/mode-names.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mce/mode-names.h b/include/mce/mode-names.h index 0461c81..f107fdb 100644 --- a/include/mce/mode-names.h +++ b/include/mce/mode-names.h @@ -703,7 +703,7 @@ ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// -/** TKLock status replies from SystemUI +/** @name TKLock status replies from SystemUI * *@{ */ From 7ff2bfbe8c7e602b3117fe80ded55c22d1582bd1 Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Tue, 20 Nov 2018 12:43:47 +0200 Subject: [PATCH 3/3] Bump mce-dev version to 1.26.0 --- debian/changelog | 7 +++++++ mce.pc | 2 +- rpm/mce-headers.spec | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index ba20495..16a3a49 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +mce-dev (1.26.0) unstable; urgency=low + + * [mce] Add D-Bus constants for button backlight mode. JB#42094 + * [mce] Add missing Doxygen group name tag + + -- Simo Piiroinen Tue, 20 Nov 2018 12:42:26 +0200 + mce-dev (1.25.0) unstable; urgency=low * [mce] Add blanking pause related D-Bus constants. JB#41340 diff --git a/mce.pc b/mce.pc index c216d94..f1d7a48 100644 --- a/mce.pc +++ b/mce.pc @@ -3,7 +3,7 @@ includedir=${prefix}/include Name: mce Description: Mode Control Entity -Version: 1.25.0 +Version: 1.26.0 Requires: Libs: Cflags: -I${includedir} diff --git a/rpm/mce-headers.spec b/rpm/mce-headers.spec index 66e754b..1a57f46 100644 --- a/rpm/mce-headers.spec +++ b/rpm/mce-headers.spec @@ -1,6 +1,6 @@ Name: mce-headers Summary: Development files for mce -Version: 1.25.0 +Version: 1.26.0 Release: 1 Group: Development/Libraries License: LGPLv2