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