PebbleOS
Loading...
Searching...
No Matches
Functions
Screenshot protocol

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

Functions

void screenshot_protocol_msg_callback (CommSession *session, const uint8_t *data, unsigned int 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 ( CommSession *  session,
const uint8_t *  data,
unsigned int  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.