2018-07-13 14:40:56 +02:00
|
|
|
/*
|
|
|
|
* This an unstable interface of wlroots. No guarantees are made regarding the
|
|
|
|
* future consistency of this API.
|
|
|
|
*/
|
|
|
|
#ifndef WLR_USE_UNSTABLE
|
|
|
|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
|
|
|
|
#endif
|
|
|
|
|
2018-06-19 20:07:29 +02:00
|
|
|
#ifndef WLR_TYPES_WLR_SCREENCOPY_V1_H
|
|
|
|
#define WLR_TYPES_WLR_SCREENCOPY_V1_H
|
|
|
|
|
2018-09-17 15:07:08 +02:00
|
|
|
#include <stdbool.h>
|
2018-06-19 20:07:29 +02:00
|
|
|
#include <wayland-server.h>
|
2018-08-31 19:48:38 +02:00
|
|
|
#include <wlr/types/wlr_box.h>
|
2018-06-19 20:07:29 +02:00
|
|
|
|
|
|
|
struct wlr_screencopy_manager_v1 {
|
|
|
|
struct wl_global *global;
|
|
|
|
struct wl_list resources; // wl_resource
|
|
|
|
struct wl_list frames; // wlr_screencopy_frame_v1::link
|
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
|
2018-08-26 23:23:12 +02:00
|
|
|
struct {
|
|
|
|
struct wl_signal destroy;
|
|
|
|
} events;
|
|
|
|
|
2018-06-19 20:07:29 +02:00
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_screencopy_frame_v1 {
|
|
|
|
struct wl_resource *resource;
|
|
|
|
struct wlr_screencopy_manager_v1 *manager;
|
|
|
|
struct wl_list link;
|
|
|
|
|
2018-06-23 19:41:40 +02:00
|
|
|
enum wl_shm_format format;
|
|
|
|
struct wlr_box box;
|
|
|
|
int stride;
|
2018-06-19 20:07:29 +02:00
|
|
|
|
2018-09-17 15:07:08 +02:00
|
|
|
bool overlay_cursor, cursor_locked;
|
|
|
|
|
2018-06-19 20:07:29 +02:00
|
|
|
struct wl_shm_buffer *buffer;
|
2018-06-23 20:06:10 +02:00
|
|
|
struct wl_listener buffer_destroy;
|
2018-06-19 20:07:29 +02:00
|
|
|
|
|
|
|
struct wlr_output *output;
|
|
|
|
struct wl_listener output_swap_buffers;
|
|
|
|
|
|
|
|
void *data;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_screencopy_manager_v1 *wlr_screencopy_manager_v1_create(
|
|
|
|
struct wl_display *display);
|
|
|
|
void wlr_screencopy_manager_v1_destroy(
|
|
|
|
struct wlr_screencopy_manager_v1 *screencopy);
|
|
|
|
|
|
|
|
#endif
|