#ifndef BLINKY_SETTINGS_MODE_EVENT_H_ #define BLINKY_SETTINGS_MODE_EVENT_H_ #include #include #ifdef __cplusplus extern "C" { #endif struct settings_mode_event { struct app_event_header header; bool active; }; APP_EVENT_TYPE_DECLARE(settings_mode_event); static inline void submit_settings_mode_event(bool active) { struct settings_mode_event *event = new_settings_mode_event(); event->active = active; APP_EVENT_SUBMIT(event); } #ifdef __cplusplus } #endif #endif /* BLINKY_SETTINGS_MODE_EVENT_H_ */