summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/complications/totp_face.h
diff options
context:
space:
mode:
Diffstat (limited to 'movement/watch_faces/complications/totp_face.h')
-rw-r--r--movement/watch_faces/complications/totp_face.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/movement/watch_faces/complications/totp_face.h b/movement/watch_faces/complications/totp_face.h
index 1fecb82a..0527627a 100644
--- a/movement/watch_faces/complications/totp_face.h
+++ b/movement/watch_faces/complications/totp_face.h
@@ -3,6 +3,13 @@
#include "movement.h"
+typedef struct {
+ uint32_t timestamp;
+ uint8_t steps;
+ uint32_t current_code;
+
+} totp_state_t;
+
void totp_face_setup(movement_settings_t *settings, void ** context_ptr);
void totp_face_activate(movement_settings_t *settings, void *context);
bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void *context);
@@ -16,4 +23,4 @@ static const watch_face_t totp_face = {
NULL
};
-#endif // TOTP_FACE_H_ \ No newline at end of file
+#endif // TOTP_FACE_H_