wayland-client-core-so_wrap.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. #ifndef DYLIBLOAD_WRAPPER_WAYLAND_CLIENT
  2. #define DYLIBLOAD_WRAPPER_WAYLAND_CLIENT
  3. // This file is generated. Do not edit!
  4. // see https://github.com/hpvb/dynload-wrapper for details
  5. // generated by ../dynload-wrapper/generate-wrapper.py 0.3 on 2023-01-25 17:36:12
  6. // flags: ../dynload-wrapper/generate-wrapper.py --include ./thirdparty/linuxbsd_headers/wayland/wayland-client-core.h --sys-include "./thirdparty/linuxbsd_headers/wayland/wayland-client-core.h" --soname libwayland-client.so.0 --init-name wayland_client --output-header platform/linuxbsd/wayland/dynwrappers/wayland-client-core-so_wrap.h --output-implementation platform/linuxbsd/wayland/dynwrappers/wayland-client-core-so_wrap.c
  7. //
  8. // NOTE: This has been hand-patched to workaround some issues.
  9. #include <stdint.h>
  10. #define wl_list_init wl_list_init_dylibloader_orig_wayland_client
  11. #define wl_list_insert wl_list_insert_dylibloader_orig_wayland_client
  12. #define wl_list_remove wl_list_remove_dylibloader_orig_wayland_client
  13. #define wl_list_length wl_list_length_dylibloader_orig_wayland_client
  14. #define wl_list_empty wl_list_empty_dylibloader_orig_wayland_client
  15. #define wl_list_insert_list wl_list_insert_list_dylibloader_orig_wayland_client
  16. #define wl_array_init wl_array_init_dylibloader_orig_wayland_client
  17. #define wl_array_release wl_array_release_dylibloader_orig_wayland_client
  18. #define wl_array_add wl_array_add_dylibloader_orig_wayland_client
  19. #define wl_array_copy wl_array_copy_dylibloader_orig_wayland_client
  20. #define wl_event_queue_destroy wl_event_queue_destroy_dylibloader_orig_wayland_client
  21. #define wl_proxy_marshal_flags wl_proxy_marshal_flags_dylibloader_orig_wayland_client
  22. #define wl_proxy_marshal_array_flags wl_proxy_marshal_array_flags_dylibloader_orig_wayland_client
  23. #define wl_proxy_marshal wl_proxy_marshal_dylibloader_orig_wayland_client
  24. #define wl_proxy_marshal_array wl_proxy_marshal_array_dylibloader_orig_wayland_client
  25. #define wl_proxy_create wl_proxy_create_dylibloader_orig_wayland_client
  26. #define wl_proxy_create_wrapper wl_proxy_create_wrapper_dylibloader_orig_wayland_client
  27. #define wl_proxy_wrapper_destroy wl_proxy_wrapper_destroy_dylibloader_orig_wayland_client
  28. #define wl_proxy_marshal_constructor wl_proxy_marshal_constructor_dylibloader_orig_wayland_client
  29. #define wl_proxy_marshal_constructor_versioned wl_proxy_marshal_constructor_versioned_dylibloader_orig_wayland_client
  30. #define wl_proxy_marshal_array_constructor wl_proxy_marshal_array_constructor_dylibloader_orig_wayland_client
  31. #define wl_proxy_marshal_array_constructor_versioned wl_proxy_marshal_array_constructor_versioned_dylibloader_orig_wayland_client
  32. #define wl_proxy_destroy wl_proxy_destroy_dylibloader_orig_wayland_client
  33. #define wl_proxy_add_listener wl_proxy_add_listener_dylibloader_orig_wayland_client
  34. #define wl_proxy_get_listener wl_proxy_get_listener_dylibloader_orig_wayland_client
  35. #define wl_proxy_add_dispatcher wl_proxy_add_dispatcher_dylibloader_orig_wayland_client
  36. #define wl_proxy_set_user_data wl_proxy_set_user_data_dylibloader_orig_wayland_client
  37. #define wl_proxy_get_user_data wl_proxy_get_user_data_dylibloader_orig_wayland_client
  38. #define wl_proxy_get_version wl_proxy_get_version_dylibloader_orig_wayland_client
  39. #define wl_proxy_get_id wl_proxy_get_id_dylibloader_orig_wayland_client
  40. #define wl_proxy_set_tag wl_proxy_set_tag_dylibloader_orig_wayland_client
  41. #define wl_proxy_get_tag wl_proxy_get_tag_dylibloader_orig_wayland_client
  42. #define wl_proxy_get_class wl_proxy_get_class_dylibloader_orig_wayland_client
  43. #define wl_proxy_set_queue wl_proxy_set_queue_dylibloader_orig_wayland_client
  44. #define wl_display_connect wl_display_connect_dylibloader_orig_wayland_client
  45. #define wl_display_connect_to_fd wl_display_connect_to_fd_dylibloader_orig_wayland_client
  46. #define wl_display_disconnect wl_display_disconnect_dylibloader_orig_wayland_client
  47. #define wl_display_get_fd wl_display_get_fd_dylibloader_orig_wayland_client
  48. #define wl_display_dispatch wl_display_dispatch_dylibloader_orig_wayland_client
  49. #define wl_display_dispatch_queue wl_display_dispatch_queue_dylibloader_orig_wayland_client
  50. #define wl_display_dispatch_queue_pending wl_display_dispatch_queue_pending_dylibloader_orig_wayland_client
  51. #define wl_display_dispatch_pending wl_display_dispatch_pending_dylibloader_orig_wayland_client
  52. #define wl_display_get_error wl_display_get_error_dylibloader_orig_wayland_client
  53. #define wl_display_get_protocol_error wl_display_get_protocol_error_dylibloader_orig_wayland_client
  54. #define wl_display_flush wl_display_flush_dylibloader_orig_wayland_client
  55. #define wl_display_roundtrip_queue wl_display_roundtrip_queue_dylibloader_orig_wayland_client
  56. #define wl_display_roundtrip wl_display_roundtrip_dylibloader_orig_wayland_client
  57. #define wl_display_create_queue wl_display_create_queue_dylibloader_orig_wayland_client
  58. #define wl_display_prepare_read_queue wl_display_prepare_read_queue_dylibloader_orig_wayland_client
  59. #define wl_display_prepare_read wl_display_prepare_read_dylibloader_orig_wayland_client
  60. #define wl_display_cancel_read wl_display_cancel_read_dylibloader_orig_wayland_client
  61. #define wl_display_read_events wl_display_read_events_dylibloader_orig_wayland_client
  62. #define wl_log_set_handler_client wl_log_set_handler_client_dylibloader_orig_wayland_client
  63. #include "./thirdparty/linuxbsd_headers/wayland/wayland-client-core.h"
  64. #undef wl_list_init
  65. #undef wl_list_insert
  66. #undef wl_list_remove
  67. #undef wl_list_length
  68. #undef wl_list_empty
  69. #undef wl_list_insert_list
  70. #undef wl_array_init
  71. #undef wl_array_release
  72. #undef wl_array_add
  73. #undef wl_array_copy
  74. #undef wl_event_queue_destroy
  75. #undef wl_proxy_marshal_flags
  76. #undef wl_proxy_marshal_array_flags
  77. #undef wl_proxy_marshal
  78. #undef wl_proxy_marshal_array
  79. #undef wl_proxy_create
  80. #undef wl_proxy_create_wrapper
  81. #undef wl_proxy_wrapper_destroy
  82. #undef wl_proxy_marshal_constructor
  83. #undef wl_proxy_marshal_constructor_versioned
  84. #undef wl_proxy_marshal_array_constructor
  85. #undef wl_proxy_marshal_array_constructor_versioned
  86. #undef wl_proxy_destroy
  87. #undef wl_proxy_add_listener
  88. #undef wl_proxy_get_listener
  89. #undef wl_proxy_add_dispatcher
  90. #undef wl_proxy_set_user_data
  91. #undef wl_proxy_get_user_data
  92. #undef wl_proxy_get_version
  93. #undef wl_proxy_get_id
  94. #undef wl_proxy_set_tag
  95. #undef wl_proxy_get_tag
  96. #undef wl_proxy_get_class
  97. #undef wl_proxy_set_queue
  98. #undef wl_display_connect
  99. #undef wl_display_connect_to_fd
  100. #undef wl_display_disconnect
  101. #undef wl_display_get_fd
  102. #undef wl_display_dispatch
  103. #undef wl_display_dispatch_queue
  104. #undef wl_display_dispatch_queue_pending
  105. #undef wl_display_dispatch_pending
  106. #undef wl_display_get_error
  107. #undef wl_display_get_protocol_error
  108. #undef wl_display_flush
  109. #undef wl_display_roundtrip_queue
  110. #undef wl_display_roundtrip
  111. #undef wl_display_create_queue
  112. #undef wl_display_prepare_read_queue
  113. #undef wl_display_prepare_read
  114. #undef wl_display_cancel_read
  115. #undef wl_display_read_events
  116. #undef wl_log_set_handler_client
  117. #ifdef __cplusplus
  118. extern "C" {
  119. #endif
  120. #define wl_list_init wl_list_init_dylibloader_wrapper_wayland_client
  121. #define wl_list_insert wl_list_insert_dylibloader_wrapper_wayland_client
  122. #define wl_list_remove wl_list_remove_dylibloader_wrapper_wayland_client
  123. #define wl_list_length wl_list_length_dylibloader_wrapper_wayland_client
  124. #define wl_list_empty wl_list_empty_dylibloader_wrapper_wayland_client
  125. #define wl_list_insert_list wl_list_insert_list_dylibloader_wrapper_wayland_client
  126. #define wl_array_init wl_array_init_dylibloader_wrapper_wayland_client
  127. #define wl_array_release wl_array_release_dylibloader_wrapper_wayland_client
  128. #define wl_array_add wl_array_add_dylibloader_wrapper_wayland_client
  129. #define wl_array_copy wl_array_copy_dylibloader_wrapper_wayland_client
  130. #define wl_event_queue_destroy wl_event_queue_destroy_dylibloader_wrapper_wayland_client
  131. #define wl_proxy_marshal_flags wl_proxy_marshal_flags_dylibloader_wrapper_wayland_client
  132. #define wl_proxy_marshal_array_flags wl_proxy_marshal_array_flags_dylibloader_wrapper_wayland_client
  133. #define wl_proxy_marshal wl_proxy_marshal_dylibloader_wrapper_wayland_client
  134. #define wl_proxy_marshal_array wl_proxy_marshal_array_dylibloader_wrapper_wayland_client
  135. #define wl_proxy_create wl_proxy_create_dylibloader_wrapper_wayland_client
  136. #define wl_proxy_create_wrapper wl_proxy_create_wrapper_dylibloader_wrapper_wayland_client
  137. #define wl_proxy_wrapper_destroy wl_proxy_wrapper_destroy_dylibloader_wrapper_wayland_client
  138. #define wl_proxy_marshal_constructor wl_proxy_marshal_constructor_dylibloader_wrapper_wayland_client
  139. #define wl_proxy_marshal_constructor_versioned wl_proxy_marshal_constructor_versioned_dylibloader_wrapper_wayland_client
  140. #define wl_proxy_marshal_array_constructor wl_proxy_marshal_array_constructor_dylibloader_wrapper_wayland_client
  141. #define wl_proxy_marshal_array_constructor_versioned wl_proxy_marshal_array_constructor_versioned_dylibloader_wrapper_wayland_client
  142. #define wl_proxy_destroy wl_proxy_destroy_dylibloader_wrapper_wayland_client
  143. #define wl_proxy_add_listener wl_proxy_add_listener_dylibloader_wrapper_wayland_client
  144. #define wl_proxy_get_listener wl_proxy_get_listener_dylibloader_wrapper_wayland_client
  145. #define wl_proxy_add_dispatcher wl_proxy_add_dispatcher_dylibloader_wrapper_wayland_client
  146. #define wl_proxy_set_user_data wl_proxy_set_user_data_dylibloader_wrapper_wayland_client
  147. #define wl_proxy_get_user_data wl_proxy_get_user_data_dylibloader_wrapper_wayland_client
  148. #define wl_proxy_get_version wl_proxy_get_version_dylibloader_wrapper_wayland_client
  149. #define wl_proxy_get_id wl_proxy_get_id_dylibloader_wrapper_wayland_client
  150. #define wl_proxy_set_tag wl_proxy_set_tag_dylibloader_wrapper_wayland_client
  151. #define wl_proxy_get_tag wl_proxy_get_tag_dylibloader_wrapper_wayland_client
  152. #define wl_proxy_get_class wl_proxy_get_class_dylibloader_wrapper_wayland_client
  153. #define wl_proxy_set_queue wl_proxy_set_queue_dylibloader_wrapper_wayland_client
  154. #define wl_display_connect wl_display_connect_dylibloader_wrapper_wayland_client
  155. #define wl_display_connect_to_fd wl_display_connect_to_fd_dylibloader_wrapper_wayland_client
  156. #define wl_display_disconnect wl_display_disconnect_dylibloader_wrapper_wayland_client
  157. #define wl_display_get_fd wl_display_get_fd_dylibloader_wrapper_wayland_client
  158. #define wl_display_dispatch wl_display_dispatch_dylibloader_wrapper_wayland_client
  159. #define wl_display_dispatch_queue wl_display_dispatch_queue_dylibloader_wrapper_wayland_client
  160. #define wl_display_dispatch_queue_pending wl_display_dispatch_queue_pending_dylibloader_wrapper_wayland_client
  161. #define wl_display_dispatch_pending wl_display_dispatch_pending_dylibloader_wrapper_wayland_client
  162. #define wl_display_get_error wl_display_get_error_dylibloader_wrapper_wayland_client
  163. #define wl_display_get_protocol_error wl_display_get_protocol_error_dylibloader_wrapper_wayland_client
  164. #define wl_display_flush wl_display_flush_dylibloader_wrapper_wayland_client
  165. #define wl_display_roundtrip_queue wl_display_roundtrip_queue_dylibloader_wrapper_wayland_client
  166. #define wl_display_roundtrip wl_display_roundtrip_dylibloader_wrapper_wayland_client
  167. #define wl_display_create_queue wl_display_create_queue_dylibloader_wrapper_wayland_client
  168. #define wl_display_prepare_read_queue wl_display_prepare_read_queue_dylibloader_wrapper_wayland_client
  169. #define wl_display_prepare_read wl_display_prepare_read_dylibloader_wrapper_wayland_client
  170. #define wl_display_cancel_read wl_display_cancel_read_dylibloader_wrapper_wayland_client
  171. #define wl_display_read_events wl_display_read_events_dylibloader_wrapper_wayland_client
  172. #define wl_log_set_handler_client wl_log_set_handler_client_dylibloader_wrapper_wayland_client
  173. extern void (*wl_list_init_dylibloader_wrapper_wayland_client)(struct wl_list*);
  174. extern void (*wl_list_insert_dylibloader_wrapper_wayland_client)(struct wl_list*,struct wl_list*);
  175. extern void (*wl_list_remove_dylibloader_wrapper_wayland_client)(struct wl_list*);
  176. extern int (*wl_list_length_dylibloader_wrapper_wayland_client)(struct wl_list*);
  177. extern int (*wl_list_empty_dylibloader_wrapper_wayland_client)(struct wl_list*);
  178. extern void (*wl_list_insert_list_dylibloader_wrapper_wayland_client)(struct wl_list*,struct wl_list*);
  179. extern void (*wl_array_init_dylibloader_wrapper_wayland_client)(struct wl_array*);
  180. extern void (*wl_array_release_dylibloader_wrapper_wayland_client)(struct wl_array*);
  181. extern void* (*wl_array_add_dylibloader_wrapper_wayland_client)(struct wl_array*, size_t);
  182. extern int (*wl_array_copy_dylibloader_wrapper_wayland_client)(struct wl_array*,struct wl_array*);
  183. extern void (*wl_event_queue_destroy_dylibloader_wrapper_wayland_client)(struct wl_event_queue*);
  184. extern struct wl_proxy* (*wl_proxy_marshal_flags_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,const struct wl_interface*, uint32_t, uint32_t,...);
  185. extern struct wl_proxy* (*wl_proxy_marshal_array_flags_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,const struct wl_interface*, uint32_t, uint32_t,union wl_argument);
  186. extern void (*wl_proxy_marshal_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,...);
  187. extern void (*wl_proxy_marshal_array_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,union wl_argument);
  188. extern struct wl_proxy* (*wl_proxy_create_dylibloader_wrapper_wayland_client)(struct wl_proxy*,const struct wl_interface*);
  189. extern void* (*wl_proxy_create_wrapper_dylibloader_wrapper_wayland_client)( void*);
  190. extern void (*wl_proxy_wrapper_destroy_dylibloader_wrapper_wayland_client)( void*);
  191. extern struct wl_proxy* (*wl_proxy_marshal_constructor_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,const struct wl_interface*,...);
  192. extern struct wl_proxy* (*wl_proxy_marshal_constructor_versioned_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,const struct wl_interface*, uint32_t,...);
  193. extern struct wl_proxy* (*wl_proxy_marshal_array_constructor_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,union wl_argument,const struct wl_interface*);
  194. extern struct wl_proxy* (*wl_proxy_marshal_array_constructor_versioned_dylibloader_wrapper_wayland_client)(struct wl_proxy*, uint32_t,union wl_argument,const struct wl_interface*, uint32_t);
  195. extern void (*wl_proxy_destroy_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  196. extern int (*wl_proxy_add_listener_dylibloader_wrapper_wayland_client)(struct wl_proxy*, void(**)(void), void*);
  197. extern const void* (*wl_proxy_get_listener_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  198. extern int (*wl_proxy_add_dispatcher_dylibloader_wrapper_wayland_client)(struct wl_proxy*, wl_dispatcher_func_t,const void*, void*);
  199. extern void (*wl_proxy_set_user_data_dylibloader_wrapper_wayland_client)(struct wl_proxy*, void*);
  200. extern void* (*wl_proxy_get_user_data_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  201. extern uint32_t (*wl_proxy_get_version_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  202. extern uint32_t (*wl_proxy_get_id_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  203. extern void (*wl_proxy_set_tag_dylibloader_wrapper_wayland_client)(struct wl_proxy*,const char**);
  204. extern const char** (*wl_proxy_get_tag_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  205. extern const char* (*wl_proxy_get_class_dylibloader_wrapper_wayland_client)(struct wl_proxy*);
  206. extern void (*wl_proxy_set_queue_dylibloader_wrapper_wayland_client)(struct wl_proxy*,struct wl_event_queue*);
  207. extern struct wl_display* (*wl_display_connect_dylibloader_wrapper_wayland_client)(const char*);
  208. extern struct wl_display* (*wl_display_connect_to_fd_dylibloader_wrapper_wayland_client)( int);
  209. extern void (*wl_display_disconnect_dylibloader_wrapper_wayland_client)(struct wl_display*);
  210. extern int (*wl_display_get_fd_dylibloader_wrapper_wayland_client)(struct wl_display*);
  211. extern int (*wl_display_dispatch_dylibloader_wrapper_wayland_client)(struct wl_display*);
  212. extern int (*wl_display_dispatch_queue_dylibloader_wrapper_wayland_client)(struct wl_display*,struct wl_event_queue*);
  213. extern int (*wl_display_dispatch_queue_pending_dylibloader_wrapper_wayland_client)(struct wl_display*,struct wl_event_queue*);
  214. extern int (*wl_display_dispatch_pending_dylibloader_wrapper_wayland_client)(struct wl_display*);
  215. extern int (*wl_display_get_error_dylibloader_wrapper_wayland_client)(struct wl_display*);
  216. extern uint32_t (*wl_display_get_protocol_error_dylibloader_wrapper_wayland_client)(struct wl_display*,const struct wl_interface**, uint32_t*);
  217. extern int (*wl_display_flush_dylibloader_wrapper_wayland_client)(struct wl_display*);
  218. extern int (*wl_display_roundtrip_queue_dylibloader_wrapper_wayland_client)(struct wl_display*,struct wl_event_queue*);
  219. extern int (*wl_display_roundtrip_dylibloader_wrapper_wayland_client)(struct wl_display*);
  220. extern struct wl_event_queue* (*wl_display_create_queue_dylibloader_wrapper_wayland_client)(struct wl_display*);
  221. extern int (*wl_display_prepare_read_queue_dylibloader_wrapper_wayland_client)(struct wl_display*,struct wl_event_queue*);
  222. extern int (*wl_display_prepare_read_dylibloader_wrapper_wayland_client)(struct wl_display*);
  223. extern void (*wl_display_cancel_read_dylibloader_wrapper_wayland_client)(struct wl_display*);
  224. extern int (*wl_display_read_events_dylibloader_wrapper_wayland_client)(struct wl_display*);
  225. extern void (*wl_log_set_handler_client_dylibloader_wrapper_wayland_client)( wl_log_func_t);
  226. int initialize_wayland_client(int verbose);
  227. #ifdef __cplusplus
  228. }
  229. #endif
  230. #endif