libdecor-so_wrap.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. #ifndef DYLIBLOAD_WRAPPER_LIBDECOR
  2. #define DYLIBLOAD_WRAPPER_LIBDECOR
  3. // This file is generated. Do not edit!
  4. // see https://github.com/hpvb/dynload-wrapper for details
  5. // generated by ./generate-wrapper.py 0.3 on 2022-12-12 10:55:19
  6. // flags: ./generate-wrapper.py --include /usr/include/libdecor-0/libdecor.h --sys-include <libdecor-0/libdecor.h> --soname libdecor-0.so.0 --init-name libdecor --output-header libdecor-so_wrap.h --output-implementation libdecor-so_wrap.c --omit-prefix wl_
  7. //
  8. // EDIT: This has been handpatched to properly report the pointer type of the window_state argument of libdecor_configuration_get_window_state.
  9. #include <stdint.h>
  10. #define libdecor_unref libdecor_unref_dylibloader_orig_libdecor
  11. #define libdecor_new libdecor_new_dylibloader_orig_libdecor
  12. #define libdecor_get_fd libdecor_get_fd_dylibloader_orig_libdecor
  13. #define libdecor_dispatch libdecor_dispatch_dylibloader_orig_libdecor
  14. #define libdecor_decorate libdecor_decorate_dylibloader_orig_libdecor
  15. #define libdecor_frame_ref libdecor_frame_ref_dylibloader_orig_libdecor
  16. #define libdecor_frame_unref libdecor_frame_unref_dylibloader_orig_libdecor
  17. #define libdecor_frame_set_visibility libdecor_frame_set_visibility_dylibloader_orig_libdecor
  18. #define libdecor_frame_is_visible libdecor_frame_is_visible_dylibloader_orig_libdecor
  19. #define libdecor_frame_set_parent libdecor_frame_set_parent_dylibloader_orig_libdecor
  20. #define libdecor_frame_set_title libdecor_frame_set_title_dylibloader_orig_libdecor
  21. #define libdecor_frame_get_title libdecor_frame_get_title_dylibloader_orig_libdecor
  22. #define libdecor_frame_set_app_id libdecor_frame_set_app_id_dylibloader_orig_libdecor
  23. #define libdecor_frame_set_capabilities libdecor_frame_set_capabilities_dylibloader_orig_libdecor
  24. #define libdecor_frame_unset_capabilities libdecor_frame_unset_capabilities_dylibloader_orig_libdecor
  25. #define libdecor_frame_has_capability libdecor_frame_has_capability_dylibloader_orig_libdecor
  26. #define libdecor_frame_show_window_menu libdecor_frame_show_window_menu_dylibloader_orig_libdecor
  27. #define libdecor_frame_popup_grab libdecor_frame_popup_grab_dylibloader_orig_libdecor
  28. #define libdecor_frame_popup_ungrab libdecor_frame_popup_ungrab_dylibloader_orig_libdecor
  29. #define libdecor_frame_translate_coordinate libdecor_frame_translate_coordinate_dylibloader_orig_libdecor
  30. #define libdecor_frame_set_min_content_size libdecor_frame_set_min_content_size_dylibloader_orig_libdecor
  31. #define libdecor_frame_set_max_content_size libdecor_frame_set_max_content_size_dylibloader_orig_libdecor
  32. #define libdecor_frame_resize libdecor_frame_resize_dylibloader_orig_libdecor
  33. #define libdecor_frame_move libdecor_frame_move_dylibloader_orig_libdecor
  34. #define libdecor_frame_commit libdecor_frame_commit_dylibloader_orig_libdecor
  35. #define libdecor_frame_set_minimized libdecor_frame_set_minimized_dylibloader_orig_libdecor
  36. #define libdecor_frame_set_maximized libdecor_frame_set_maximized_dylibloader_orig_libdecor
  37. #define libdecor_frame_unset_maximized libdecor_frame_unset_maximized_dylibloader_orig_libdecor
  38. #define libdecor_frame_set_fullscreen libdecor_frame_set_fullscreen_dylibloader_orig_libdecor
  39. #define libdecor_frame_unset_fullscreen libdecor_frame_unset_fullscreen_dylibloader_orig_libdecor
  40. #define libdecor_frame_is_floating libdecor_frame_is_floating_dylibloader_orig_libdecor
  41. #define libdecor_frame_close libdecor_frame_close_dylibloader_orig_libdecor
  42. #define libdecor_frame_map libdecor_frame_map_dylibloader_orig_libdecor
  43. #define libdecor_frame_get_xdg_surface libdecor_frame_get_xdg_surface_dylibloader_orig_libdecor
  44. #define libdecor_frame_get_xdg_toplevel libdecor_frame_get_xdg_toplevel_dylibloader_orig_libdecor
  45. #define libdecor_state_new libdecor_state_new_dylibloader_orig_libdecor
  46. #define libdecor_state_free libdecor_state_free_dylibloader_orig_libdecor
  47. #define libdecor_configuration_get_content_size libdecor_configuration_get_content_size_dylibloader_orig_libdecor
  48. #define libdecor_configuration_get_window_state libdecor_configuration_get_window_state_dylibloader_orig_libdecor
  49. #include <libdecor-0/libdecor.h>
  50. #undef libdecor_unref
  51. #undef libdecor_new
  52. #undef libdecor_get_fd
  53. #undef libdecor_dispatch
  54. #undef libdecor_decorate
  55. #undef libdecor_frame_ref
  56. #undef libdecor_frame_unref
  57. #undef libdecor_frame_set_visibility
  58. #undef libdecor_frame_is_visible
  59. #undef libdecor_frame_set_parent
  60. #undef libdecor_frame_set_title
  61. #undef libdecor_frame_get_title
  62. #undef libdecor_frame_set_app_id
  63. #undef libdecor_frame_set_capabilities
  64. #undef libdecor_frame_unset_capabilities
  65. #undef libdecor_frame_has_capability
  66. #undef libdecor_frame_show_window_menu
  67. #undef libdecor_frame_popup_grab
  68. #undef libdecor_frame_popup_ungrab
  69. #undef libdecor_frame_translate_coordinate
  70. #undef libdecor_frame_set_min_content_size
  71. #undef libdecor_frame_set_max_content_size
  72. #undef libdecor_frame_resize
  73. #undef libdecor_frame_move
  74. #undef libdecor_frame_commit
  75. #undef libdecor_frame_set_minimized
  76. #undef libdecor_frame_set_maximized
  77. #undef libdecor_frame_unset_maximized
  78. #undef libdecor_frame_set_fullscreen
  79. #undef libdecor_frame_unset_fullscreen
  80. #undef libdecor_frame_is_floating
  81. #undef libdecor_frame_close
  82. #undef libdecor_frame_map
  83. #undef libdecor_frame_get_xdg_surface
  84. #undef libdecor_frame_get_xdg_toplevel
  85. #undef libdecor_state_new
  86. #undef libdecor_state_free
  87. #undef libdecor_configuration_get_content_size
  88. #undef libdecor_configuration_get_window_state
  89. #ifdef __cplusplus
  90. extern "C" {
  91. #endif
  92. #define libdecor_unref libdecor_unref_dylibloader_wrapper_libdecor
  93. #define libdecor_new libdecor_new_dylibloader_wrapper_libdecor
  94. #define libdecor_get_fd libdecor_get_fd_dylibloader_wrapper_libdecor
  95. #define libdecor_dispatch libdecor_dispatch_dylibloader_wrapper_libdecor
  96. #define libdecor_decorate libdecor_decorate_dylibloader_wrapper_libdecor
  97. #define libdecor_frame_ref libdecor_frame_ref_dylibloader_wrapper_libdecor
  98. #define libdecor_frame_unref libdecor_frame_unref_dylibloader_wrapper_libdecor
  99. #define libdecor_frame_set_visibility libdecor_frame_set_visibility_dylibloader_wrapper_libdecor
  100. #define libdecor_frame_is_visible libdecor_frame_is_visible_dylibloader_wrapper_libdecor
  101. #define libdecor_frame_set_parent libdecor_frame_set_parent_dylibloader_wrapper_libdecor
  102. #define libdecor_frame_set_title libdecor_frame_set_title_dylibloader_wrapper_libdecor
  103. #define libdecor_frame_get_title libdecor_frame_get_title_dylibloader_wrapper_libdecor
  104. #define libdecor_frame_set_app_id libdecor_frame_set_app_id_dylibloader_wrapper_libdecor
  105. #define libdecor_frame_set_capabilities libdecor_frame_set_capabilities_dylibloader_wrapper_libdecor
  106. #define libdecor_frame_unset_capabilities libdecor_frame_unset_capabilities_dylibloader_wrapper_libdecor
  107. #define libdecor_frame_has_capability libdecor_frame_has_capability_dylibloader_wrapper_libdecor
  108. #define libdecor_frame_show_window_menu libdecor_frame_show_window_menu_dylibloader_wrapper_libdecor
  109. #define libdecor_frame_popup_grab libdecor_frame_popup_grab_dylibloader_wrapper_libdecor
  110. #define libdecor_frame_popup_ungrab libdecor_frame_popup_ungrab_dylibloader_wrapper_libdecor
  111. #define libdecor_frame_translate_coordinate libdecor_frame_translate_coordinate_dylibloader_wrapper_libdecor
  112. #define libdecor_frame_set_min_content_size libdecor_frame_set_min_content_size_dylibloader_wrapper_libdecor
  113. #define libdecor_frame_set_max_content_size libdecor_frame_set_max_content_size_dylibloader_wrapper_libdecor
  114. #define libdecor_frame_resize libdecor_frame_resize_dylibloader_wrapper_libdecor
  115. #define libdecor_frame_move libdecor_frame_move_dylibloader_wrapper_libdecor
  116. #define libdecor_frame_commit libdecor_frame_commit_dylibloader_wrapper_libdecor
  117. #define libdecor_frame_set_minimized libdecor_frame_set_minimized_dylibloader_wrapper_libdecor
  118. #define libdecor_frame_set_maximized libdecor_frame_set_maximized_dylibloader_wrapper_libdecor
  119. #define libdecor_frame_unset_maximized libdecor_frame_unset_maximized_dylibloader_wrapper_libdecor
  120. #define libdecor_frame_set_fullscreen libdecor_frame_set_fullscreen_dylibloader_wrapper_libdecor
  121. #define libdecor_frame_unset_fullscreen libdecor_frame_unset_fullscreen_dylibloader_wrapper_libdecor
  122. #define libdecor_frame_is_floating libdecor_frame_is_floating_dylibloader_wrapper_libdecor
  123. #define libdecor_frame_close libdecor_frame_close_dylibloader_wrapper_libdecor
  124. #define libdecor_frame_map libdecor_frame_map_dylibloader_wrapper_libdecor
  125. #define libdecor_frame_get_xdg_surface libdecor_frame_get_xdg_surface_dylibloader_wrapper_libdecor
  126. #define libdecor_frame_get_xdg_toplevel libdecor_frame_get_xdg_toplevel_dylibloader_wrapper_libdecor
  127. #define libdecor_state_new libdecor_state_new_dylibloader_wrapper_libdecor
  128. #define libdecor_state_free libdecor_state_free_dylibloader_wrapper_libdecor
  129. #define libdecor_configuration_get_content_size libdecor_configuration_get_content_size_dylibloader_wrapper_libdecor
  130. #define libdecor_configuration_get_window_state libdecor_configuration_get_window_state_dylibloader_wrapper_libdecor
  131. extern void (*libdecor_unref_dylibloader_wrapper_libdecor)(struct libdecor*);
  132. extern struct libdecor* (*libdecor_new_dylibloader_wrapper_libdecor)(struct wl_display*,struct libdecor_interface*);
  133. extern int (*libdecor_get_fd_dylibloader_wrapper_libdecor)(struct libdecor*);
  134. extern int (*libdecor_dispatch_dylibloader_wrapper_libdecor)(struct libdecor*, int);
  135. extern struct libdecor_frame* (*libdecor_decorate_dylibloader_wrapper_libdecor)(struct libdecor*,struct wl_surface*,struct libdecor_frame_interface*, void*);
  136. extern void (*libdecor_frame_ref_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  137. extern void (*libdecor_frame_unref_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  138. extern void (*libdecor_frame_set_visibility_dylibloader_wrapper_libdecor)(struct libdecor_frame*, bool);
  139. extern bool (*libdecor_frame_is_visible_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  140. extern void (*libdecor_frame_set_parent_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct libdecor_frame*);
  141. extern void (*libdecor_frame_set_title_dylibloader_wrapper_libdecor)(struct libdecor_frame*,const char*);
  142. extern const char* (*libdecor_frame_get_title_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  143. extern void (*libdecor_frame_set_app_id_dylibloader_wrapper_libdecor)(struct libdecor_frame*,const char*);
  144. extern void (*libdecor_frame_set_capabilities_dylibloader_wrapper_libdecor)(struct libdecor_frame*,enum libdecor_capabilities);
  145. extern void (*libdecor_frame_unset_capabilities_dylibloader_wrapper_libdecor)(struct libdecor_frame*,enum libdecor_capabilities);
  146. extern bool (*libdecor_frame_has_capability_dylibloader_wrapper_libdecor)(struct libdecor_frame*,enum libdecor_capabilities);
  147. extern void (*libdecor_frame_show_window_menu_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct wl_seat*, uint32_t, int, int);
  148. extern void (*libdecor_frame_popup_grab_dylibloader_wrapper_libdecor)(struct libdecor_frame*,const char*);
  149. extern void (*libdecor_frame_popup_ungrab_dylibloader_wrapper_libdecor)(struct libdecor_frame*,const char*);
  150. extern void (*libdecor_frame_translate_coordinate_dylibloader_wrapper_libdecor)(struct libdecor_frame*, int, int, int*, int*);
  151. extern void (*libdecor_frame_set_min_content_size_dylibloader_wrapper_libdecor)(struct libdecor_frame*, int, int);
  152. extern void (*libdecor_frame_set_max_content_size_dylibloader_wrapper_libdecor)(struct libdecor_frame*, int, int);
  153. extern void (*libdecor_frame_resize_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct wl_seat*, uint32_t,enum libdecor_resize_edge);
  154. extern void (*libdecor_frame_move_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct wl_seat*, uint32_t);
  155. extern void (*libdecor_frame_commit_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct libdecor_state*,struct libdecor_configuration*);
  156. extern void (*libdecor_frame_set_minimized_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  157. extern void (*libdecor_frame_set_maximized_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  158. extern void (*libdecor_frame_unset_maximized_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  159. extern void (*libdecor_frame_set_fullscreen_dylibloader_wrapper_libdecor)(struct libdecor_frame*,struct wl_output*);
  160. extern void (*libdecor_frame_unset_fullscreen_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  161. extern bool (*libdecor_frame_is_floating_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  162. extern void (*libdecor_frame_close_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  163. extern void (*libdecor_frame_map_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  164. extern struct xdg_surface* (*libdecor_frame_get_xdg_surface_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  165. extern struct xdg_toplevel* (*libdecor_frame_get_xdg_toplevel_dylibloader_wrapper_libdecor)(struct libdecor_frame*);
  166. extern struct libdecor_state* (*libdecor_state_new_dylibloader_wrapper_libdecor)( int, int);
  167. extern void (*libdecor_state_free_dylibloader_wrapper_libdecor)(struct libdecor_state*);
  168. extern bool (*libdecor_configuration_get_content_size_dylibloader_wrapper_libdecor)(struct libdecor_configuration*,struct libdecor_frame*, int*, int*);
  169. extern bool (*libdecor_configuration_get_window_state_dylibloader_wrapper_libdecor)(struct libdecor_configuration*,enum libdecor_window_state*);
  170. int initialize_libdecor(int verbose);
  171. #ifdef __cplusplus
  172. }
  173. #endif
  174. #endif