Loading...
Searching...
No Matches
time_store.h
Go to the documentation of this file.
1
9#pragma once
10#include <pebble.h>
11#include "clock/time_config.h"
12
17
24void time_store_init(TimeConfig cfg, const struct tm *seed);
25
36
38void time_store_subscribe(void (*cb)(void));
39
41const struct tm *time_store_tm(void);
42
void time_store_init(TimeConfig cfg, const struct tm *seed)
Start the store with its rules. Pass seed = NULL to start from the current time.
Definition time_store.c:118
void time_store_subscribe(void(*cb)(void))
Hand it the function to call when the time changes (the screen redraw).
Definition time_store.c:113
void time_store_reconfigure(TimeConfig cfg)
Re-apply the rules (e.g. the time format changed). Swaps the ticker to match. Rules that run the same...
Definition time_store.c:147
const struct tm * time_store_tm(void)
The time we hold right now.
Definition time_store.c:178
The rules a face hands the time store, built from its own settings so the store names no SETTING_*.
Definition time_config.h:29
The rules a face hands the time store, what a reconfigure runs of them, and the check for whether two...