2021-09-28 09:40:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2021-10-26 18:34:31 +00:00
|
|
|
#define DESKTOP_SETTINGS_VER (1)
|
|
|
|
#define PIN_MAX_LENGTH 12
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint8_t length;
|
|
|
|
uint8_t data[PIN_MAX_LENGTH];
|
|
|
|
} PinCode;
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
uint8_t version;
|
|
|
|
uint16_t favorite;
|
2021-10-26 18:34:31 +00:00
|
|
|
|
|
|
|
PinCode pincode;
|
|
|
|
bool locked;
|
2021-09-28 09:40:39 +00:00
|
|
|
} DesktopSettings;
|
|
|
|
|
|
|
|
bool desktop_settings_load(DesktopSettings* desktop_settings);
|
|
|
|
|
|
|
|
bool desktop_settings_save(DesktopSettings* desktop_settings);
|