void store_fetch_stop(StoreFetch *fetch)
Cancel the one-shot fetch, if one is armed.
Definition store_fetch.c:16
void store_fetch_reconfigure(StoreFetch *fetch, int poll_min, bool live, time_t now, bool empty)
What a store's reconfigure does with its polling.
Definition store_fetch.c:52
void store_fetch_fire(void *data)
The one-shot fetch's timer callback. Clears the timer and asks the phone.
Definition store_fetch.c:9
void store_fetch_start(StoreFetch *fetch, int poll_min, bool live, time_t now)
What a store's init does with its polling. Takes the interval, then arms one fetch shortly after laun...
Definition store_fetch.c:41
void store_fetch_arm(StoreFetch *fetch)
Arm the one-shot fetch after first_ms, unless one is already waiting.
Definition store_fetch.c:25
void store_fetch_turn(StoreFetch *fetch, time_t now)
The store's turn on the face's cadence. Asks the phone when the deadline has come round.
Definition store_fetch.c:33
Wall-clock deadlines for the stores that poll the phone.
One store's polling state, its catch-up timer, and how it asks the phone.
Definition store_fetch.h:22
AppTimer * timer
The one-shot fetch, or NULL when none is armed.
Definition store_fetch.h:24
uint32_t first_ms
How long after launch or a catch-up call the one-shot fetch goes.
Definition store_fetch.h:26
StorePoll poll
The interval, whether the store is live, and when it is next due.
Definition store_fetch.h:23
void(*) request(void)
Asks the phone for this store's data.
Definition store_fetch.h:25
One store's polling: its interval, whether it polls at all, and when it is next due.
Definition store_poll.h:92