mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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:
parent
82f9cd5310
commit
6bb8bb1cb7
2 changed files with 35 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue