wlroots/include/wlr/types/wlr_screenshooter.h

30 lines
637 B
C

#ifndef WLR_TYPES_WLR_SCREENSHOOTER_H
#define WLR_TYPES_WLR_SCREENSHOOTER_H
#include <wayland-server.h>
struct wlr_screenshooter {
struct wl_global *wl_global;
struct wl_list screenshots; // wlr_screenshot::link
struct wl_listener display_destroy;
void *data;
};
struct wlr_screenshot {
struct wl_resource *resource;
struct wl_resource *output_resource;
struct wl_list link;
struct wlr_output *output;
struct wlr_screenshooter *screenshooter;
void* data;
};
struct wlr_screenshooter *wlr_screenshooter_create(struct wl_display *display);
void wlr_screenshooter_destroy(struct wlr_screenshooter *screenshooter);
#endif