PebbleOS
Loading...
Searching...
No Matches
Functions
settings_blob_db.h File Reference
#include "api.h"

Functions

void settings_blob_db_init (void)
 Initialize the settings database.
 
status_t settings_blob_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len)
 Insert or replace a record in the settings database.
 
int settings_blob_db_get_len (const uint8_t *key, int key_len)
 Get the length of a record in the settings database.
 
status_t settings_blob_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_len)
 Read a record from the settings database.
 
status_t settings_blob_db_delete (const uint8_t *key, int key_len)
 Delete a record from the settings database.
 
BlobDBDirtyItem * settings_blob_db_get_dirty_list (void)
 Build the list of records of the settings database not yet synced to the phone.
 
status_t settings_blob_db_mark_synced (const uint8_t *key, int key_len)
 Mark a record of the settings database as synced.
 
status_t settings_blob_db_is_dirty (bool *is_dirty_out)
 Check whether the settings database holds records not yet synced to the phone.
 
status_t settings_blob_db_flush (void)
 Delete all records of the settings database.
 
status_t settings_blob_db_mark_all_dirty (void)
 Mark all whitelisted settings as dirty.
 
status_t settings_blob_db_insert_with_timestamp (const uint8_t *key, int key_len, const uint8_t *val, int val_len, time_t timestamp)
 Insert or update a setting unless the watch copy is newer.
 
bool settings_blob_db_phone_supports_sync (void)
 Check whether the connected phone supports settings sync.