ext-image-capture-source-v1: add start/stop hooks

This allows the source to change its behavior when actively
captured.
This commit is contained in:
Simon Ser 2024-07-07 22:14:53 +02:00
parent 82f9cd5310
commit 6bb8bb1cb7
2 changed files with 35 additions and 0 deletions

View file

@ -18,6 +18,9 @@ struct wlr_renderer;
struct wlr_seat;
struct wlr_ext_image_capture_source_v1_interface {
// TODO: drop with_cursors flag
void (*start)(struct wlr_ext_image_capture_source_v1 *source, bool with_cursors);
void (*stop)(struct wlr_ext_image_capture_source_v1 *source);
void (*schedule_frame)(struct wlr_ext_image_capture_source_v1 *source);
void (*copy_frame)(struct wlr_ext_image_capture_source_v1 *source,
struct wlr_ext_image_copy_capture_frame_v1 *dst_frame,