github.com/rajveermalviya/gamen@v0.1.2-0.20220930195403-9be15877c1aa/internal/wayland/wayland-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/wayland.xml
     5  
     6  // wayland Protocol Copyright:
     7  // 
     8  // Copyright © 2008-2011 Kristian Høgsberg
     9  // Copyright © 2010-2011 Intel Corporation
    10  // Copyright © 2012-2013 Collabora, Ltd.
    11  // 
    12  // Permission is hereby granted, free of charge, to any person
    13  // obtaining a copy of this software and associated documentation files
    14  // (the "Software"), to deal in the Software without restriction,
    15  // including without limitation the rights to use, copy, modify, merge,
    16  // publish, distribute, sublicense, and/or sell copies of the Software,
    17  // and to permit persons to whom the Software is furnished to do so,
    18  // subject to the following conditions:
    19  // 
    20  // The above copyright notice and this permission notice (including the
    21  // next paragraph) shall be included in all copies or substantial
    22  // portions of the Software.
    23  // 
    24  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    25  // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    26  // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    27  // NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
    28  // BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
    29  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
    30  // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    31  // SOFTWARE.
    32  
    33  #ifndef WAYLAND_CLIENT_PROTOCOL_H
    34  #define WAYLAND_CLIENT_PROTOCOL_H
    35  #include "wayland-util.h"
    36  
    37  #ifdef  __cplusplus
    38  extern "C" {
    39  #endif
    40  
    41  struct wl_proxy;
    42  
    43  typedef int (*proc_wl_proxy_add_listener)(struct wl_proxy *proxy, void (**implementation)(void), void *data);
    44  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, ...);
    45  typedef uint32_t (*proc_wl_proxy_get_version)(struct wl_proxy *proxy);
    46  
    47  struct wl_buffer;
    48  struct wl_callback;
    49  struct wl_compositor;
    50  struct wl_data_device;
    51  struct wl_data_device_manager;
    52  struct wl_data_offer;
    53  struct wl_data_source;
    54  struct wl_display;
    55  struct wl_keyboard;
    56  struct wl_output;
    57  struct wl_pointer;
    58  struct wl_region;
    59  struct wl_registry;
    60  struct wl_seat;
    61  struct wl_shell;
    62  struct wl_shell_surface;
    63  struct wl_shm;
    64  struct wl_shm_pool;
    65  struct wl_subcompositor;
    66  struct wl_subsurface;
    67  struct wl_surface;
    68  struct wl_touch;
    69  
    70  #ifndef WL_DISPLAY_INTERFACE
    71  #define WL_DISPLAY_INTERFACE
    72  extern const struct wl_interface wl_display_interface;
    73  #endif
    74  #ifndef WL_REGISTRY_INTERFACE
    75  #define WL_REGISTRY_INTERFACE
    76  extern const struct wl_interface wl_registry_interface;
    77  #endif
    78  #ifndef WL_CALLBACK_INTERFACE
    79  #define WL_CALLBACK_INTERFACE
    80  extern const struct wl_interface wl_callback_interface;
    81  #endif
    82  #ifndef WL_COMPOSITOR_INTERFACE
    83  #define WL_COMPOSITOR_INTERFACE
    84  extern const struct wl_interface wl_compositor_interface;
    85  #endif
    86  #ifndef WL_SHM_POOL_INTERFACE
    87  #define WL_SHM_POOL_INTERFACE
    88  extern const struct wl_interface wl_shm_pool_interface;
    89  #endif
    90  #ifndef WL_SHM_INTERFACE
    91  #define WL_SHM_INTERFACE
    92  extern const struct wl_interface wl_shm_interface;
    93  #endif
    94  #ifndef WL_BUFFER_INTERFACE
    95  #define WL_BUFFER_INTERFACE
    96  extern const struct wl_interface wl_buffer_interface;
    97  #endif
    98  #ifndef WL_DATA_OFFER_INTERFACE
    99  #define WL_DATA_OFFER_INTERFACE
   100  extern const struct wl_interface wl_data_offer_interface;
   101  #endif
   102  #ifndef WL_DATA_SOURCE_INTERFACE
   103  #define WL_DATA_SOURCE_INTERFACE
   104  extern const struct wl_interface wl_data_source_interface;
   105  #endif
   106  #ifndef WL_DATA_DEVICE_INTERFACE
   107  #define WL_DATA_DEVICE_INTERFACE
   108  extern const struct wl_interface wl_data_device_interface;
   109  #endif
   110  #ifndef WL_DATA_DEVICE_MANAGER_INTERFACE
   111  #define WL_DATA_DEVICE_MANAGER_INTERFACE
   112  extern const struct wl_interface wl_data_device_manager_interface;
   113  #endif
   114  #ifndef WL_SHELL_INTERFACE
   115  #define WL_SHELL_INTERFACE
   116  extern const struct wl_interface wl_shell_interface;
   117  #endif
   118  #ifndef WL_SHELL_SURFACE_INTERFACE
   119  #define WL_SHELL_SURFACE_INTERFACE
   120  extern const struct wl_interface wl_shell_surface_interface;
   121  #endif
   122  #ifndef WL_SURFACE_INTERFACE
   123  #define WL_SURFACE_INTERFACE
   124  extern const struct wl_interface wl_surface_interface;
   125  #endif
   126  #ifndef WL_SEAT_INTERFACE
   127  #define WL_SEAT_INTERFACE
   128  extern const struct wl_interface wl_seat_interface;
   129  #endif
   130  #ifndef WL_POINTER_INTERFACE
   131  #define WL_POINTER_INTERFACE
   132  extern const struct wl_interface wl_pointer_interface;
   133  #endif
   134  #ifndef WL_KEYBOARD_INTERFACE
   135  #define WL_KEYBOARD_INTERFACE
   136  extern const struct wl_interface wl_keyboard_interface;
   137  #endif
   138  #ifndef WL_TOUCH_INTERFACE
   139  #define WL_TOUCH_INTERFACE
   140  extern const struct wl_interface wl_touch_interface;
   141  #endif
   142  #ifndef WL_OUTPUT_INTERFACE
   143  #define WL_OUTPUT_INTERFACE
   144  extern const struct wl_interface wl_output_interface;
   145  #endif
   146  #ifndef WL_REGION_INTERFACE
   147  #define WL_REGION_INTERFACE
   148  extern const struct wl_interface wl_region_interface;
   149  #endif
   150  #ifndef WL_SUBCOMPOSITOR_INTERFACE
   151  #define WL_SUBCOMPOSITOR_INTERFACE
   152  extern const struct wl_interface wl_subcompositor_interface;
   153  #endif
   154  #ifndef WL_SUBSURFACE_INTERFACE
   155  #define WL_SUBSURFACE_INTERFACE
   156  extern const struct wl_interface wl_subsurface_interface;
   157  #endif
   158  
   159  struct wl_display_listener {
   160  	void (*error)(void *data, struct wl_display *wl_display, void *object_id, uint32_t code, const char *message);
   161  	void (*delete_id)(void *data, struct wl_display *wl_display, uint32_t id);
   162  };
   163  static inline int gamen_wl_display_add_listener(void *fp, struct wl_display *wl_display, const struct wl_display_listener *listener, void *data) {
   164  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_display, (void (**)(void)) listener, data);
   165  }
   166  
   167  static inline struct wl_callback *gamen_wl_display_sync(void *fp1, void *fp2, struct wl_display *wl_display) {
   168  	struct wl_proxy *callback;
   169  	callback = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_display, 0, &wl_callback_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_display), 0, NULL);
   170  	return (struct wl_callback *) callback;
   171  }
   172  
   173  static inline struct wl_registry *gamen_wl_display_get_registry(void *fp1, void *fp2, struct wl_display *wl_display) {
   174  	struct wl_proxy *registry;
   175  	registry = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_display, 1, &wl_registry_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_display), 0, NULL);
   176  	return (struct wl_registry *) registry;
   177  }
   178  
   179  struct wl_registry_listener {
   180  	void (*global)(void *data, struct wl_registry *wl_registry, uint32_t name, const char *interface, uint32_t version);
   181  	void (*global_remove)(void *data, struct wl_registry *wl_registry, uint32_t name);
   182  };
   183  static inline int gamen_wl_registry_add_listener(void *fp, struct wl_registry *wl_registry, const struct wl_registry_listener *listener, void *data) {
   184  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_registry, (void (**)(void)) listener, data);
   185  }
   186  
   187  static inline void *gamen_wl_registry_bind(void *fp, struct wl_registry *wl_registry, uint32_t name, const struct wl_interface *interface, uint32_t version) {
   188  	struct wl_proxy *id;
   189  	id = ((proc_wl_proxy_marshal_flags)fp)((struct wl_proxy *) wl_registry, 0, interface, version, 0, name, interface->name, version, NULL);
   190  	return (void *) id;
   191  }
   192  
   193  struct wl_callback_listener {
   194  	void (*done)(void *data, struct wl_callback *wl_callback, uint32_t callback_data);
   195  };
   196  static inline int gamen_wl_callback_add_listener(void *fp, struct wl_callback *wl_callback, const struct wl_callback_listener *listener, void *data) {
   197  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_callback, (void (**)(void)) listener, data);
   198  }
   199  
   200  static inline struct wl_surface *gamen_wl_compositor_create_surface(void *fp1, void *fp2, struct wl_compositor *wl_compositor) {
   201  	struct wl_proxy *id;
   202  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_compositor, 0, &wl_surface_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_compositor), 0, NULL);
   203  	return (struct wl_surface *) id;
   204  }
   205  
   206  static inline struct wl_region *gamen_wl_compositor_create_region(void *fp1, void *fp2, struct wl_compositor *wl_compositor) {
   207  	struct wl_proxy *id;
   208  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_compositor, 1, &wl_region_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_compositor), 0, NULL);
   209  	return (struct wl_region *) id;
   210  }
   211  
   212  static inline struct wl_buffer *gamen_wl_shm_pool_create_buffer(void *fp1, void *fp2, struct wl_shm_pool *wl_shm_pool, int32_t offset, int32_t width, int32_t height, int32_t stride, uint32_t format) {
   213  	struct wl_proxy *id;
   214  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shm_pool, 0, &wl_buffer_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shm_pool), 0, NULL, offset, width, height, stride, format);
   215  	return (struct wl_buffer *) id;
   216  }
   217  
   218  static inline void gamen_wl_shm_pool_destroy(void *fp1, void *fp2, struct wl_shm_pool *wl_shm_pool) {
   219  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shm_pool, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shm_pool), 1);
   220  }
   221  
   222  static inline void gamen_wl_shm_pool_resize(void *fp1, void *fp2, struct wl_shm_pool *wl_shm_pool, int32_t size) {
   223  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shm_pool, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shm_pool), 0, size);
   224  }
   225  
   226  struct wl_shm_listener {
   227  	void (*format)(void *data, struct wl_shm *wl_shm, uint32_t format);
   228  };
   229  static inline int gamen_wl_shm_add_listener(void *fp, struct wl_shm *wl_shm, const struct wl_shm_listener *listener, void *data) {
   230  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_shm, (void (**)(void)) listener, data);
   231  }
   232  
   233  static inline struct wl_shm_pool *gamen_wl_shm_create_pool(void *fp1, void *fp2, struct wl_shm *wl_shm, int32_t fd, int32_t size) {
   234  	struct wl_proxy *id;
   235  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shm, 0, &wl_shm_pool_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shm), 0, NULL, fd, size);
   236  	return (struct wl_shm_pool *) id;
   237  }
   238  
   239  struct wl_buffer_listener {
   240  	void (*release)(void *data, struct wl_buffer *wl_buffer);
   241  };
   242  static inline int gamen_wl_buffer_add_listener(void *fp, struct wl_buffer *wl_buffer, const struct wl_buffer_listener *listener, void *data) {
   243  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_buffer, (void (**)(void)) listener, data);
   244  }
   245  
   246  static inline void gamen_wl_buffer_destroy(void *fp1, void *fp2, struct wl_buffer *wl_buffer) {
   247  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_buffer, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_buffer), 1);
   248  }
   249  
   250  struct wl_data_offer_listener {
   251  	void (*offer)(void *data, struct wl_data_offer *wl_data_offer, const char *mime_type);
   252  	void (*source_actions)(void *data, struct wl_data_offer *wl_data_offer, uint32_t source_actions);
   253  	void (*action)(void *data, struct wl_data_offer *wl_data_offer, uint32_t dnd_action);
   254  };
   255  static inline int gamen_wl_data_offer_add_listener(void *fp, struct wl_data_offer *wl_data_offer, const struct wl_data_offer_listener *listener, void *data) {
   256  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_data_offer, (void (**)(void)) listener, data);
   257  }
   258  
   259  static inline void gamen_wl_data_offer_accept(void *fp1, void *fp2, struct wl_data_offer *wl_data_offer, uint32_t serial, const char *mime_type) {
   260  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_offer, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_offer), 0, serial, mime_type);
   261  }
   262  
   263  static inline void gamen_wl_data_offer_receive(void *fp1, void *fp2, struct wl_data_offer *wl_data_offer, const char *mime_type, int32_t fd) {
   264  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_offer, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_offer), 0, mime_type, fd);
   265  }
   266  
   267  static inline void gamen_wl_data_offer_destroy(void *fp1, void *fp2, struct wl_data_offer *wl_data_offer) {
   268  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_offer, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_offer), 1);
   269  }
   270  
   271  static inline void gamen_wl_data_offer_finish(void *fp1, void *fp2, struct wl_data_offer *wl_data_offer) {
   272  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_offer, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_offer), 0);
   273  }
   274  
   275  static inline void gamen_wl_data_offer_set_actions(void *fp1, void *fp2, struct wl_data_offer *wl_data_offer, uint32_t dnd_actions, uint32_t preferred_action) {
   276  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_offer, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_offer), 0, dnd_actions, preferred_action);
   277  }
   278  
   279  struct wl_data_source_listener {
   280  	void (*target)(void *data, struct wl_data_source *wl_data_source, const char *mime_type);
   281  	void (*send)(void *data, struct wl_data_source *wl_data_source, const char *mime_type, int32_t fd);
   282  	void (*cancelled)(void *data, struct wl_data_source *wl_data_source);
   283  	void (*dnd_drop_performed)(void *data, struct wl_data_source *wl_data_source);
   284  	void (*dnd_finished)(void *data, struct wl_data_source *wl_data_source);
   285  	void (*action)(void *data, struct wl_data_source *wl_data_source, uint32_t dnd_action);
   286  };
   287  static inline int gamen_wl_data_source_add_listener(void *fp, struct wl_data_source *wl_data_source, const struct wl_data_source_listener *listener, void *data) {
   288  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_data_source, (void (**)(void)) listener, data);
   289  }
   290  
   291  static inline void gamen_wl_data_source_offer(void *fp1, void *fp2, struct wl_data_source *wl_data_source, const char *mime_type) {
   292  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_source, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_source), 0, mime_type);
   293  }
   294  
   295  static inline void gamen_wl_data_source_destroy(void *fp1, void *fp2, struct wl_data_source *wl_data_source) {
   296  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_source, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_source), 1);
   297  }
   298  
   299  static inline void gamen_wl_data_source_set_actions(void *fp1, void *fp2, struct wl_data_source *wl_data_source, uint32_t dnd_actions) {
   300  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_source, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_source), 0, dnd_actions);
   301  }
   302  
   303  struct wl_data_device_listener {
   304  	void (*data_offer)(void *data, struct wl_data_device *wl_data_device, struct wl_data_offer *id);
   305  	void (*enter)(void *data, struct wl_data_device *wl_data_device, uint32_t serial, struct wl_surface *surface, wl_fixed_t x, wl_fixed_t y, struct wl_data_offer *id);
   306  	void (*leave)(void *data, struct wl_data_device *wl_data_device);
   307  	void (*motion)(void *data, struct wl_data_device *wl_data_device, uint32_t time, wl_fixed_t x, wl_fixed_t y);
   308  	void (*drop)(void *data, struct wl_data_device *wl_data_device);
   309  	void (*selection)(void *data, struct wl_data_device *wl_data_device, struct wl_data_offer *id);
   310  };
   311  static inline int gamen_wl_data_device_add_listener(void *fp, struct wl_data_device *wl_data_device, const struct wl_data_device_listener *listener, void *data) {
   312  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_data_device, (void (**)(void)) listener, data);
   313  }
   314  
   315  static inline void gamen_wl_data_device_start_drag(void *fp1, void *fp2, struct wl_data_device *wl_data_device, struct wl_data_source *source, struct wl_surface *origin, struct wl_surface *icon, uint32_t serial) {
   316  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_device, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_device), 0, source, origin, icon, serial);
   317  }
   318  
   319  static inline void gamen_wl_data_device_set_selection(void *fp1, void *fp2, struct wl_data_device *wl_data_device, struct wl_data_source *source, uint32_t serial) {
   320  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_device, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_device), 0, source, serial);
   321  }
   322  
   323  static inline void gamen_wl_data_device_release(void *fp1, void *fp2, struct wl_data_device *wl_data_device) {
   324  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_device, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_device), 1);
   325  }
   326  
   327  static inline struct wl_data_source *gamen_wl_data_device_manager_create_data_source(void *fp1, void *fp2, struct wl_data_device_manager *wl_data_device_manager) {
   328  	struct wl_proxy *id;
   329  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_device_manager, 0, &wl_data_source_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_device_manager), 0, NULL);
   330  	return (struct wl_data_source *) id;
   331  }
   332  
   333  static inline struct wl_data_device *gamen_wl_data_device_manager_get_data_device(void *fp1, void *fp2, struct wl_data_device_manager *wl_data_device_manager, struct wl_seat *seat) {
   334  	struct wl_proxy *id;
   335  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_data_device_manager, 1, &wl_data_device_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_data_device_manager), 0, NULL, seat);
   336  	return (struct wl_data_device *) id;
   337  }
   338  
   339  static inline struct wl_shell_surface *gamen_wl_shell_get_shell_surface(void *fp1, void *fp2, struct wl_shell *wl_shell, struct wl_surface *surface) {
   340  	struct wl_proxy *id;
   341  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell, 0, &wl_shell_surface_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell), 0, NULL, surface);
   342  	return (struct wl_shell_surface *) id;
   343  }
   344  
   345  struct wl_shell_surface_listener {
   346  	void (*ping)(void *data, struct wl_shell_surface *wl_shell_surface, uint32_t serial);
   347  	void (*configure)(void *data, struct wl_shell_surface *wl_shell_surface, uint32_t edges, int32_t width, int32_t height);
   348  	void (*popup_done)(void *data, struct wl_shell_surface *wl_shell_surface);
   349  };
   350  static inline int gamen_wl_shell_surface_add_listener(void *fp, struct wl_shell_surface *wl_shell_surface, const struct wl_shell_surface_listener *listener, void *data) {
   351  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_shell_surface, (void (**)(void)) listener, data);
   352  }
   353  
   354  static inline void gamen_wl_shell_surface_pong(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, uint32_t serial) {
   355  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, serial);
   356  }
   357  
   358  static inline void gamen_wl_shell_surface_move(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, struct wl_seat *seat, uint32_t serial) {
   359  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, seat, serial);
   360  }
   361  
   362  static inline void gamen_wl_shell_surface_resize(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, struct wl_seat *seat, uint32_t serial, uint32_t edges) {
   363  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, seat, serial, edges);
   364  }
   365  
   366  static inline void gamen_wl_shell_surface_set_toplevel(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface) {
   367  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0);
   368  }
   369  
   370  static inline void gamen_wl_shell_surface_set_transient(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, struct wl_surface *parent, int32_t x, int32_t y, uint32_t flags) {
   371  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, parent, x, y, flags);
   372  }
   373  
   374  static inline void gamen_wl_shell_surface_set_fullscreen(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, uint32_t method, uint32_t framerate, struct wl_output *output) {
   375  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 5, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, method, framerate, output);
   376  }
   377  
   378  static inline void gamen_wl_shell_surface_set_popup(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, struct wl_seat *seat, uint32_t serial, struct wl_surface *parent, int32_t x, int32_t y, uint32_t flags) {
   379  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 6, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, seat, serial, parent, x, y, flags);
   380  }
   381  
   382  static inline void gamen_wl_shell_surface_set_maximized(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, struct wl_output *output) {
   383  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 7, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, output);
   384  }
   385  
   386  static inline void gamen_wl_shell_surface_set_title(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, const char *title) {
   387  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 8, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, title);
   388  }
   389  
   390  static inline void gamen_wl_shell_surface_set_class(void *fp1, void *fp2, struct wl_shell_surface *wl_shell_surface, const char *class_) {
   391  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_shell_surface, 9, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_shell_surface), 0, class_);
   392  }
   393  
   394  struct wl_surface_listener {
   395  	void (*enter)(void *data, struct wl_surface *wl_surface, struct wl_output *output);
   396  	void (*leave)(void *data, struct wl_surface *wl_surface, struct wl_output *output);
   397  };
   398  static inline int gamen_wl_surface_add_listener(void *fp, struct wl_surface *wl_surface, const struct wl_surface_listener *listener, void *data) {
   399  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_surface, (void (**)(void)) listener, data);
   400  }
   401  
   402  static inline void gamen_wl_surface_destroy(void *fp1, void *fp2, struct wl_surface *wl_surface) {
   403  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 1);
   404  }
   405  
   406  static inline void gamen_wl_surface_attach(void *fp1, void *fp2, struct wl_surface *wl_surface, struct wl_buffer *buffer, int32_t x, int32_t y) {
   407  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, buffer, x, y);
   408  }
   409  
   410  static inline void gamen_wl_surface_damage(void *fp1, void *fp2, struct wl_surface *wl_surface, int32_t x, int32_t y, int32_t width, int32_t height) {
   411  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, x, y, width, height);
   412  }
   413  
   414  static inline struct wl_callback *gamen_wl_surface_frame(void *fp1, void *fp2, struct wl_surface *wl_surface) {
   415  	struct wl_proxy *callback;
   416  	callback = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 3, &wl_callback_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, NULL);
   417  	return (struct wl_callback *) callback;
   418  }
   419  
   420  static inline void gamen_wl_surface_set_opaque_region(void *fp1, void *fp2, struct wl_surface *wl_surface, struct wl_region *region) {
   421  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, region);
   422  }
   423  
   424  static inline void gamen_wl_surface_set_input_region(void *fp1, void *fp2, struct wl_surface *wl_surface, struct wl_region *region) {
   425  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 5, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, region);
   426  }
   427  
   428  static inline void gamen_wl_surface_commit(void *fp1, void *fp2, struct wl_surface *wl_surface) {
   429  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 6, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0);
   430  }
   431  
   432  static inline void gamen_wl_surface_set_buffer_transform(void *fp1, void *fp2, struct wl_surface *wl_surface, int32_t transform) {
   433  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 7, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, transform);
   434  }
   435  
   436  static inline void gamen_wl_surface_set_buffer_scale(void *fp1, void *fp2, struct wl_surface *wl_surface, int32_t scale) {
   437  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 8, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, scale);
   438  }
   439  
   440  static inline void gamen_wl_surface_damage_buffer(void *fp1, void *fp2, struct wl_surface *wl_surface, int32_t x, int32_t y, int32_t width, int32_t height) {
   441  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 9, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, x, y, width, height);
   442  }
   443  
   444  static inline void gamen_wl_surface_offset(void *fp1, void *fp2, struct wl_surface *wl_surface, int32_t x, int32_t y) {
   445  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_surface, 10, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_surface), 0, x, y);
   446  }
   447  
   448  struct wl_seat_listener {
   449  	void (*capabilities)(void *data, struct wl_seat *wl_seat, uint32_t capabilities);
   450  	void (*name)(void *data, struct wl_seat *wl_seat, const char *name);
   451  };
   452  static inline int gamen_wl_seat_add_listener(void *fp, struct wl_seat *wl_seat, const struct wl_seat_listener *listener, void *data) {
   453  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_seat, (void (**)(void)) listener, data);
   454  }
   455  
   456  static inline struct wl_pointer *gamen_wl_seat_get_pointer(void *fp1, void *fp2, struct wl_seat *wl_seat) {
   457  	struct wl_proxy *id;
   458  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_seat, 0, &wl_pointer_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_seat), 0, NULL);
   459  	return (struct wl_pointer *) id;
   460  }
   461  
   462  static inline struct wl_keyboard *gamen_wl_seat_get_keyboard(void *fp1, void *fp2, struct wl_seat *wl_seat) {
   463  	struct wl_proxy *id;
   464  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_seat, 1, &wl_keyboard_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_seat), 0, NULL);
   465  	return (struct wl_keyboard *) id;
   466  }
   467  
   468  static inline struct wl_touch *gamen_wl_seat_get_touch(void *fp1, void *fp2, struct wl_seat *wl_seat) {
   469  	struct wl_proxy *id;
   470  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_seat, 2, &wl_touch_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_seat), 0, NULL);
   471  	return (struct wl_touch *) id;
   472  }
   473  
   474  static inline void gamen_wl_seat_release(void *fp1, void *fp2, struct wl_seat *wl_seat) {
   475  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_seat, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_seat), 1);
   476  }
   477  
   478  struct wl_pointer_listener {
   479  	void (*enter)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface, wl_fixed_t surface_x, wl_fixed_t surface_y);
   480  	void (*leave)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface);
   481  	void (*motion)(void *data, struct wl_pointer *wl_pointer, uint32_t time, wl_fixed_t surface_x, wl_fixed_t surface_y);
   482  	void (*button)(void *data, struct wl_pointer *wl_pointer, uint32_t serial, uint32_t time, uint32_t button, uint32_t state);
   483  	void (*axis)(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis, wl_fixed_t value);
   484  	void (*frame)(void *data, struct wl_pointer *wl_pointer);
   485  	void (*axis_source)(void *data, struct wl_pointer *wl_pointer, uint32_t axis_source);
   486  	void (*axis_stop)(void *data, struct wl_pointer *wl_pointer, uint32_t time, uint32_t axis);
   487  	void (*axis_discrete)(void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t discrete);
   488  	void (*axis_value120)(void *data, struct wl_pointer *wl_pointer, uint32_t axis, int32_t value120);
   489  };
   490  static inline int gamen_wl_pointer_add_listener(void *fp, struct wl_pointer *wl_pointer, const struct wl_pointer_listener *listener, void *data) {
   491  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_pointer, (void (**)(void)) listener, data);
   492  }
   493  
   494  static inline void gamen_wl_pointer_set_cursor(void *fp1, void *fp2, struct wl_pointer *wl_pointer, uint32_t serial, struct wl_surface *surface, int32_t hotspot_x, int32_t hotspot_y) {
   495  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_pointer, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_pointer), 0, serial, surface, hotspot_x, hotspot_y);
   496  }
   497  
   498  static inline void gamen_wl_pointer_release(void *fp1, void *fp2, struct wl_pointer *wl_pointer) {
   499  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_pointer, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_pointer), 1);
   500  }
   501  
   502  struct wl_keyboard_listener {
   503  	void (*keymap)(void *data, struct wl_keyboard *wl_keyboard, uint32_t format, int32_t fd, uint32_t size);
   504  	void (*enter)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface, struct wl_array *keys);
   505  	void (*leave)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, struct wl_surface *surface);
   506  	void (*key)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t time, uint32_t key, uint32_t state);
   507  	void (*modifiers)(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial, uint32_t mods_depressed, uint32_t mods_latched, uint32_t mods_locked, uint32_t group);
   508  	void (*repeat_info)(void *data, struct wl_keyboard *wl_keyboard, int32_t rate, int32_t delay);
   509  };
   510  static inline int gamen_wl_keyboard_add_listener(void *fp, struct wl_keyboard *wl_keyboard, const struct wl_keyboard_listener *listener, void *data) {
   511  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_keyboard, (void (**)(void)) listener, data);
   512  }
   513  
   514  static inline void gamen_wl_keyboard_release(void *fp1, void *fp2, struct wl_keyboard *wl_keyboard) {
   515  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_keyboard, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_keyboard), 1);
   516  }
   517  
   518  struct wl_touch_listener {
   519  	void (*down)(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, struct wl_surface *surface, int32_t id, wl_fixed_t x, wl_fixed_t y);
   520  	void (*up)(void *data, struct wl_touch *wl_touch, uint32_t serial, uint32_t time, int32_t id);
   521  	void (*motion)(void *data, struct wl_touch *wl_touch, uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y);
   522  	void (*frame)(void *data, struct wl_touch *wl_touch);
   523  	void (*cancel)(void *data, struct wl_touch *wl_touch);
   524  	void (*shape)(void *data, struct wl_touch *wl_touch, int32_t id, wl_fixed_t major, wl_fixed_t minor);
   525  	void (*orientation)(void *data, struct wl_touch *wl_touch, int32_t id, wl_fixed_t orientation);
   526  };
   527  static inline int gamen_wl_touch_add_listener(void *fp, struct wl_touch *wl_touch, const struct wl_touch_listener *listener, void *data) {
   528  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_touch, (void (**)(void)) listener, data);
   529  }
   530  
   531  static inline void gamen_wl_touch_release(void *fp1, void *fp2, struct wl_touch *wl_touch) {
   532  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_touch, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_touch), 1);
   533  }
   534  
   535  struct wl_output_listener {
   536  	void (*geometry)(void *data, struct wl_output *wl_output, int32_t x, int32_t y, int32_t physical_width, int32_t physical_height, int32_t subpixel, const char *make, const char *model, int32_t transform);
   537  	void (*mode)(void *data, struct wl_output *wl_output, uint32_t flags, int32_t width, int32_t height, int32_t refresh);
   538  	void (*done)(void *data, struct wl_output *wl_output);
   539  	void (*scale)(void *data, struct wl_output *wl_output, int32_t factor);
   540  	void (*name)(void *data, struct wl_output *wl_output, const char *name);
   541  	void (*description)(void *data, struct wl_output *wl_output, const char *description);
   542  };
   543  static inline int gamen_wl_output_add_listener(void *fp, struct wl_output *wl_output, const struct wl_output_listener *listener, void *data) {
   544  	return ((proc_wl_proxy_add_listener)fp)((struct wl_proxy *) wl_output, (void (**)(void)) listener, data);
   545  }
   546  
   547  static inline void gamen_wl_output_release(void *fp1, void *fp2, struct wl_output *wl_output) {
   548  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_output, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_output), 1);
   549  }
   550  
   551  static inline void gamen_wl_region_destroy(void *fp1, void *fp2, struct wl_region *wl_region) {
   552  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_region, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_region), 1);
   553  }
   554  
   555  static inline void gamen_wl_region_add(void *fp1, void *fp2, struct wl_region *wl_region, int32_t x, int32_t y, int32_t width, int32_t height) {
   556  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_region, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_region), 0, x, y, width, height);
   557  }
   558  
   559  static inline void gamen_wl_region_subtract(void *fp1, void *fp2, struct wl_region *wl_region, int32_t x, int32_t y, int32_t width, int32_t height) {
   560  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_region, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_region), 0, x, y, width, height);
   561  }
   562  
   563  static inline void gamen_wl_subcompositor_destroy(void *fp1, void *fp2, struct wl_subcompositor *wl_subcompositor) {
   564  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subcompositor, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subcompositor), 1);
   565  }
   566  
   567  static inline struct wl_subsurface *gamen_wl_subcompositor_get_subsurface(void *fp1, void *fp2, struct wl_subcompositor *wl_subcompositor, struct wl_surface *surface, struct wl_surface *parent) {
   568  	struct wl_proxy *id;
   569  	id = ((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subcompositor, 1, &wl_subsurface_interface, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subcompositor), 0, NULL, surface, parent);
   570  	return (struct wl_subsurface *) id;
   571  }
   572  
   573  static inline void gamen_wl_subsurface_destroy(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface) {
   574  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 0, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 1);
   575  }
   576  
   577  static inline void gamen_wl_subsurface_set_position(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface, int32_t x, int32_t y) {
   578  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 1, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 0, x, y);
   579  }
   580  
   581  static inline void gamen_wl_subsurface_place_above(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface, struct wl_surface *sibling) {
   582  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 2, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 0, sibling);
   583  }
   584  
   585  static inline void gamen_wl_subsurface_place_below(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface, struct wl_surface *sibling) {
   586  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 3, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 0, sibling);
   587  }
   588  
   589  static inline void gamen_wl_subsurface_set_sync(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface) {
   590  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 4, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 0);
   591  }
   592  
   593  static inline void gamen_wl_subsurface_set_desync(void *fp1, void *fp2, struct wl_subsurface *wl_subsurface) {
   594  	((proc_wl_proxy_marshal_flags)fp1)((struct wl_proxy *) wl_subsurface, 5, NULL, ((proc_wl_proxy_get_version)fp2)((struct wl_proxy *) wl_subsurface), 0);
   595  }
   596  
   597  
   598  #ifdef __cplusplus
   599  }
   600  #endif
   601  
   602  
   603  #endif