diff options
author | emersion <contact@emersion.fr> | 2017-10-24 21:56:18 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-24 21:56:18 +0200 |
commit | e521b0404bb1a50326404a47bdb510f8fc46898e (patch) | |
tree | cfcce404dad382e991cb130843d0cea5a56e54cd /include/wlr | |
parent | 71ee40e8f105395cc8eccb8cadf5c72323311bc0 (diff) |
Add server-decoration skeleton
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_server_decoration.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_server_decoration.h b/include/wlr/types/wlr_server_decoration.h new file mode 100644 index 00000000..11c2511c --- /dev/null +++ b/include/wlr/types/wlr_server_decoration.h @@ -0,0 +1,29 @@ +#ifndef WLR_TYPES_WLR_SERVER_DECORATION_H +#define WLR_TYPES_WLR_SERVER_DECORATION_H + +#include <wayland-server.h> + +struct wlr_server_decoration_manager { + struct wl_global *wl_global; + struct wl_list decorations; // wlr_server_decoration::link + + void *data; +}; + +struct wlr_server_decoration { + struct wl_resource *resource; + struct wl_list link; + + struct { + struct wl_signal destroy; + } events; + + void *data; +}; + +struct wlr_server_decoration_manager *wlr_server_decoration_manager_create( + struct wl_display *display); +void wlr_server_decoration_manager_destroy( + struct wlr_server_decoration_manager *manager); + +#endif |