Loading...
Searching...
No Matches
time_config.h
Go to the documentation of this file.
1
11#pragma once
12#include <stdbool.h>
13
18
28typedef struct
29{
35 bool live;
37 bool beats;
38 bool hourly;
40
41// a new field changes what the tickers run, so time_config_same_tickers has to read it too.
42// this stops the build until it does
43_Static_assert(sizeof(TimeConfig) == 4, "a new TimeConfig field also goes into time_config_same_tickers");
44
57
71
84bool time_config_reconfigure(TimeConfig *running, TimeConfig cfg, bool pinned);
85
bool time_config_reconfigure(TimeConfig *running, TimeConfig cfg, bool pinned)
What a reconfigure does to the rules running, in the order the time store needs.
Definition time_config.c:60
TimeConfig time_config_reconfigured(TimeConfig cfg, bool pinned)
The rules a reconfigure runs, which are the face's own with live held off on a store init started fro...
Definition time_config.c:54
bool time_config_same_tickers(TimeConfig a, TimeConfig b)
Whether two sets of rules run the same tickers.
Definition time_config.c:49
The rules a face hands the time store, built from its own settings so the store names no SETTING_*.
Definition time_config.h:29
bool minute_tick
Run the minute tick (clock date and most readouts).
Definition time_config.h:36
bool beats
Also run the 86.4 second .beats timer for a live .beats readout.
Definition time_config.h:37
bool hourly
With the minute tick off, still wake at the top of each hour, such as for an hourly buzz.
Definition time_config.h:38
bool live
Definition time_config.h:35