Simpler infrared last settings API

This commit is contained in:
Willy-JL
2024-02-02 00:49:46 +00:00
parent 9fbb17f4b2
commit c2a9ceaccb
4 changed files with 48 additions and 58 deletions

View File

@@ -8,9 +8,13 @@ typedef struct {
bool ext_5v;
bool ext_out;
bool auto_detect;
bool _otg_was_enabled;
} InfraredLastSettings;
InfraredLastSettings* infrared_last_settings_alloc(void);
void infrared_last_settings_free(InfraredLastSettings* instance);
void infrared_last_settings_load(InfraredLastSettings* instance);
bool infrared_last_settings_save(InfraredLastSettings* instance);
bool infrared_last_settings_save(InfraredLastSettings* instance);
void infrared_last_settings_apply(InfraredLastSettings* instance);
void infrared_last_settings_reset(InfraredLastSettings* instance);