2021-09-28 12:40:39 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2022-10-13 21:09:37 +03:00
|
|
|
|
2023-08-23 15:26:47 +03:00
|
|
|
typedef enum {
|
2024-08-04 12:54:02 +03:00
|
|
|
FavoriteAppLeftShort,
|
2023-08-23 15:26:47 +03:00
|
|
|
FavoriteAppLeftLong,
|
|
|
|
FavoriteAppRightShort,
|
|
|
|
FavoriteAppRightLong,
|
|
|
|
FavoriteAppNumber,
|
|
|
|
} FavoriteAppShortcut;
|
|
|
|
|
|
|
|
typedef enum {
|
2024-08-04 12:54:02 +03:00
|
|
|
DummyAppLeft,
|
2023-08-23 15:26:47 +03:00
|
|
|
DummyAppRight,
|
|
|
|
DummyAppDown,
|
|
|
|
DummyAppOk,
|
|
|
|
DummyAppNumber,
|
|
|
|
} DummyAppShortcut;
|
|
|
|
|
2021-10-26 21:34:31 +03:00
|
|
|
typedef struct {
|
2024-08-04 12:54:02 +03:00
|
|
|
char name_or_path[128];
|
2022-10-13 21:09:37 +03:00
|
|
|
} FavoriteApp;
|
|
|
|
|
|
|
|
typedef struct {
|
2022-04-14 15:20:41 +03:00
|
|
|
uint32_t auto_lock_delay_ms;
|
2022-09-19 16:03:42 +03:00
|
|
|
uint8_t dummy_mode;
|
2023-08-10 19:10:15 +03:00
|
|
|
uint8_t display_clock;
|
2023-08-23 15:26:47 +03:00
|
|
|
FavoriteApp favorite_apps[FavoriteAppNumber];
|
|
|
|
FavoriteApp dummy_apps[DummyAppNumber];
|
2021-09-28 12:40:39 +03:00
|
|
|
} DesktopSettings;
|
2024-08-04 12:54:02 +03:00
|
|
|
|
|
|
|
void desktop_settings_load(DesktopSettings* settings);
|
|
|
|
void desktop_settings_save(const DesktopSettings* settings);
|