5 #define EXTERNC extern "C"
13 EXTERNC struct v3_frame_buffer_spec {
16 uint8_t bytes_per_pixel;
17 uint8_t bits_per_channel;
18 uint8_t red_offset; // byte offset in pixel to get to red channel
19 uint8_t green_offset; // byte offset in pixel to get to green channel
20 uint8_t blue_offset; // byte offset in pixel to get to blue channel
23 EXTERNC int v3_get_fb_spec(int fd, struct v3_frame_buffer_spec *spec);
24 EXTERNC int v3_have_update(int fd);
25 EXTERNC int v3_get_fb_data(int fd, struct v3_frame_buffer_spec *spec, void *data);
28 EXTERNC int v3_send_key(int fd, uint8_t scan_code);
29 EXTERNC int v3_send_mouse(int fd,
30 uint8_t sx, uint8_t dx, // dx sign and dx
31 uint8_t sy, uint8_t dy, // dy sign and dy
32 uint8_t buttons); // button state