- Created `tactility-headless` to support ESP32 firmwares that don't require graphics - `tactility` subproject now contains both PC and ESP32 code (to avoid having to split up `tactility` and `tactility-headless` into separate projects, which would result in a very complex dependency tree) - `tactility` subproject is now defined as component for ESP32 and as regular module for PC - Improvements for dispatcher - Added `project-structure.puml` to docs - `Gui` service now depends on `Loader` service instead of the reverse - Added `statusbar_updater` service for updating Wi-Fi and SD card icons
39 lines
822 B
C
39 lines
822 B
C
#pragma once
|
|
|
|
#include "tactility_core.h"
|
|
|
|
#define TT_SDCARD_MOUNT_POINT "/sdcard"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void* (*SdcardMount)(const char* mount_path);
|
|
typedef void (*SdcardUnmount)(void* context);
|
|
typedef bool (*SdcardIsMounted)(void* context);
|
|
|
|
typedef enum {
|
|
SdcardStateMounted,
|
|
SdcardStateUnmounted,
|
|
SdcardStateError,
|
|
} SdcardState;
|
|
|
|
typedef enum {
|
|
SdcardMountBehaviourAtBoot, /** Only mount at boot */
|
|
SdcardMountBehaviourAnytime /** Mount/dismount any time */
|
|
} SdcardMountBehaviour;
|
|
|
|
typedef struct {
|
|
SdcardMount mount;
|
|
SdcardUnmount unmount;
|
|
SdcardIsMounted is_mounted;
|
|
SdcardMountBehaviour mount_behaviour;
|
|
} SdCard;
|
|
|
|
bool tt_sdcard_mount(const SdCard* sdcard);
|
|
SdcardState tt_sdcard_get_state();
|
|
bool tt_sdcard_unmount();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |