PebbleOS
Loading...
Searching...
No Matches
Data Structures | Functions
ios_notif_pref_db.h File Reference
#include "api.h"
#include <pbl/services/timeline/attribute.h>
#include <pbl/services/timeline/item.h>
#include <system/status_codes.h>
#include <stdbool.h>

Data Structures

struct  iOSNotifPrefs
 Notification preferences of an iOS app. More...
 

Functions

iOSNotifPrefs * ios_notif_pref_db_get_prefs (const uint8_t *app_id, int length)
 Get the preferences of an iOS app.
 
void ios_notif_pref_db_free_prefs (iOSNotifPrefs *prefs)
 Free preferences returned by ios_notif_pref_db_get_prefs().
 
status_t ios_notif_pref_db_store_prefs (const uint8_t *app_id, int length, AttributeList *attr_list, TimelineItemActionGroup *action_group)
 Add or update the preferences of an iOS app.
 
void ios_notif_pref_db_init (void)
 Initialize the iOS notification preferences database.
 
status_t ios_notif_pref_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len)
 Insert or replace a record in the iOS notification preferences database.
 
int ios_notif_pref_db_get_len (const uint8_t *key, int key_len)
 Get the length of a record in the iOS notification preferences database.
 
status_t ios_notif_pref_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_out_len)
 Read a record from the iOS notification preferences database.
 
status_t ios_notif_pref_db_delete (const uint8_t *key, int key_len)
 Delete a record from the iOS notification preferences database.
 
status_t ios_notif_pref_db_flush (void)
 Delete all records of the iOS notification preferences database.
 
status_t ios_notif_pref_db_compact (void)
 Compact the settings file backing the iOS notification preferences database.
 
status_t ios_notif_pref_db_is_dirty (bool *is_dirty_out)
 Check whether the iOS notification preferences database holds unsynced records.
 
BlobDBDirtyItem * ios_notif_pref_db_get_dirty_list (void)
 Build the list of unsynced records of the iOS notification preferences database.
 
status_t ios_notif_pref_db_mark_synced (const uint8_t *key, int key_len)
 Mark a record of the iOS notification preferences database as synced.