From 0d161d6b95dfe41dc62c3267c726caaabf834d81 Mon Sep 17 00:00:00 2001 From: Simo Piiroinen Date: Wed, 20 May 2015 12:40:50 +0300 Subject: [PATCH] Add D-Bus constants for exposing blanking pause and inhibit states New method calls: * get_display_blanking_pause * get_display_blanking_inhibit New signals: * display_blanking_pause_ind * display_blanking_inhibit_ind [mce] Add D-Bus constants for exposing blanking pause and inhibit states. Contributes to JB#28929 --- include/mce/dbus-names.h | 36 ++++++++++++++++++++++++++++++++++++ include/mce/mode-names.h | 22 ++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/include/mce/dbus-names.h b/include/mce/dbus-names.h index 4711fad..fdf643f 100644 --- a/include/mce/dbus-names.h +++ b/include/mce/dbus-names.h @@ -288,6 +288,24 @@ */ #define MCE_CANCEL_PREVENT_BLANK_REQ "req_display_cancel_blanking_pause" +/** Get current blank prevention status + * + * @since 1.51.0 + * + * @return @c gchar @c * with the blanking pause state + * (see @ref mce/mode-names.h for valid blanking pause states) + */ +#define MCE_PREVENT_BLANK_GET "get_display_blanking_pause" + +/** Get current blank inhibition status + * + * @since 1.51.0 + * + * @return @c gchar @c * with the blanking inhibit state + * (see @ref mce/mode-names.h for valid blanking inhibit states) + */ +#define MCE_BLANKING_INHIBIT_GET "get_display_blanking_inhibit" + /** * Request CABC mode change * @@ -486,6 +504,24 @@ */ #define MCE_DISPLAY_SIG "display_status_ind" +/** Notify everyone whether the display blanking is paused + * + * @since v1.51.0 + * + * @return @c gchar @c * with the blanking pause state + * (see @ref mce/mode-names.h for valid blanking pause states) + */ +#define MCE_PREVENT_BLANK_SIG "display_blanking_pause_ind" + +/** Notify everyone whether the display blanking is inhibited + * + * @since v1.51.0 + * + * @return @c gchar @c * with the display baling inhibit state + * (see @ref mce/mode-names.h for valid blanking inhibit states) + */ +#define MCE_BLANKING_INHIBIT_SIG "display_blanking_inhibit_ind" + /** * Notify everyone that the state of the automatic power saving mode changed * diff --git a/include/mce/mode-names.h b/include/mce/mode-names.h index afa4ab5..7454ebf 100644 --- a/include/mce/mode-names.h +++ b/include/mce/mode-names.h @@ -163,6 +163,28 @@ */ #define MCE_DISPLAY_OFF_STRING "off" +/** Blank prevent state name for active + * + * @since v1.51.0 + */ +#define MCE_PREVENT_BLANK_ACTIVE_STRING "active" +/** Blank prevent state name for inactive + * + * @since v1.51.0 + */ +#define MCE_PREVENT_BLANK_INACTIVE_STRING "inactive" + +/** Blank inhibit state name for active + * + * @since v1.51.0 + */ +#define MCE_INHIBIT_BLANK_ACTIVE_STRING "active" +/** Blank inhibit state name for inactive + * + * @since v1.51.0 + */ +#define MCE_INHIBIT_BLANK_INACTIVE_STRING "inactive" + /** * CABC name for CABC disabled *