PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
Screenshot protocol

Pebble Protocol endpoint that sends the system framebuffer to the phone. More...

Functions

void screenshot_protocol_msg_callback (struct pbl_pp_session *session, const uint8_t *data, size_t length)
 Handle a screenshot request from the client.
 

Detailed Description

Pebble Protocol endpoint that sends the system framebuffer to the phone.

Function Documentation

◆ screenshot_protocol_msg_callback()

void screenshot_protocol_msg_callback ( struct pbl_pp_session *  session,
const uint8_t *  data,
size_t  length 
)

Handle a screenshot request from the client.

Freezes the compositor and streams the framebuffer back in chunks. Requests received while a screenshot is in progress, or with an unknown command, are answered with an error.

Parameters
sessionSession the request came from.
dataMessage payload.
lengthLength of data in bytes.