summaryrefslogtreecommitdiff
path: root/src/c/fastforge.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-13 07:43:01 +0300
committerPaul Buetow <paul@buetow.org>2026-04-13 07:43:01 +0300
commitb0944ba9e2ae3d86b888e15050218fb11980d434 (patch)
treefc6f7496d56b7aedc68c317eb54acb6a0af3f093 /src/c/fastforge.h
parent42940748027816af9d4bca7aafcf3170c2a25c1d (diff)
m2: split Pebble-free types into separate header
Diffstat (limited to 'src/c/fastforge.h')
-rw-r--r--src/c/fastforge.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/c/fastforge.h b/src/c/fastforge.h
index c7b370d..6c24e75 100644
--- a/src/c/fastforge.h
+++ b/src/c/fastforge.h
@@ -1,26 +1,9 @@
#ifndef FASTFORGE_H
#define FASTFORGE_H
-#include <pebble.h>
-
-/* Persisted fast record shared by the running state and history list. */
-typedef struct {
- time_t start_time;
- time_t end_time; // 0 = currently running
- uint16_t target_minutes;
- char note[32];
- uint8_t max_stage_reached; // 0=none, 1=12h, 2=18h, 3=24h+
-} FastEntry;
+#include "fastforge_types.h"
-/* Derived streak counters rebuilt from completed fast end dates. */
-typedef struct {
- uint16_t current_streak;
- uint16_t longest_streak;
- time_t last_completed_fast_end;
-} StreakData;
-
-#define MAX_FASTS 64
-#define DEFAULT_TARGET_MINUTES (16 * 60)
+#include <pebble.h>
#define KEY_HISTORY_COUNT 1
#define KEY_HISTORY_DATA 2