-
Notifications
You must be signed in to change notification settings - Fork 2
/
watch_face.c
28 lines (22 loc) · 696 Bytes
/
watch_face.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "watch_face.h"
#include "watch_face_internal.h"
Err WfInitWatchFace(WatchFaceType* watchFace) {
return watchFace->InitWatchFace(&(watchFace->internal));
}
void WfDrawTime(WatchFaceType* watchFace, DateTimeType* dt) {
watchFace->DrawTime(watchFace->internal, dt);
}
void WfGetDataPtr(WatchFaceType* watchFace, void** data, UInt32* size) {
*size = watchFace->GetDataSize();
*data = watchFace->internal;
}
void WfDestroy(WatchFaceType* watchFace) {
watchFace->Free(watchFace->internal);
}
Err WfCreateFromRaw(WatchFaceType* watchFace, void* raw) {
watchFace->internal = raw;
return errNone;
}
UInt32 WfGetPrefix(WatchFaceType* watchFace) {
return watchFace->prefix;
}