[mce] Add D-Bus constants for button backlight mode. JB#42094

Available in mce >= 1.98.0

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
This commit is contained in:
Simo Piiroinen
2018-11-20 12:40:16 +02:00
parent e8f71174c9
commit 41bbc89b27
2 changed files with 42 additions and 0 deletions

View File

@@ -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

View File

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