Merge pull request #5 from spiiroin/add_led_pattern_signals
Add led pattern signals
This commit is contained in:
@@ -346,6 +346,19 @@
|
||||
*
|
||||
* @since v1.12.8
|
||||
*
|
||||
* @since v1.23.7
|
||||
*
|
||||
* An unique within process tracking id can be passed to all
|
||||
* cpu keepalive related D-Bus method calls. This allows mce
|
||||
* to keep track of multiple, possibly overlapping keepalive
|
||||
* periods from one process.
|
||||
*
|
||||
* Old code that does not pass the tracking id still works
|
||||
* as long as the client process does not have multiple
|
||||
* overlapping periods at once.
|
||||
*
|
||||
* @param context Tracking id as DBUS_TYPE_STRING
|
||||
*
|
||||
* @return period in seconds as DBUS_TYPE_INT32
|
||||
*/
|
||||
#define MCE_CPU_KEEPALIVE_PERIOD_REQ "req_cpu_keepalive_period"
|
||||
@@ -362,6 +375,8 @@
|
||||
*
|
||||
* @since v1.12.8
|
||||
*
|
||||
* @param context Tracking id as DBUS_TYPE_STRING
|
||||
*
|
||||
* @return success as DBUS_TYPE_BOOLEAN
|
||||
*/
|
||||
#define MCE_CPU_KEEPALIVE_START_REQ "req_cpu_keepalive_start"
|
||||
@@ -377,6 +392,8 @@
|
||||
*
|
||||
* @since v1.12.8
|
||||
*
|
||||
* @param context Tracking id as DBUS_TYPE_STRING
|
||||
*
|
||||
* @return success as DBUS_TYPE_BOOLEAN
|
||||
*/
|
||||
#define MCE_CPU_KEEPALIVE_STOP_REQ "req_cpu_keepalive_stop"
|
||||
@@ -510,8 +527,11 @@
|
||||
|
||||
/**
|
||||
* Activates a pre-defined LED pattern
|
||||
*
|
||||
* Non-existing patterns are ignored
|
||||
*
|
||||
* See also: MCE_LED_PATTERN_ACTIVATED_SIG
|
||||
*
|
||||
* @credential mce::LEDControl
|
||||
* @since v1.5.0
|
||||
* @param pattern @c gchar @c * with the pattern name
|
||||
@@ -521,8 +541,11 @@
|
||||
|
||||
/**
|
||||
* Deactivates a pre-defined LED pattern
|
||||
*
|
||||
* Non-existing patterns are ignored
|
||||
*
|
||||
* See also: MCE_LED_PATTERN_DEACTIVATED_SIG
|
||||
*
|
||||
* @credential mce::LEDControl
|
||||
* @since v1.5.0
|
||||
* @param pattern @c gchar @c * with the pattern name
|
||||
@@ -530,6 +553,20 @@
|
||||
*/
|
||||
#define MCE_DEACTIVATE_LED_PATTERN "req_led_pattern_deactivate"
|
||||
|
||||
/** Notify everyone that a led pattern has been activated
|
||||
*
|
||||
* @since v1.25.0
|
||||
* @return @c gchar @c * led pattern name
|
||||
*/
|
||||
#define MCE_LED_PATTERN_ACTIVATED_SIG "led_pattern_activated_ind"
|
||||
|
||||
/** Notify everyone that a led pattern has been deactivated
|
||||
*
|
||||
* @since v1.25.0
|
||||
* @return @c gchar @c * led pattern name
|
||||
*/
|
||||
#define MCE_LED_PATTERN_DEACTIVATED_SIG "led_pattern_deactivated_ind"
|
||||
|
||||
/**
|
||||
* Enable LED; this does not affect the LED pattern stack
|
||||
* Note: The GConf setting for LED flashing overrides this value
|
||||
|
||||
Reference in New Issue
Block a user