|
| void | notification_storage_init (void) |
| | Initialize storage, discarding all stored notifications.
|
| |
| void | notification_storage_lock (void) |
| | Lock the storage mutex (recursive).
|
| |
| void | notification_storage_unlock (void) |
| | Unlock the storage mutex.
|
| |
| void | notification_storage_store (TimelineItem *notification) |
| | Store a notification.
|
| |
| bool | notification_storage_notification_exists (const Uuid *id) |
| | Check whether a notification is stored, including one marked deleted.
|
| |
| size_t | notification_storage_get_len (const Uuid *uuid) |
| | Get the serialized size of a stored notification.
|
| |
| bool | notification_storage_get (const Uuid *id, TimelineItem *item_out) |
| | Read a notification from storage.
|
| |
| void | notification_storage_set_status (const Uuid *id, uint8_t status) |
| | Set the status of a stored notification.
|
| |
| bool | notification_storage_get_status (const Uuid *id, uint8_t *status) |
| | Get the status of a stored notification.
|
| |
| void | notification_storage_remove (const Uuid *id) |
| | Remove a notification by marking it deleted.
|
| |
| bool | notification_storage_find_ancs_notification_id (uint32_t ancs_uid, Uuid *uuid_out) |
| | Find the most recent notification with an ANCS UID.
|
| |
| bool | notification_storage_find_ancs_notification_by_timestamp (TimelineItem *notification, CommonTimelineItemHeader *header_out) |
| | Find a stored notification identical to a given one.
|
| |
| void | notification_storage_iterate (bool(*iter_callback)(void *data, SerializedTimelineItemHeader *header_id), void *data) |
| | Iterate over the headers of all notifications not marked deleted.
|
| |
| void | notification_storage_iterate_strings_after (time_t item_cutoff, AttributeList *attr_list, size_t buffer_size, bool(*iter_callback)(void *data, const CommonTimelineItemHeader *header, const TimelineItem *item), void *data) |
| | Iterate over all notifications, reading selected string attributes of recent ones.
|
| |
| void | notification_storage_rewrite (void(*iter_callback)(TimelineItem *notification, SerializedTimelineItemHeader *header, void *data), void *data) |
| | Rewrite all notifications through a callback.
|
| |
| void | notification_storage_reset_and_init (void) |
| | Discard all notifications and reset the storage state.
|
| |