PebbleOS
Loading...
Searching...
No Matches
Functions
Endpoint

Messages sent by the watch on the BlobDB sync endpoint. More...

Functions

BlobDBToken blob_db_endpoint_send_write (BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len)
 Send a WRITE message for a record.
 
BlobDBToken blob_db_endpoint_send_writeback (BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len)
 Send a WRITEBACK message for a record.
 
void blob_db_endpoint_send_sync_done (BlobDBId db_id)
 Send a SYNC_DONE message for a database.
 

Detailed Description

Messages sent by the watch on the BlobDB sync endpoint.

Messages go to the system session; when no session is connected they are dropped.

Function Documentation

◆ blob_db_endpoint_send_sync_done()

void blob_db_endpoint_send_sync_done ( BlobDBId  db_id)

Send a SYNC_DONE message for a database.

Parameters
db_idDatabase.

◆ blob_db_endpoint_send_write()

BlobDBToken blob_db_endpoint_send_write ( BlobDBId  db_id,
time_t  last_updated,
const void *  key,
int  key_len,
const void *  val,
int  val_len 
)

Send a WRITE message for a record.

Parameters
db_idDatabase.
last_updatedModification time of the record.
keyKey data.
key_lenLength of key in bytes.
valValue data.
val_lenLength of val in bytes.
Returns
Token of the message.

◆ blob_db_endpoint_send_writeback()

BlobDBToken blob_db_endpoint_send_writeback ( BlobDBId  db_id,
time_t  last_updated,
const void *  key,
int  key_len,
const void *  val,
int  val_len 
)

Send a WRITEBACK message for a record.

Parameters
db_idDatabase.
last_updatedModification time of the record.
keyKey data.
key_lenLength of key in bytes.
valValue data.
val_lenLength of val in bytes.
Returns
Token of the message.