From 35f970025133dc5ad627936a3cdeacb37b532072 Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 8 Sep 2017 18:09:09 +0200 Subject: First attempt to implement screenshooter --- include/wlr/interfaces/wlr_output.h | 1 + include/wlr/types/wlr_output.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h index 7d2821e0..2fd306d7 100644 --- a/include/wlr/interfaces/wlr_output.h +++ b/include/wlr/interfaces/wlr_output.h @@ -19,6 +19,7 @@ struct wlr_output_impl { void (*set_gamma)(struct wlr_output *output, uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b); uint16_t (*get_gamma_size)(struct wlr_output *output); + void (*read_pixels)(struct wlr_output *_output, void *out_data); }; void wlr_output_init(struct wlr_output *output, const struct wlr_output_impl *impl); diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 1fa6ad9e..509e1bcb 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -70,5 +70,6 @@ void wlr_output_swap_buffers(struct wlr_output *output); void wlr_output_set_gamma(struct wlr_output *output, uint16_t size, uint16_t *r, uint16_t *g, uint16_t *b); uint16_t wlr_output_get_gamma_size(struct wlr_output *output); +void wlr_output_read_pixels(struct wlr_output *output, void *out_data); #endif -- cgit v1.2.3