mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-07-12 06:39:00 +00:00
d320b6511d
* Unify PlatformIO and ESP-IDF around a shared UI/runtime shell
23 lines
479 B
C++
23 lines
479 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "ui/app_catalog.h"
|
|
|
|
namespace ui::startup_ui_shell
|
|
{
|
|
|
|
struct Hooks
|
|
{
|
|
AppCatalog apps{};
|
|
bool (*lock_ui)(uint32_t timeout_ms) = nullptr;
|
|
void (*unlock_ui)() = nullptr;
|
|
uint32_t lock_timeout_ms = 1000;
|
|
};
|
|
|
|
bool prepareBootUi(const Hooks& hooks, bool waking_from_sleep);
|
|
bool initializeMenuSkeleton(const Hooks& hooks);
|
|
bool finalizeStartup(const Hooks& hooks, bool waking_from_sleep);
|
|
|
|
} // namespace ui::startup_ui_shell
|