Loading...
Searching...
No Matches
store_fetch.c File Reference

The fetch timing the polling stores share, in one copy every store links against. More...

Functions

void store_fetch_fire (void *data)
 The one-shot fetch's timer callback. Clears the timer and asks the phone.
void store_fetch_stop (StoreFetch *fetch)
 Cancel the one-shot fetch, if one is armed.
void store_fetch_arm (StoreFetch *fetch)
 Arm the one-shot fetch after first_ms, unless one is already waiting.
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.
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 launch when polling is on, so the store is not blank while the first deadline is coming.
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.

Detailed Description

The fetch timing the polling stores share, in one copy every store links against.