Auto_poweroff option moved from desktop to power.

Add settings for power service (load|save).
This commit is contained in:
Dmitry422
2025-01-14 02:01:54 +07:00
parent 1a95757a75
commit c73495767c
16 changed files with 375 additions and 146 deletions

View File

@@ -2,7 +2,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <power/power_service/power_settings.h>
#include <core/pubsub.h>
#ifdef __cplusplus
@@ -102,6 +102,12 @@ void power_enable_low_battery_level_notification(Power* power, bool enable);
*/
void power_trigger_ui_update(Power* power);
// get settings from service to app
void power_api_get_settings(Power* instance, PowerSettings* settings);
// set settings from app to service
void power_api_set_settings(Power* instance, const PowerSettings* settings);
#ifdef __cplusplus
}
#endif