]> git.earman.xyz Git - sensor-watch.git/commit
faces/clock: move structure definition
authorMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Sat, 24 Feb 2024 21:40:21 +0000 (18:40 -0300)
committerMatheus Afonso Martins Moreira <matheus.a.m.moreira@gmail.com>
Sun, 25 Feb 2024 18:24:14 +0000 (15:24 -0300)
commit01312c2deb1061aeb04fdceb27b2e16608de487b
treed8cbbe6f95b38af4f2799f1eed13d6f17a2a7179
parent8f040252fd6bfd5c95437a52a07634a19c487086
faces/clock: move structure definition

Instances of the clock state structure
are only passed to the clock face itself
and only via the opaque context pointer.
No other code uses it.

Thus there is no need to expose it in a header file.
So make it an implementation detail of the watch face
by localizing it inside the translation unit.
movement/watch_faces/clock/clock_face.c
movement/watch_faces/clock/clock_face.h