app_scene.h 266 B

123456789101112
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. typedef struct {
  5. uint32_t id;
  6. uint32_t state;
  7. const void (*on_enter)(void* context);
  8. const bool (*on_event)(void* context, uint32_t event);
  9. const void (*on_exit)(void* context);
  10. } AppScene;