mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 13:52:38 +03:00
7e0849b44e
* View: Coalesce view model allocations * SceneManager: Coalesce AppScene allocations * BufferStream: Coalesce Buffer allocations * ProtocolDict: Coalesce dict allocations * DigitalSignal: Coalesce buffer allocations Co-authored-by: あく <alleteam@gmail.com>
23 lines
400 B
C
23 lines
400 B
C
/**
|
|
* @file scene_manager_i.h
|
|
* GUI: internal SceneManager API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "scene_manager.h"
|
|
#include <m-array.h>
|
|
|
|
ARRAY_DEF(SceneManagerIdStack, uint32_t, M_DEFAULT_OPLIST);
|
|
|
|
typedef struct {
|
|
uint32_t state;
|
|
} AppScene;
|
|
|
|
struct SceneManager {
|
|
SceneManagerIdStack_t scene_id_stack;
|
|
const SceneManagerHandlers* scene_handlers;
|
|
void* context;
|
|
AppScene scene[];
|
|
};
|