aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-09-08 18:09:09 +0200
committeremersion <contact@emersion.fr>2017-10-07 16:22:02 +0200
commit35f970025133dc5ad627936a3cdeacb37b532072 (patch)
treecb413db2542cf87eb96c4c9b6923729cd956717a /include
parent1c8b72e0cd63c4965bc04e7390d3165a9e4c08ce (diff)
First attempt to implement screenshooter
Diffstat (limited to 'include')
-rw-r--r--include/wlr/interfaces/wlr_output.h1
-rw-r--r--include/wlr/types/wlr_output.h1
2 files changed, 2 insertions, 0 deletions
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