PebbleOS
Loading...
Searching...
No Matches
Functions
notif_db.h File Reference
#include <system/status_codes.h>
#include <pbl/services/timeline/item.h>

Functions

void notif_db_init (void)
 Initialize the notification database.
 
status_t notif_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len)
 Insert or replace a record in the notification database.
 
int notif_db_get_len (const uint8_t *key, int key_len)
 Get the length of a record in the notification database.
 
status_t notif_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_out_len)
 Read a record from the notification database.
 
status_t notif_db_delete (const uint8_t *key, int key_len)
 Delete a record from the notification database.
 
status_t notif_db_flush (void)
 Delete all records of the notification database.