github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/wayland/xdg-decoration-unstable-v1-client-protocol.h (about) 1 //go:build linux && !android 2 3 // Code generated by internal/wayland/wl/gen; DO NOT EDIT. 4 // XML file : ./protocols/xdg-decoration-unstable-v1.xml 5 6 // xdg_decoration_unstable_v1 Protocol Copyright: 7 // 8 // Copyright © 2018 Simon Ser 9 // 10 // Permission is hereby granted, free of charge, to any person obtaining a 11 // copy of this software and associated documentation files (the "Software"), 12 // to deal in the Software without restriction, including without limitation 13 // the rights to use, copy, modify, merge, publish, distribute, sublicense, 14 // and/or sell copies of the Software, and to permit persons to whom the 15 // Software is furnished to do so, subject to the following conditions: 16 // 17 // The above copyright notice and this permission notice (including the next 18 // paragraph) shall be included in all copies or substantial portions of the 19 // Software. 20 // 21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 22 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 23 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 24 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 25 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 26 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 // DEALINGS IN THE SOFTWARE. 28 29 #ifndef XDG_DECORATION_UNSTABLE_V_1_CLIENT_PROTOCOL_H 30 #define XDG_DECORATION_UNSTABLE_V_1_CLIENT_PROTOCOL_H 31 #include "wayland-util.h" 32 33 #ifdef __cplusplus 34 extern "C" { 35 #endif 36 37 struct wl_proxy; 38 39 typedef int (*proc_wl_proxy_add_listener)(struct wl_proxy *proxy, void (**implementation)(void), void *data); 40 typedef struct wl_proxy *(*proc_wl_proxy_marshal_flags)(struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, uint32_t flags, ...); 41 typedef uint32_t (*proc_wl_proxy_get_version)(struct wl_proxy *proxy); 42 43 struct xdg_toplevel; 44 struct zxdg_decoration_manager_v1; 45 struct zxdg_toplevel_decoration_v1; 46 47 #ifndef ZXDG_DECORATION_MANAGER_V_1_INTERFACE 48 #define ZXDG_DECORATION_MANAGER_V_1_INTERFACE 49 extern const struct wl_interface zxdg_decoration_manager_v1_interface; 50 #endif 51 #ifndef ZXDG_TOPLEVEL_DECORATION_V_1_INTERFACE 52 #define ZXDG_TOPLEVEL_DECORATION_V_1_INTERFACE 53 extern const struct wl_interface zxdg_toplevel_decoration_v1_interface; 54 #endif 55 56 static inline void gamen_zxdg_decoration_manager_v1_destroy(void *fp1, void *fp2, struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1) { 57 ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) zxdg_decoration_manager_v1, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) zxdg_decoration_manager_v1), 1); 58 } 59 60 static inline struct zxdg_toplevel_decoration_v1 *gamen_zxdg_decoration_manager_v1_get_toplevel_decoration(void *fp1, void *fp2, struct zxdg_decoration_manager_v1 *zxdg_decoration_manager_v1, struct xdg_toplevel *toplevel) { 61 struct wl_proxy *id; 62 id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) zxdg_decoration_manager_v1, 1, &zxdg_toplevel_decoration_v1_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) zxdg_decoration_manager_v1), 0, NULL, toplevel); 63 return (struct zxdg_toplevel_decoration_v1 *) id; 64 } 65 66 struct zxdg_toplevel_decoration_v1_listener { 67 void (*configure)(void *data, struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, uint32_t mode); 68 }; 69 static inline int gamen_zxdg_toplevel_decoration_v1_add_listener(void *fp, struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, const struct zxdg_toplevel_decoration_v1_listener *listener, void *data) { 70 return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) zxdg_toplevel_decoration_v1, (void (**)(void)) listener, data); 71 } 72 73 static inline void gamen_zxdg_toplevel_decoration_v1_destroy(void *fp1, void *fp2, struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1) { 74 ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) zxdg_toplevel_decoration_v1, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) zxdg_toplevel_decoration_v1), 1); 75 } 76 77 static inline void gamen_zxdg_toplevel_decoration_v1_set_mode(void *fp1, void *fp2, struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1, uint32_t mode) { 78 ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) zxdg_toplevel_decoration_v1, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) zxdg_toplevel_decoration_v1), 0, mode); 79 } 80 81 static inline void gamen_zxdg_toplevel_decoration_v1_unset_mode(void *fp1, void *fp2, struct zxdg_toplevel_decoration_v1 *zxdg_toplevel_decoration_v1) { 82 ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) zxdg_toplevel_decoration_v1, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) zxdg_toplevel_decoration_v1), 0); 83 } 84 85 86 #ifdef __cplusplus 87 } 88 #endif 89 90 91 #endif