|
PebbleOS
|
Data Structures | |
| struct | SerializedContact |
| Serialized contact, the value of a contacts database record. More... | |
Functions | |
| int | contacts_db_get_serialized_contact (const Uuid *uuid, SerializedContact **contact_out) |
| Read the serialized record of a contact. | |
| void | contacts_db_free_serialized_contact (SerializedContact *contact) |
| Free a record returned by contacts_db_get_serialized_contact(). | |
| void | contacts_db_init (void) |
| Initialize the contacts database. | |
| status_t | contacts_db_insert (const uint8_t *key, int key_len, const uint8_t *val, int val_len) |
| Insert or replace a record in the contacts database. | |
| int | contacts_db_get_len (const uint8_t *key, int key_len) |
| Get the length of a record in the contacts database. | |
| status_t | contacts_db_read (const uint8_t *key, int key_len, uint8_t *val_out, int val_out_len) |
| Read a record from the contacts database. | |
| status_t | contacts_db_delete (const uint8_t *key, int key_len) |
| Delete a record from the contacts database. | |
| status_t | contacts_db_flush (void) |
| Delete all records of the contacts database. | |
| status_t | contacts_db_compact (void) |
| Compact the settings file backing the contacts database. | |