diff options
author | Joey Castillo <jose.castillo@gmail.com> | 2021-10-04 09:51:49 -0400 |
---|---|---|
committer | Joey Castillo <jose.castillo@gmail.com> | 2021-10-04 09:52:07 -0400 |
commit | c1ec7734c910d1eef74ebc3647dc084eeb43bbcf (patch) | |
tree | f0d791675d1e3300e5e9f790781900aa3c7a93fd /launcher/launcher.h | |
parent | 51e2f0d77d95a6e5c3b1426fbc7874c3a59a5e00 (diff) | |
download | Sensor-Watch-c1ec7734c910d1eef74ebc3647dc084eeb43bbcf.tar.gz Sensor-Watch-c1ec7734c910d1eef74ebc3647dc084eeb43bbcf.tar.bz2 Sensor-Watch-c1ec7734c910d1eef74ebc3647dc084eeb43bbcf.zip |
launcher: let widgets prevent sleep
Diffstat (limited to 'launcher/launcher.h')
-rw-r--r-- | launcher/launcher.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/launcher/launcher.h b/launcher/launcher.h index d6ebbc2c..97c56545 100644 --- a/launcher/launcher.h +++ b/launcher/launcher.h @@ -49,7 +49,7 @@ typedef union { typedef void (*launcher_widget_setup)(LauncherSettings *settings, void ** context_ptr); typedef void (*launcher_widget_activate)(LauncherSettings *settings, void *context); -typedef void (*launcher_widget_loop)(LauncherEvent event, LauncherSettings *settings, void *context); +typedef bool (*launcher_widget_loop)(LauncherEvent event, LauncherSettings *settings, void *context); typedef void (*launcher_widget_resign)(LauncherSettings *settings, void *context); typedef struct WatchWidget { @@ -65,6 +65,7 @@ typedef struct LauncherState { // transient properties int16_t current_widget; + int16_t next_widget; bool widget_changed; // LED stuff |