PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
notification_image.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <pbl/util/uuid.h>

Macros

#define NOTIFICATION_IMAGE_SUPPORTED   0
 Whether the platform supports notification images.
 

Functions

void notification_image_service_init (void)
 Initialize the service.
 
bool notification_image_claim (const Uuid *item_id, uint8_t *token_out)
 Claim the slot for an item.
 
const struct GBitmap * notification_image_lock (const Uuid *item_id)
 Lock the slot and get the image of an item.
 
void notification_image_unlock (void)
 Unlock the slot locked by notification_image_lock().
 
bool notification_image_is_pending (const Uuid *item_id)
 Check whether the image of an item is still being fetched.
 
bool notification_image_store (uint8_t token, struct GBitmap *bitmap)
 Store a delivered image.
 
void notification_image_clear (void)
 Release the slot and free the stored image.