20 lines
834 B
C
20 lines
834 B
C
#ifndef WATCH_READING_STATE_H
|
|
#define WATCH_READING_STATE_H
|
|
|
|
#include "../../../engine/src/reading.h"
|
|
#include "../../../interpreter/src/significance.h"
|
|
|
|
/* Recomputes today's reading (astro + tarot + interpretation) from
|
|
* `birth`/`gender`, using the watch's current clock: today's UTC date as
|
|
* the tarot seed (same convention as dist/run-engine.sh - see CLAUDE.md's
|
|
* "Build & run") and the current moment for the transit snapshot. Safe
|
|
* to call again later (e.g. the day rolled over while the app stayed
|
|
* open) - overwrites the previous result in place. */
|
|
void reading_state_recompute(const BirthData *birth, Gender gender);
|
|
|
|
/* Valid only after at least one reading_state_recompute() call. */
|
|
const DailyReading *reading_state_get_reading(void);
|
|
const DailyInterpretation *reading_state_get_interpretation(void);
|
|
|
|
#endif
|