void comm_sendMsgCstr(const MsgKey, const char *payload)
Send data to PebbleKit.
Definition: comm.c:402
void comm_getPreferredLoans()
Requests PebbleKit to send a list of preferred loans for the lender.
Definition: comm.c:431
struct CommHandlers CommHandlers
void comm_close()
Closes communication and frees memory.
Definition: comm.c:508
void comm_open()
Opens communication to PebbleKit and allocates memory.
Definition: comm.c:489
void(* UpdateViewDataHandler)(const KivaModel *)
Definition: comm.h:42
void comm_setHandlers(const CommHandlers)
Set our callback handlers.
Definition: comm.c:481
void comm_tickHandler(struct tm *tick_time, TimeUnits units_changed)
Callback for TickTimerService.
Definition: comm.c:453
MsgKey
Definition: comm.h:5
UpdateViewDataHandler updateViewData
Function that Comm calls to notify the View of a data model update.
Definition: comm.h:47
bool comm_pebkitReady()
Returns whether the communication channel is ready for sending.
Definition: comm.c:394
void(* UpdateViewClockHandler)(struct tm *)
Definition: comm.h:38
Definition: KivaModel_Internal.h:31
UpdateViewClockHandler updateViewClock
Function that Comm calls to notify the View of a clock update.
Definition: comm.h:46