Global Lender
A Pebble app for finding new and interesting loans on kiva.org
Functions
comm.c File Reference
#include <pebble.h>
#include "misc.h"
#include "comm.h"
#include "data/KivaModel.h"
#include "libs/data-processor.h"
Include dependency graph for comm.c:

Functions

bool comm_pebkitReady ()
 Returns whether the communication channel is ready for sending. More...
 
void comm_sendMsgCstr (const MsgKey msgKey, const char *payload)
 Send data to PebbleKit. More...
 
void comm_getPreferredLoans ()
 Requests PebbleKit to send a list of preferred loans for the lender. More...
 
void comm_tickHandler (struct tm *tick_time, TimeUnits units_changed)
 Callback for TickTimerService. More...
 
void comm_setHandlers (const CommHandlers cmh)
 Set our callback handlers. More...
 
void comm_open ()
 Opens communication to PebbleKit and allocates memory. More...
 
void comm_close ()
 Closes communication and frees memory. More...
 

Function Documentation

void comm_close ( )

Closes communication and frees memory.

void comm_getPreferredLoans ( )

Requests PebbleKit to send a list of preferred loans for the lender.

void comm_open ( )

Opens communication to PebbleKit and allocates memory.

bool comm_pebkitReady ( )

Returns whether the communication channel is ready for sending.

void comm_sendMsgCstr ( const MsgKey  msgKey,
const char *  payload 
)

Send data to PebbleKit.

void comm_setHandlers ( const CommHandlers  cmh)

Set our callback handlers.

void comm_tickHandler ( struct tm *  tick_time,
TimeUnits  units_changed 
)

Callback for TickTimerService.