PebbleOS
Loading...
Searching...
No Matches
Typedefs | Functions
imaging.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <kernel/events.h>
#include <pbl/services/imaging_endpoint_types.h>
#include <pbl/util/uuid.h>

Typedefs

typedef void(* ImagingReceivedHandler) (uint8_t token, struct GBitmap *bitmap)
 Called on KernelMain when a requested image has been received.
 
typedef void(* ImagingWillReceiveHandler) (uint8_t token)
 Called before the buffers for an incoming image are allocated.
 
typedef void(* ImagingTransferFailedHandler) (uint8_t token)
 Called when an image transfer is dropped before delivery.
 

Functions

void imaging_register_handler (ImagingImageType image_type, ImagingReceivedHandler handler)
 Register the handler for an image type.
 
void imaging_register_transfer_handlers (ImagingImageType image_type, ImagingWillReceiveHandler will_receive, ImagingTransferFailedHandler transfer_failed)
 Register the transfer lifecycle handlers for an image type.
 
bool imaging_is_type_supported (ImagingImageType image_type)
 Check whether the connected phone can serve an image type.
 
bool imaging_request_album_art (uint8_t token, ImagingFormat format, uint16_t width, uint16_t height, const char *title, const char *artist)
 Request the album art of a track.
 
bool imaging_request_notification_image (uint8_t token, ImagingFormat format, uint16_t width, uint16_t height, const Uuid *item_id)
 Request the image the phone holds for a timeline item.
 
void imaging_protocol_msg_callback (CommSession *session, const uint8_t *msg, size_t length)
 Handle a message received on the image-fetch endpoint.
 
void imaging_handle_comm_session_event (const PebbleCommSessionEvent *event)
 Handle a comm session event.