Files
le-mystere-professeur-zacus/hardware/ui_freenove_allinone/include/runtime/runtime_services.h
T
Clément SAILLANT 620b27de6d refactor: consolidate ui_freenove_allinone to hardware root level
- Move hardware/firmware/ui_freenove_allinone → hardware/ui_freenove_allinone
- All UI hardware now at hardware/ root level
- Single coherent hardware structure complete

Structure now:
- hardware/firmware/       ← Code source
- hardware/ui_freenove_allinone/ ← UI at root level
- hardware/projects/       ← Secondary projects
- hardware/shared/libs/    ← Shared libraries
- hardware/{bom,enclosure,wiring}/ ← Reference docs
2026-03-01 19:10:27 +01:00

50 lines
1.5 KiB
C++

// runtime_services.h - dependency container shared by coordinator/router.
#pragma once
#include <Arduino.h>
#include "audio_manager.h"
#include "button_manager.h"
#include "camera_manager.h"
#include "hardware_manager.h"
#include "media_manager.h"
#include "network_manager.h"
#include "runtime/runtime_config_types.h"
#include "scenario_manager.h"
#include "storage_manager.h"
#include "touch_manager.h"
#include "ui_manager.h"
namespace runtime::resource {
class ResourceCoordinator;
}
struct RuntimeServices;
using RuntimeTickHook = void (*)(uint32_t now_ms, RuntimeServices* services);
using RuntimeSerialDispatchHook = void (*)(const char* command_line,
uint32_t now_ms,
RuntimeServices* services);
struct RuntimeServices {
AudioManager* audio = nullptr;
ScenarioManager* scenario = nullptr;
UiManager* ui = nullptr;
StorageManager* storage = nullptr;
ButtonManager* buttons = nullptr;
TouchManager* touch = nullptr;
NetworkManager* network = nullptr;
HardwareManager* hardware = nullptr;
CameraManager* camera = nullptr;
MediaManager* media = nullptr;
runtime::resource::ResourceCoordinator* resource_coordinator = nullptr;
RuntimeNetworkConfig* network_cfg = nullptr;
RuntimeHardwareConfig* hardware_cfg = nullptr;
CameraManager::Config* camera_cfg = nullptr;
MediaManager::Config* media_cfg = nullptr;
RuntimeTickHook tick_runtime = nullptr;
RuntimeSerialDispatchHook dispatch_serial = nullptr;
};