Pebble App Framework
v7.1.1
How It Works
CLI
Device API
Phone API
C Coverage
TS Coverage
GitHub
Theme
Pebble App Framework: Device API
Toggle main menu visibility
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
24
void
time_store_init
(
TimeConfig
cfg,
const
struct
tm *seed);
25
35
void
time_store_reconfigure
(
TimeConfig
cfg);
36
38
void
time_store_subscribe
(
void
(*cb)(
void
));
39
41
const
struct
tm *
time_store_tm
(
void
);
42
time_store_init
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
time_store_subscribe
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
time_store_reconfigure
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
time_store_tm
const struct tm * time_store_tm(void)
The time we hold right now.
Definition
time_store.c:178
TimeConfig
The rules a face hands the time store, built from its own settings so the store names no SETTING_*.
Definition
time_config.h:29
time_config.h
The rules a face hands the time store, what a reconfigure runs of them, and the check for whether two...
src
c
pebble
io
stores
time_store.h
Generated by
1.18.0