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_ */