diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-03 18:44:43 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-11-15 15:36:09 +0000 |
commit | 024627e872d586acaa01153ab74b877473a2246d (patch) | |
tree | 66701696834442a3a5cc431a6295235564cda7f5 /include/wlr | |
parent | f863b93c05a73097ccddce1ed066f3f11bfb1c3e (diff) |
content-type-v1: new protocol implementation
References: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/150
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_content_type_v1.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_content_type_v1.h b/include/wlr/types/wlr_content_type_v1.h new file mode 100644 index 00000000..3de39367 --- /dev/null +++ b/include/wlr/types/wlr_content_type_v1.h @@ -0,0 +1,36 @@ +/* + * 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 + +#ifndef WLR_TYPES_WLR_CONTENT_TYPE_V1_H +#define WLR_TYPES_WLR_CONTENT_TYPE_V1_H + +#include <wayland-server-core.h> +#include "content-type-v1-protocol.h" + +struct wlr_surface; + +struct wlr_content_type_manager_v1 { + struct wl_global *global; + + struct { + struct wl_signal destroy; + } events; + + void *data; + + // private state + + struct wl_listener display_destroy; +}; + +struct wlr_content_type_manager_v1 *wlr_content_type_manager_v1_create( + struct wl_display *display); +enum wp_content_type_v1_type wlr_surface_get_content_type_v1( + struct wlr_content_type_manager_v1 *manager, struct wlr_surface *surface); + +#endif |