|
PebbleOS
|
Data Structures | |
| struct | BlobDBSyncSession |
| Sync session, writing the dirty records of a database back to the phone one at a time. More... | |
Enumerations | |
| enum | BlobDBSyncSessionState { BlobDBSyncSessionStateIdle = 0 , BlobDBSyncSessionStateWaitingForAck = 1 } |
| State of a sync session. More... | |
| enum | BlobDBSyncSessionType { BlobDBSyncSessionTypeDB , BlobDBSyncSessionTypeRecord } |
| Scope of a sync session. More... | |
Functions | |
| status_t | blob_db_sync_db (BlobDBId db_id) |
| Start writing back the dirty records of a database. | |
| status_t | blob_db_sync_record (BlobDBId db_id, const void *key, int key_len, time_t last_updated) |
| Start writing a single record to the phone. | |
| BlobDBSyncSession * | blob_db_sync_get_session_for_id (BlobDBId db_id) |
| Get the whole-database sync session of a database. | |
| BlobDBSyncSession * | blob_db_sync_get_session_for_token (BlobDBToken token) |
| Get the sync session waiting for a response with a given token. | |
| void | blob_db_sync_next (BlobDBSyncSession *session) |
| Mark the current record as synced and send the next one. | |
| void | blob_db_sync_cancel (BlobDBSyncSession *session) |
| Cancel a sync and free the session. | |