PebbleOS
Loading...
Searching...
No Matches
Functions
watch_app_prefs_db.h File Reference
#include <apps/system/send_text/prefs.h>
#include <apps/system/reminders/reminder_prefs.h>
#include <pbl/services/weather/weather_service_private.h>
#include <system/status_codes.h>

Functions

SerializedSendTextPrefs * watch_app_prefs_get_send_text (void)
 Read the Send Text app preferences.
 
SerializedWeatherAppPrefs * watch_app_prefs_get_weather (void)
 Read the Weather app location ordering.
 
SerializedReminderAppPrefs * watch_app_prefs_get_reminder (void)
 Read the Reminders app preferences.
 
void watch_app_prefs_destroy_weather (SerializedWeatherAppPrefs *prefs)
 Free preferences returned by watch_app_prefs_get_weather().
 
void watch_app_prefs_db_init (void)
 Initialize the watch app preferences database.
 
status_t watch_app_prefs_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len)
 Insert or replace a record in the watch app preferences database.
 
int watch_app_prefs_db_get_len (const uint8_t *key, int key_len)
 Get the length of a record in the watch app preferences database.
 
status_t watch_app_prefs_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_out_len)
 Read a record from the watch app preferences database.
 
status_t watch_app_prefs_db_delete (const uint8_t *key, int key_len)
 Delete a record from the watch app preferences database.
 
status_t watch_app_prefs_db_flush (void)
 Delete all records of the watch app preferences database.
 
status_t watch_app_prefs_db_compact (void)
 Compact the settings file backing the watch app preferences database.