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-05-22 18:38:05 +02:00
|
|
|
#ifndef WLR_TYPES_WLR_EXPORT_DMABUF_V1_H
|
|
|
|
#define WLR_TYPES_WLR_EXPORT_DMABUF_V1_H
|
|
|
|
|
2018-09-18 11:48:04 +02:00
|
|
|
#include <stdbool.h>
|
2019-07-27 10:53:54 +02:00
|
|
|
#include <wayland-server-core.h>
|
2018-05-31 13:33:27 +02:00
|
|
|
#include <wlr/render/dmabuf.h>
|
2018-05-22 18:38:05 +02:00
|
|
|
|
2018-12-06 19:07:02 +01:00
|
|
|
struct wlr_export_dmabuf_manager_v1 {
|
|
|
|
struct wl_global *global;
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list frames; // wlr_export_dmabuf_frame_v1.link
|
2018-12-06 19:07:02 +01:00
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
struct wl_signal destroy;
|
|
|
|
} events;
|
|
|
|
};
|
2018-05-22 18:38:05 +02:00
|
|
|
|
|
|
|
struct wlr_export_dmabuf_frame_v1 {
|
|
|
|
struct wl_resource *resource;
|
|
|
|
struct wlr_export_dmabuf_manager_v1 *manager;
|
2022-05-24 18:46:59 +02:00
|
|
|
struct wl_list link; // wlr_export_dmabuf_manager_v1.frames
|
2018-05-22 18:38:05 +02:00
|
|
|
|
|
|
|
struct wlr_output *output;
|
2018-05-23 10:02:19 +02:00
|
|
|
|
2018-09-18 11:48:04 +02:00
|
|
|
bool cursor_locked;
|
|
|
|
|
2020-11-04 14:38:56 +01:00
|
|
|
struct wl_listener output_commit;
|
2023-05-10 16:31:48 +02:00
|
|
|
struct wl_listener output_destroy;
|
2018-05-22 18:38:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
struct wlr_export_dmabuf_manager_v1 *wlr_export_dmabuf_manager_v1_create(
|
|
|
|
struct wl_display *display);
|
|
|
|
|
|
|
|
#endif
|