2017-09-07 17:31:30 +02:00
|
|
|
#ifndef _WLR_SCREENSHOOTER_H
|
|
|
|
#define _WLR_SCREENSHOOTER_H
|
|
|
|
#include <wayland-server.h>
|
|
|
|
|
|
|
|
struct wlr_screenshooter {
|
|
|
|
struct wl_global *wl_global;
|
2017-10-08 02:11:56 +02:00
|
|
|
struct wlr_renderer *renderer;
|
2017-09-07 17:31:30 +02:00
|
|
|
|
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_screenshot {
|
|
|
|
struct wl_resource *resource;
|
2017-10-08 02:11:56 +02:00
|
|
|
struct wl_resource *output_resource;
|
|
|
|
|
|
|
|
struct wlr_output *output;
|
|
|
|
struct wlr_screenshooter *screenshooter;
|
2017-09-07 17:31:30 +02:00
|
|
|
|
|
|
|
void* data;
|
|
|
|
};
|
|
|
|
|
2017-10-08 02:11:56 +02:00
|
|
|
struct wlr_screenshooter *wlr_screenshooter_create(struct wl_display *display,
|
|
|
|
struct wlr_renderer *renderer);
|
2017-09-07 17:31:30 +02:00
|
|
|
void wlr_screenshooter_destroy(struct wlr_screenshooter *screenshooter);
|
|
|
|
|
|
|
|
#endif
|