diff --git a/include/mce/dbus-names.h b/include/mce/dbus-names.h index 032e5e0..e7c9b92 100644 --- a/include/mce/dbus-names.h +++ b/include/mce/dbus-names.h @@ -943,8 +943,46 @@ */ # define MCE_CHARGING_STATE_SIG "charging_state_ind" +/** Query charge-once-to-full policy override state + * + * @since mce 1.112.0 + * + * @return string: charge-once-to-full policy override state, one of: + * - #MCE_FORCED_CHARGING_UNKNOWN + * - #MCE_FORCED_CHARGING_ENABLED + * - #MCE_FORCED_CHARGING_DISABLED + */ +# define MCE_FORCED_CHARGING_GET "get_forced_charging" + +/** Request charge-once-to-full policy override state change + * + * @since mce 1.112.0 + * + * @note Override is automatically disabled if / when + * battery is full or charger is disconnected. + * + * @param value string: override state, one of: + * - #MCE_FORCED_CHARGING_ENABLED + * - #MCE_FORCED_CHARGING_DISABLED + */ +# define MCE_FORCED_CHARGING_REQ "req_forced_charging" + +/** Signal that indicates that charge-once-to-full policy override state has changed + * + * Charge-once-to-full policy override decision. + * + * @since mce 1.112.0 + * + * @param string: charge-once-to-full policy state, one of: + * - #MCE_FORCED_CHARGING_UNKNOWN + * - #MCE_FORCED_CHARGING_ENABLED + * - #MCE_FORCED_CHARGING_DISABLED + */ +# define MCE_FORCED_CHARGING_SIG "forced_charging_ind" + /*@}*/ + ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// /** @name LED Control diff --git a/include/mce/mode-names.h b/include/mce/mode-names.h index 2850bd1..afe2641 100644 --- a/include/mce/mode-names.h +++ b/include/mce/mode-names.h @@ -508,6 +508,32 @@ # define MCE_CHARGING_STATE_DISABLED "disabled" /*@}*/ +///////////////////////////////////////////////////////////////////////////// +///////////////////////////////////////////////////////////////////////////// +/** @name Charge-once-to-full policy override constants + * + *@{ + */ + +/** Charge-once-to-full policy override state is not known + * + * @since mce 1.112.0 + */ +# define MCE_FORCED_CHARGING_UNKNOWN "unknown" + +/** Charge-once-to-full policy override has been activated + * + * @since mce 1.112.0 + */ +# define MCE_FORCED_CHARGING_ENABLED "enabled" + +/** Charge-once-to-full policy override has been deactivated + * + * @since mce 1.112.0 + */ +# define MCE_FORCED_CHARGING_DISABLED "disabled" +/*@}*/ + ///////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////// /** @name Battery Status Constants