xkbcommon-so_wrap.c 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016
  1. // This file is generated. Do not edit!
  2. // see https://github.com/hpvb/dynload-wrapper for details
  3. // generated by generate-wrapper.py 0.3 on 2023-01-30 10:40:26
  4. // flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon.h --include ./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-compose.h --include ./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-keysyms.h --sys-include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon.h" --sys-include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-compose.h" --sys-include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-keysyms.h" --soname libxkbcommon.so.0 --init-name xkbcommon --output-header ./platform/linuxbsd/xkbcommon-so_wrap.h --output-implementation ./platform/linuxbsd/xkbcommon-so_wrap.c
  5. //
  6. #include <stdint.h>
  7. #define xkb_keysym_get_name xkb_keysym_get_name_dylibloader_orig_xkbcommon
  8. #define xkb_keysym_from_name xkb_keysym_from_name_dylibloader_orig_xkbcommon
  9. #define xkb_keysym_to_utf8 xkb_keysym_to_utf8_dylibloader_orig_xkbcommon
  10. #define xkb_keysym_to_utf32 xkb_keysym_to_utf32_dylibloader_orig_xkbcommon
  11. #define xkb_utf32_to_keysym xkb_utf32_to_keysym_dylibloader_orig_xkbcommon
  12. #define xkb_keysym_to_upper xkb_keysym_to_upper_dylibloader_orig_xkbcommon
  13. #define xkb_keysym_to_lower xkb_keysym_to_lower_dylibloader_orig_xkbcommon
  14. #define xkb_context_new xkb_context_new_dylibloader_orig_xkbcommon
  15. #define xkb_context_ref xkb_context_ref_dylibloader_orig_xkbcommon
  16. #define xkb_context_unref xkb_context_unref_dylibloader_orig_xkbcommon
  17. #define xkb_context_set_user_data xkb_context_set_user_data_dylibloader_orig_xkbcommon
  18. #define xkb_context_get_user_data xkb_context_get_user_data_dylibloader_orig_xkbcommon
  19. #define xkb_context_include_path_append xkb_context_include_path_append_dylibloader_orig_xkbcommon
  20. #define xkb_context_include_path_append_default xkb_context_include_path_append_default_dylibloader_orig_xkbcommon
  21. #define xkb_context_include_path_reset_defaults xkb_context_include_path_reset_defaults_dylibloader_orig_xkbcommon
  22. #define xkb_context_include_path_clear xkb_context_include_path_clear_dylibloader_orig_xkbcommon
  23. #define xkb_context_num_include_paths xkb_context_num_include_paths_dylibloader_orig_xkbcommon
  24. #define xkb_context_include_path_get xkb_context_include_path_get_dylibloader_orig_xkbcommon
  25. #define xkb_context_set_log_level xkb_context_set_log_level_dylibloader_orig_xkbcommon
  26. #define xkb_context_get_log_level xkb_context_get_log_level_dylibloader_orig_xkbcommon
  27. #define xkb_context_set_log_verbosity xkb_context_set_log_verbosity_dylibloader_orig_xkbcommon
  28. #define xkb_context_get_log_verbosity xkb_context_get_log_verbosity_dylibloader_orig_xkbcommon
  29. #define xkb_context_set_log_fn xkb_context_set_log_fn_dylibloader_orig_xkbcommon
  30. #define xkb_keymap_new_from_names xkb_keymap_new_from_names_dylibloader_orig_xkbcommon
  31. #define xkb_keymap_new_from_file xkb_keymap_new_from_file_dylibloader_orig_xkbcommon
  32. #define xkb_keymap_new_from_string xkb_keymap_new_from_string_dylibloader_orig_xkbcommon
  33. #define xkb_keymap_new_from_buffer xkb_keymap_new_from_buffer_dylibloader_orig_xkbcommon
  34. #define xkb_keymap_ref xkb_keymap_ref_dylibloader_orig_xkbcommon
  35. #define xkb_keymap_unref xkb_keymap_unref_dylibloader_orig_xkbcommon
  36. #define xkb_keymap_get_as_string xkb_keymap_get_as_string_dylibloader_orig_xkbcommon
  37. #define xkb_keymap_min_keycode xkb_keymap_min_keycode_dylibloader_orig_xkbcommon
  38. #define xkb_keymap_max_keycode xkb_keymap_max_keycode_dylibloader_orig_xkbcommon
  39. #define xkb_keymap_key_for_each xkb_keymap_key_for_each_dylibloader_orig_xkbcommon
  40. #define xkb_keymap_key_get_name xkb_keymap_key_get_name_dylibloader_orig_xkbcommon
  41. #define xkb_keymap_key_by_name xkb_keymap_key_by_name_dylibloader_orig_xkbcommon
  42. #define xkb_keymap_num_mods xkb_keymap_num_mods_dylibloader_orig_xkbcommon
  43. #define xkb_keymap_mod_get_name xkb_keymap_mod_get_name_dylibloader_orig_xkbcommon
  44. #define xkb_keymap_mod_get_index xkb_keymap_mod_get_index_dylibloader_orig_xkbcommon
  45. #define xkb_keymap_num_layouts xkb_keymap_num_layouts_dylibloader_orig_xkbcommon
  46. #define xkb_keymap_layout_get_name xkb_keymap_layout_get_name_dylibloader_orig_xkbcommon
  47. #define xkb_keymap_layout_get_index xkb_keymap_layout_get_index_dylibloader_orig_xkbcommon
  48. #define xkb_keymap_num_leds xkb_keymap_num_leds_dylibloader_orig_xkbcommon
  49. #define xkb_keymap_led_get_name xkb_keymap_led_get_name_dylibloader_orig_xkbcommon
  50. #define xkb_keymap_led_get_index xkb_keymap_led_get_index_dylibloader_orig_xkbcommon
  51. #define xkb_keymap_num_layouts_for_key xkb_keymap_num_layouts_for_key_dylibloader_orig_xkbcommon
  52. #define xkb_keymap_num_levels_for_key xkb_keymap_num_levels_for_key_dylibloader_orig_xkbcommon
  53. #define xkb_keymap_key_get_mods_for_level xkb_keymap_key_get_mods_for_level_dylibloader_orig_xkbcommon
  54. #define xkb_keymap_key_get_syms_by_level xkb_keymap_key_get_syms_by_level_dylibloader_orig_xkbcommon
  55. #define xkb_keymap_key_repeats xkb_keymap_key_repeats_dylibloader_orig_xkbcommon
  56. #define xkb_state_new xkb_state_new_dylibloader_orig_xkbcommon
  57. #define xkb_state_ref xkb_state_ref_dylibloader_orig_xkbcommon
  58. #define xkb_state_unref xkb_state_unref_dylibloader_orig_xkbcommon
  59. #define xkb_state_get_keymap xkb_state_get_keymap_dylibloader_orig_xkbcommon
  60. #define xkb_state_update_key xkb_state_update_key_dylibloader_orig_xkbcommon
  61. #define xkb_state_update_mask xkb_state_update_mask_dylibloader_orig_xkbcommon
  62. #define xkb_state_key_get_syms xkb_state_key_get_syms_dylibloader_orig_xkbcommon
  63. #define xkb_state_key_get_utf8 xkb_state_key_get_utf8_dylibloader_orig_xkbcommon
  64. #define xkb_state_key_get_utf32 xkb_state_key_get_utf32_dylibloader_orig_xkbcommon
  65. #define xkb_state_key_get_one_sym xkb_state_key_get_one_sym_dylibloader_orig_xkbcommon
  66. #define xkb_state_key_get_layout xkb_state_key_get_layout_dylibloader_orig_xkbcommon
  67. #define xkb_state_key_get_level xkb_state_key_get_level_dylibloader_orig_xkbcommon
  68. #define xkb_state_serialize_mods xkb_state_serialize_mods_dylibloader_orig_xkbcommon
  69. #define xkb_state_serialize_layout xkb_state_serialize_layout_dylibloader_orig_xkbcommon
  70. #define xkb_state_mod_name_is_active xkb_state_mod_name_is_active_dylibloader_orig_xkbcommon
  71. #define xkb_state_mod_names_are_active xkb_state_mod_names_are_active_dylibloader_orig_xkbcommon
  72. #define xkb_state_mod_index_is_active xkb_state_mod_index_is_active_dylibloader_orig_xkbcommon
  73. #define xkb_state_mod_indices_are_active xkb_state_mod_indices_are_active_dylibloader_orig_xkbcommon
  74. #define xkb_state_key_get_consumed_mods2 xkb_state_key_get_consumed_mods2_dylibloader_orig_xkbcommon
  75. #define xkb_state_key_get_consumed_mods xkb_state_key_get_consumed_mods_dylibloader_orig_xkbcommon
  76. #define xkb_state_mod_index_is_consumed2 xkb_state_mod_index_is_consumed2_dylibloader_orig_xkbcommon
  77. #define xkb_state_mod_index_is_consumed xkb_state_mod_index_is_consumed_dylibloader_orig_xkbcommon
  78. #define xkb_state_mod_mask_remove_consumed xkb_state_mod_mask_remove_consumed_dylibloader_orig_xkbcommon
  79. #define xkb_state_layout_name_is_active xkb_state_layout_name_is_active_dylibloader_orig_xkbcommon
  80. #define xkb_state_layout_index_is_active xkb_state_layout_index_is_active_dylibloader_orig_xkbcommon
  81. #define xkb_state_led_name_is_active xkb_state_led_name_is_active_dylibloader_orig_xkbcommon
  82. #define xkb_state_led_index_is_active xkb_state_led_index_is_active_dylibloader_orig_xkbcommon
  83. #define xkb_compose_table_new_from_locale xkb_compose_table_new_from_locale_dylibloader_orig_xkbcommon
  84. #define xkb_compose_table_new_from_file xkb_compose_table_new_from_file_dylibloader_orig_xkbcommon
  85. #define xkb_compose_table_new_from_buffer xkb_compose_table_new_from_buffer_dylibloader_orig_xkbcommon
  86. #define xkb_compose_table_ref xkb_compose_table_ref_dylibloader_orig_xkbcommon
  87. #define xkb_compose_table_unref xkb_compose_table_unref_dylibloader_orig_xkbcommon
  88. #define xkb_compose_state_new xkb_compose_state_new_dylibloader_orig_xkbcommon
  89. #define xkb_compose_state_ref xkb_compose_state_ref_dylibloader_orig_xkbcommon
  90. #define xkb_compose_state_unref xkb_compose_state_unref_dylibloader_orig_xkbcommon
  91. #define xkb_compose_state_get_compose_table xkb_compose_state_get_compose_table_dylibloader_orig_xkbcommon
  92. #define xkb_compose_state_feed xkb_compose_state_feed_dylibloader_orig_xkbcommon
  93. #define xkb_compose_state_reset xkb_compose_state_reset_dylibloader_orig_xkbcommon
  94. #define xkb_compose_state_get_status xkb_compose_state_get_status_dylibloader_orig_xkbcommon
  95. #define xkb_compose_state_get_utf8 xkb_compose_state_get_utf8_dylibloader_orig_xkbcommon
  96. #define xkb_compose_state_get_one_sym xkb_compose_state_get_one_sym_dylibloader_orig_xkbcommon
  97. #include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon.h"
  98. #include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-compose.h"
  99. #include "./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-keysyms.h"
  100. #undef xkb_keysym_get_name
  101. #undef xkb_keysym_from_name
  102. #undef xkb_keysym_to_utf8
  103. #undef xkb_keysym_to_utf32
  104. #undef xkb_utf32_to_keysym
  105. #undef xkb_keysym_to_upper
  106. #undef xkb_keysym_to_lower
  107. #undef xkb_context_new
  108. #undef xkb_context_ref
  109. #undef xkb_context_unref
  110. #undef xkb_context_set_user_data
  111. #undef xkb_context_get_user_data
  112. #undef xkb_context_include_path_append
  113. #undef xkb_context_include_path_append_default
  114. #undef xkb_context_include_path_reset_defaults
  115. #undef xkb_context_include_path_clear
  116. #undef xkb_context_num_include_paths
  117. #undef xkb_context_include_path_get
  118. #undef xkb_context_set_log_level
  119. #undef xkb_context_get_log_level
  120. #undef xkb_context_set_log_verbosity
  121. #undef xkb_context_get_log_verbosity
  122. #undef xkb_context_set_log_fn
  123. #undef xkb_keymap_new_from_names
  124. #undef xkb_keymap_new_from_file
  125. #undef xkb_keymap_new_from_string
  126. #undef xkb_keymap_new_from_buffer
  127. #undef xkb_keymap_ref
  128. #undef xkb_keymap_unref
  129. #undef xkb_keymap_get_as_string
  130. #undef xkb_keymap_min_keycode
  131. #undef xkb_keymap_max_keycode
  132. #undef xkb_keymap_key_for_each
  133. #undef xkb_keymap_key_get_name
  134. #undef xkb_keymap_key_by_name
  135. #undef xkb_keymap_num_mods
  136. #undef xkb_keymap_mod_get_name
  137. #undef xkb_keymap_mod_get_index
  138. #undef xkb_keymap_num_layouts
  139. #undef xkb_keymap_layout_get_name
  140. #undef xkb_keymap_layout_get_index
  141. #undef xkb_keymap_num_leds
  142. #undef xkb_keymap_led_get_name
  143. #undef xkb_keymap_led_get_index
  144. #undef xkb_keymap_num_layouts_for_key
  145. #undef xkb_keymap_num_levels_for_key
  146. #undef xkb_keymap_key_get_mods_for_level
  147. #undef xkb_keymap_key_get_syms_by_level
  148. #undef xkb_keymap_key_repeats
  149. #undef xkb_state_new
  150. #undef xkb_state_ref
  151. #undef xkb_state_unref
  152. #undef xkb_state_get_keymap
  153. #undef xkb_state_update_key
  154. #undef xkb_state_update_mask
  155. #undef xkb_state_key_get_syms
  156. #undef xkb_state_key_get_utf8
  157. #undef xkb_state_key_get_utf32
  158. #undef xkb_state_key_get_one_sym
  159. #undef xkb_state_key_get_layout
  160. #undef xkb_state_key_get_level
  161. #undef xkb_state_serialize_mods
  162. #undef xkb_state_serialize_layout
  163. #undef xkb_state_mod_name_is_active
  164. #undef xkb_state_mod_names_are_active
  165. #undef xkb_state_mod_index_is_active
  166. #undef xkb_state_mod_indices_are_active
  167. #undef xkb_state_key_get_consumed_mods2
  168. #undef xkb_state_key_get_consumed_mods
  169. #undef xkb_state_mod_index_is_consumed2
  170. #undef xkb_state_mod_index_is_consumed
  171. #undef xkb_state_mod_mask_remove_consumed
  172. #undef xkb_state_layout_name_is_active
  173. #undef xkb_state_layout_index_is_active
  174. #undef xkb_state_led_name_is_active
  175. #undef xkb_state_led_index_is_active
  176. #undef xkb_compose_table_new_from_locale
  177. #undef xkb_compose_table_new_from_file
  178. #undef xkb_compose_table_new_from_buffer
  179. #undef xkb_compose_table_ref
  180. #undef xkb_compose_table_unref
  181. #undef xkb_compose_state_new
  182. #undef xkb_compose_state_ref
  183. #undef xkb_compose_state_unref
  184. #undef xkb_compose_state_get_compose_table
  185. #undef xkb_compose_state_feed
  186. #undef xkb_compose_state_reset
  187. #undef xkb_compose_state_get_status
  188. #undef xkb_compose_state_get_utf8
  189. #undef xkb_compose_state_get_one_sym
  190. #include <dlfcn.h>
  191. #include <stdio.h>
  192. int (*xkb_keysym_get_name_dylibloader_wrapper_xkbcommon)( xkb_keysym_t, char*, size_t);
  193. xkb_keysym_t (*xkb_keysym_from_name_dylibloader_wrapper_xkbcommon)(const char*,enum xkb_keysym_flags);
  194. int (*xkb_keysym_to_utf8_dylibloader_wrapper_xkbcommon)( xkb_keysym_t, char*, size_t);
  195. uint32_t (*xkb_keysym_to_utf32_dylibloader_wrapper_xkbcommon)( xkb_keysym_t);
  196. xkb_keysym_t (*xkb_utf32_to_keysym_dylibloader_wrapper_xkbcommon)( uint32_t);
  197. xkb_keysym_t (*xkb_keysym_to_upper_dylibloader_wrapper_xkbcommon)( xkb_keysym_t);
  198. xkb_keysym_t (*xkb_keysym_to_lower_dylibloader_wrapper_xkbcommon)( xkb_keysym_t);
  199. struct xkb_context* (*xkb_context_new_dylibloader_wrapper_xkbcommon)(enum xkb_context_flags);
  200. struct xkb_context* (*xkb_context_ref_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  201. void (*xkb_context_unref_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  202. void (*xkb_context_set_user_data_dylibloader_wrapper_xkbcommon)(struct xkb_context*, void*);
  203. void* (*xkb_context_get_user_data_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  204. int (*xkb_context_include_path_append_dylibloader_wrapper_xkbcommon)(struct xkb_context*,const char*);
  205. int (*xkb_context_include_path_append_default_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  206. int (*xkb_context_include_path_reset_defaults_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  207. void (*xkb_context_include_path_clear_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  208. unsigned int (*xkb_context_num_include_paths_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  209. const char* (*xkb_context_include_path_get_dylibloader_wrapper_xkbcommon)(struct xkb_context*, unsigned int);
  210. void (*xkb_context_set_log_level_dylibloader_wrapper_xkbcommon)(struct xkb_context*,enum xkb_log_level);
  211. enum xkb_log_level (*xkb_context_get_log_level_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  212. void (*xkb_context_set_log_verbosity_dylibloader_wrapper_xkbcommon)(struct xkb_context*, int);
  213. int (*xkb_context_get_log_verbosity_dylibloader_wrapper_xkbcommon)(struct xkb_context*);
  214. void (*xkb_context_set_log_fn_dylibloader_wrapper_xkbcommon)(struct xkb_context*, void*);
  215. struct xkb_keymap* (*xkb_keymap_new_from_names_dylibloader_wrapper_xkbcommon)(struct xkb_context*,struct xkb_rule_names*,enum xkb_keymap_compile_flags);
  216. struct xkb_keymap* (*xkb_keymap_new_from_file_dylibloader_wrapper_xkbcommon)(struct xkb_context*, FILE*,enum xkb_keymap_format,enum xkb_keymap_compile_flags);
  217. struct xkb_keymap* (*xkb_keymap_new_from_string_dylibloader_wrapper_xkbcommon)(struct xkb_context*,const char*,enum xkb_keymap_format,enum xkb_keymap_compile_flags);
  218. struct xkb_keymap* (*xkb_keymap_new_from_buffer_dylibloader_wrapper_xkbcommon)(struct xkb_context*,const char*, size_t,enum xkb_keymap_format,enum xkb_keymap_compile_flags);
  219. struct xkb_keymap* (*xkb_keymap_ref_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  220. void (*xkb_keymap_unref_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  221. char* (*xkb_keymap_get_as_string_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*,enum xkb_keymap_format);
  222. xkb_keycode_t (*xkb_keymap_min_keycode_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  223. xkb_keycode_t (*xkb_keymap_max_keycode_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  224. void (*xkb_keymap_key_for_each_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keymap_key_iter_t, void*);
  225. const char* (*xkb_keymap_key_get_name_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t);
  226. xkb_keycode_t (*xkb_keymap_key_by_name_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*,const char*);
  227. xkb_mod_index_t (*xkb_keymap_num_mods_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  228. const char* (*xkb_keymap_mod_get_name_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_mod_index_t);
  229. xkb_mod_index_t (*xkb_keymap_mod_get_index_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*,const char*);
  230. xkb_layout_index_t (*xkb_keymap_num_layouts_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  231. const char* (*xkb_keymap_layout_get_name_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_layout_index_t);
  232. xkb_layout_index_t (*xkb_keymap_layout_get_index_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*,const char*);
  233. xkb_led_index_t (*xkb_keymap_num_leds_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  234. const char* (*xkb_keymap_led_get_name_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_led_index_t);
  235. xkb_led_index_t (*xkb_keymap_led_get_index_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*,const char*);
  236. xkb_layout_index_t (*xkb_keymap_num_layouts_for_key_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t);
  237. xkb_level_index_t (*xkb_keymap_num_levels_for_key_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t, xkb_layout_index_t);
  238. size_t (*xkb_keymap_key_get_mods_for_level_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t, xkb_layout_index_t, xkb_level_index_t, xkb_mod_mask_t*, size_t);
  239. int (*xkb_keymap_key_get_syms_by_level_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t, xkb_layout_index_t, xkb_level_index_t,const xkb_keysym_t**);
  240. int (*xkb_keymap_key_repeats_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*, xkb_keycode_t);
  241. struct xkb_state* (*xkb_state_new_dylibloader_wrapper_xkbcommon)(struct xkb_keymap*);
  242. struct xkb_state* (*xkb_state_ref_dylibloader_wrapper_xkbcommon)(struct xkb_state*);
  243. void (*xkb_state_unref_dylibloader_wrapper_xkbcommon)(struct xkb_state*);
  244. struct xkb_keymap* (*xkb_state_get_keymap_dylibloader_wrapper_xkbcommon)(struct xkb_state*);
  245. enum xkb_state_component (*xkb_state_update_key_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t,enum xkb_key_direction);
  246. enum xkb_state_component (*xkb_state_update_mask_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_mod_mask_t, xkb_mod_mask_t, xkb_mod_mask_t, xkb_layout_index_t, xkb_layout_index_t, xkb_layout_index_t);
  247. int (*xkb_state_key_get_syms_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t,const xkb_keysym_t**);
  248. int (*xkb_state_key_get_utf8_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t, char*, size_t);
  249. uint32_t (*xkb_state_key_get_utf32_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t);
  250. xkb_keysym_t (*xkb_state_key_get_one_sym_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t);
  251. xkb_layout_index_t (*xkb_state_key_get_layout_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t);
  252. xkb_level_index_t (*xkb_state_key_get_level_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t, xkb_layout_index_t);
  253. xkb_mod_mask_t (*xkb_state_serialize_mods_dylibloader_wrapper_xkbcommon)(struct xkb_state*,enum xkb_state_component);
  254. xkb_layout_index_t (*xkb_state_serialize_layout_dylibloader_wrapper_xkbcommon)(struct xkb_state*,enum xkb_state_component);
  255. int (*xkb_state_mod_name_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*,const char*,enum xkb_state_component);
  256. int (*xkb_state_mod_names_are_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*,enum xkb_state_component,enum xkb_state_match,...);
  257. int (*xkb_state_mod_index_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_mod_index_t,enum xkb_state_component);
  258. int (*xkb_state_mod_indices_are_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*,enum xkb_state_component,enum xkb_state_match,...);
  259. xkb_mod_mask_t (*xkb_state_key_get_consumed_mods2_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t,enum xkb_consumed_mode);
  260. xkb_mod_mask_t (*xkb_state_key_get_consumed_mods_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t);
  261. int (*xkb_state_mod_index_is_consumed2_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t, xkb_mod_index_t,enum xkb_consumed_mode);
  262. int (*xkb_state_mod_index_is_consumed_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t, xkb_mod_index_t);
  263. xkb_mod_mask_t (*xkb_state_mod_mask_remove_consumed_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_keycode_t, xkb_mod_mask_t);
  264. int (*xkb_state_layout_name_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*,const char*,enum xkb_state_component);
  265. int (*xkb_state_layout_index_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_layout_index_t,enum xkb_state_component);
  266. int (*xkb_state_led_name_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*,const char*);
  267. int (*xkb_state_led_index_is_active_dylibloader_wrapper_xkbcommon)(struct xkb_state*, xkb_led_index_t);
  268. struct xkb_compose_table* (*xkb_compose_table_new_from_locale_dylibloader_wrapper_xkbcommon)(struct xkb_context*,const char*,enum xkb_compose_compile_flags);
  269. struct xkb_compose_table* (*xkb_compose_table_new_from_file_dylibloader_wrapper_xkbcommon)(struct xkb_context*, FILE*,const char*,enum xkb_compose_format,enum xkb_compose_compile_flags);
  270. struct xkb_compose_table* (*xkb_compose_table_new_from_buffer_dylibloader_wrapper_xkbcommon)(struct xkb_context*,const char*, size_t,const char*,enum xkb_compose_format,enum xkb_compose_compile_flags);
  271. struct xkb_compose_table* (*xkb_compose_table_ref_dylibloader_wrapper_xkbcommon)(struct xkb_compose_table*);
  272. void (*xkb_compose_table_unref_dylibloader_wrapper_xkbcommon)(struct xkb_compose_table*);
  273. struct xkb_compose_state* (*xkb_compose_state_new_dylibloader_wrapper_xkbcommon)(struct xkb_compose_table*,enum xkb_compose_state_flags);
  274. struct xkb_compose_state* (*xkb_compose_state_ref_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  275. void (*xkb_compose_state_unref_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  276. struct xkb_compose_table* (*xkb_compose_state_get_compose_table_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  277. enum xkb_compose_feed_result (*xkb_compose_state_feed_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*, xkb_keysym_t);
  278. void (*xkb_compose_state_reset_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  279. enum xkb_compose_status (*xkb_compose_state_get_status_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  280. int (*xkb_compose_state_get_utf8_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*, char*, size_t);
  281. xkb_keysym_t (*xkb_compose_state_get_one_sym_dylibloader_wrapper_xkbcommon)(struct xkb_compose_state*);
  282. int initialize_xkbcommon(int verbose) {
  283. void *handle;
  284. char *error;
  285. handle = dlopen("libxkbcommon.so.0", RTLD_LAZY);
  286. if (!handle) {
  287. if (verbose) {
  288. fprintf(stderr, "%s\n", dlerror());
  289. }
  290. return(1);
  291. }
  292. dlerror();
  293. // xkb_keysym_get_name
  294. *(void **) (&xkb_keysym_get_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_get_name");
  295. if (verbose) {
  296. error = dlerror();
  297. if (error != NULL) {
  298. fprintf(stderr, "%s\n", error);
  299. }
  300. }
  301. // xkb_keysym_from_name
  302. *(void **) (&xkb_keysym_from_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_from_name");
  303. if (verbose) {
  304. error = dlerror();
  305. if (error != NULL) {
  306. fprintf(stderr, "%s\n", error);
  307. }
  308. }
  309. // xkb_keysym_to_utf8
  310. *(void **) (&xkb_keysym_to_utf8_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_to_utf8");
  311. if (verbose) {
  312. error = dlerror();
  313. if (error != NULL) {
  314. fprintf(stderr, "%s\n", error);
  315. }
  316. }
  317. // xkb_keysym_to_utf32
  318. *(void **) (&xkb_keysym_to_utf32_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_to_utf32");
  319. if (verbose) {
  320. error = dlerror();
  321. if (error != NULL) {
  322. fprintf(stderr, "%s\n", error);
  323. }
  324. }
  325. // xkb_utf32_to_keysym
  326. *(void **) (&xkb_utf32_to_keysym_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_utf32_to_keysym");
  327. if (verbose) {
  328. error = dlerror();
  329. if (error != NULL) {
  330. fprintf(stderr, "%s\n", error);
  331. }
  332. }
  333. // xkb_keysym_to_upper
  334. *(void **) (&xkb_keysym_to_upper_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_to_upper");
  335. if (verbose) {
  336. error = dlerror();
  337. if (error != NULL) {
  338. fprintf(stderr, "%s\n", error);
  339. }
  340. }
  341. // xkb_keysym_to_lower
  342. *(void **) (&xkb_keysym_to_lower_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keysym_to_lower");
  343. if (verbose) {
  344. error = dlerror();
  345. if (error != NULL) {
  346. fprintf(stderr, "%s\n", error);
  347. }
  348. }
  349. // xkb_context_new
  350. *(void **) (&xkb_context_new_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_new");
  351. if (verbose) {
  352. error = dlerror();
  353. if (error != NULL) {
  354. fprintf(stderr, "%s\n", error);
  355. }
  356. }
  357. // xkb_context_ref
  358. *(void **) (&xkb_context_ref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_ref");
  359. if (verbose) {
  360. error = dlerror();
  361. if (error != NULL) {
  362. fprintf(stderr, "%s\n", error);
  363. }
  364. }
  365. // xkb_context_unref
  366. *(void **) (&xkb_context_unref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_unref");
  367. if (verbose) {
  368. error = dlerror();
  369. if (error != NULL) {
  370. fprintf(stderr, "%s\n", error);
  371. }
  372. }
  373. // xkb_context_set_user_data
  374. *(void **) (&xkb_context_set_user_data_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_set_user_data");
  375. if (verbose) {
  376. error = dlerror();
  377. if (error != NULL) {
  378. fprintf(stderr, "%s\n", error);
  379. }
  380. }
  381. // xkb_context_get_user_data
  382. *(void **) (&xkb_context_get_user_data_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_get_user_data");
  383. if (verbose) {
  384. error = dlerror();
  385. if (error != NULL) {
  386. fprintf(stderr, "%s\n", error);
  387. }
  388. }
  389. // xkb_context_include_path_append
  390. *(void **) (&xkb_context_include_path_append_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_include_path_append");
  391. if (verbose) {
  392. error = dlerror();
  393. if (error != NULL) {
  394. fprintf(stderr, "%s\n", error);
  395. }
  396. }
  397. // xkb_context_include_path_append_default
  398. *(void **) (&xkb_context_include_path_append_default_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_include_path_append_default");
  399. if (verbose) {
  400. error = dlerror();
  401. if (error != NULL) {
  402. fprintf(stderr, "%s\n", error);
  403. }
  404. }
  405. // xkb_context_include_path_reset_defaults
  406. *(void **) (&xkb_context_include_path_reset_defaults_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_include_path_reset_defaults");
  407. if (verbose) {
  408. error = dlerror();
  409. if (error != NULL) {
  410. fprintf(stderr, "%s\n", error);
  411. }
  412. }
  413. // xkb_context_include_path_clear
  414. *(void **) (&xkb_context_include_path_clear_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_include_path_clear");
  415. if (verbose) {
  416. error = dlerror();
  417. if (error != NULL) {
  418. fprintf(stderr, "%s\n", error);
  419. }
  420. }
  421. // xkb_context_num_include_paths
  422. *(void **) (&xkb_context_num_include_paths_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_num_include_paths");
  423. if (verbose) {
  424. error = dlerror();
  425. if (error != NULL) {
  426. fprintf(stderr, "%s\n", error);
  427. }
  428. }
  429. // xkb_context_include_path_get
  430. *(void **) (&xkb_context_include_path_get_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_include_path_get");
  431. if (verbose) {
  432. error = dlerror();
  433. if (error != NULL) {
  434. fprintf(stderr, "%s\n", error);
  435. }
  436. }
  437. // xkb_context_set_log_level
  438. *(void **) (&xkb_context_set_log_level_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_set_log_level");
  439. if (verbose) {
  440. error = dlerror();
  441. if (error != NULL) {
  442. fprintf(stderr, "%s\n", error);
  443. }
  444. }
  445. // xkb_context_get_log_level
  446. *(void **) (&xkb_context_get_log_level_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_get_log_level");
  447. if (verbose) {
  448. error = dlerror();
  449. if (error != NULL) {
  450. fprintf(stderr, "%s\n", error);
  451. }
  452. }
  453. // xkb_context_set_log_verbosity
  454. *(void **) (&xkb_context_set_log_verbosity_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_set_log_verbosity");
  455. if (verbose) {
  456. error = dlerror();
  457. if (error != NULL) {
  458. fprintf(stderr, "%s\n", error);
  459. }
  460. }
  461. // xkb_context_get_log_verbosity
  462. *(void **) (&xkb_context_get_log_verbosity_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_get_log_verbosity");
  463. if (verbose) {
  464. error = dlerror();
  465. if (error != NULL) {
  466. fprintf(stderr, "%s\n", error);
  467. }
  468. }
  469. // xkb_context_set_log_fn
  470. *(void **) (&xkb_context_set_log_fn_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_context_set_log_fn");
  471. if (verbose) {
  472. error = dlerror();
  473. if (error != NULL) {
  474. fprintf(stderr, "%s\n", error);
  475. }
  476. }
  477. // xkb_keymap_new_from_names
  478. *(void **) (&xkb_keymap_new_from_names_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_new_from_names");
  479. if (verbose) {
  480. error = dlerror();
  481. if (error != NULL) {
  482. fprintf(stderr, "%s\n", error);
  483. }
  484. }
  485. // xkb_keymap_new_from_file
  486. *(void **) (&xkb_keymap_new_from_file_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_new_from_file");
  487. if (verbose) {
  488. error = dlerror();
  489. if (error != NULL) {
  490. fprintf(stderr, "%s\n", error);
  491. }
  492. }
  493. // xkb_keymap_new_from_string
  494. *(void **) (&xkb_keymap_new_from_string_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_new_from_string");
  495. if (verbose) {
  496. error = dlerror();
  497. if (error != NULL) {
  498. fprintf(stderr, "%s\n", error);
  499. }
  500. }
  501. // xkb_keymap_new_from_buffer
  502. *(void **) (&xkb_keymap_new_from_buffer_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_new_from_buffer");
  503. if (verbose) {
  504. error = dlerror();
  505. if (error != NULL) {
  506. fprintf(stderr, "%s\n", error);
  507. }
  508. }
  509. // xkb_keymap_ref
  510. *(void **) (&xkb_keymap_ref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_ref");
  511. if (verbose) {
  512. error = dlerror();
  513. if (error != NULL) {
  514. fprintf(stderr, "%s\n", error);
  515. }
  516. }
  517. // xkb_keymap_unref
  518. *(void **) (&xkb_keymap_unref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_unref");
  519. if (verbose) {
  520. error = dlerror();
  521. if (error != NULL) {
  522. fprintf(stderr, "%s\n", error);
  523. }
  524. }
  525. // xkb_keymap_get_as_string
  526. *(void **) (&xkb_keymap_get_as_string_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_get_as_string");
  527. if (verbose) {
  528. error = dlerror();
  529. if (error != NULL) {
  530. fprintf(stderr, "%s\n", error);
  531. }
  532. }
  533. // xkb_keymap_min_keycode
  534. *(void **) (&xkb_keymap_min_keycode_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_min_keycode");
  535. if (verbose) {
  536. error = dlerror();
  537. if (error != NULL) {
  538. fprintf(stderr, "%s\n", error);
  539. }
  540. }
  541. // xkb_keymap_max_keycode
  542. *(void **) (&xkb_keymap_max_keycode_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_max_keycode");
  543. if (verbose) {
  544. error = dlerror();
  545. if (error != NULL) {
  546. fprintf(stderr, "%s\n", error);
  547. }
  548. }
  549. // xkb_keymap_key_for_each
  550. *(void **) (&xkb_keymap_key_for_each_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_for_each");
  551. if (verbose) {
  552. error = dlerror();
  553. if (error != NULL) {
  554. fprintf(stderr, "%s\n", error);
  555. }
  556. }
  557. // xkb_keymap_key_get_name
  558. *(void **) (&xkb_keymap_key_get_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_get_name");
  559. if (verbose) {
  560. error = dlerror();
  561. if (error != NULL) {
  562. fprintf(stderr, "%s\n", error);
  563. }
  564. }
  565. // xkb_keymap_key_by_name
  566. *(void **) (&xkb_keymap_key_by_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_by_name");
  567. if (verbose) {
  568. error = dlerror();
  569. if (error != NULL) {
  570. fprintf(stderr, "%s\n", error);
  571. }
  572. }
  573. // xkb_keymap_num_mods
  574. *(void **) (&xkb_keymap_num_mods_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_num_mods");
  575. if (verbose) {
  576. error = dlerror();
  577. if (error != NULL) {
  578. fprintf(stderr, "%s\n", error);
  579. }
  580. }
  581. // xkb_keymap_mod_get_name
  582. *(void **) (&xkb_keymap_mod_get_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_mod_get_name");
  583. if (verbose) {
  584. error = dlerror();
  585. if (error != NULL) {
  586. fprintf(stderr, "%s\n", error);
  587. }
  588. }
  589. // xkb_keymap_mod_get_index
  590. *(void **) (&xkb_keymap_mod_get_index_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_mod_get_index");
  591. if (verbose) {
  592. error = dlerror();
  593. if (error != NULL) {
  594. fprintf(stderr, "%s\n", error);
  595. }
  596. }
  597. // xkb_keymap_num_layouts
  598. *(void **) (&xkb_keymap_num_layouts_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_num_layouts");
  599. if (verbose) {
  600. error = dlerror();
  601. if (error != NULL) {
  602. fprintf(stderr, "%s\n", error);
  603. }
  604. }
  605. // xkb_keymap_layout_get_name
  606. *(void **) (&xkb_keymap_layout_get_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_layout_get_name");
  607. if (verbose) {
  608. error = dlerror();
  609. if (error != NULL) {
  610. fprintf(stderr, "%s\n", error);
  611. }
  612. }
  613. // xkb_keymap_layout_get_index
  614. *(void **) (&xkb_keymap_layout_get_index_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_layout_get_index");
  615. if (verbose) {
  616. error = dlerror();
  617. if (error != NULL) {
  618. fprintf(stderr, "%s\n", error);
  619. }
  620. }
  621. // xkb_keymap_num_leds
  622. *(void **) (&xkb_keymap_num_leds_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_num_leds");
  623. if (verbose) {
  624. error = dlerror();
  625. if (error != NULL) {
  626. fprintf(stderr, "%s\n", error);
  627. }
  628. }
  629. // xkb_keymap_led_get_name
  630. *(void **) (&xkb_keymap_led_get_name_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_led_get_name");
  631. if (verbose) {
  632. error = dlerror();
  633. if (error != NULL) {
  634. fprintf(stderr, "%s\n", error);
  635. }
  636. }
  637. // xkb_keymap_led_get_index
  638. *(void **) (&xkb_keymap_led_get_index_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_led_get_index");
  639. if (verbose) {
  640. error = dlerror();
  641. if (error != NULL) {
  642. fprintf(stderr, "%s\n", error);
  643. }
  644. }
  645. // xkb_keymap_num_layouts_for_key
  646. *(void **) (&xkb_keymap_num_layouts_for_key_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_num_layouts_for_key");
  647. if (verbose) {
  648. error = dlerror();
  649. if (error != NULL) {
  650. fprintf(stderr, "%s\n", error);
  651. }
  652. }
  653. // xkb_keymap_num_levels_for_key
  654. *(void **) (&xkb_keymap_num_levels_for_key_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_num_levels_for_key");
  655. if (verbose) {
  656. error = dlerror();
  657. if (error != NULL) {
  658. fprintf(stderr, "%s\n", error);
  659. }
  660. }
  661. // xkb_keymap_key_get_mods_for_level
  662. *(void **) (&xkb_keymap_key_get_mods_for_level_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_get_mods_for_level");
  663. if (verbose) {
  664. error = dlerror();
  665. if (error != NULL) {
  666. fprintf(stderr, "%s\n", error);
  667. }
  668. }
  669. // xkb_keymap_key_get_syms_by_level
  670. *(void **) (&xkb_keymap_key_get_syms_by_level_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_get_syms_by_level");
  671. if (verbose) {
  672. error = dlerror();
  673. if (error != NULL) {
  674. fprintf(stderr, "%s\n", error);
  675. }
  676. }
  677. // xkb_keymap_key_repeats
  678. *(void **) (&xkb_keymap_key_repeats_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_keymap_key_repeats");
  679. if (verbose) {
  680. error = dlerror();
  681. if (error != NULL) {
  682. fprintf(stderr, "%s\n", error);
  683. }
  684. }
  685. // xkb_state_new
  686. *(void **) (&xkb_state_new_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_new");
  687. if (verbose) {
  688. error = dlerror();
  689. if (error != NULL) {
  690. fprintf(stderr, "%s\n", error);
  691. }
  692. }
  693. // xkb_state_ref
  694. *(void **) (&xkb_state_ref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_ref");
  695. if (verbose) {
  696. error = dlerror();
  697. if (error != NULL) {
  698. fprintf(stderr, "%s\n", error);
  699. }
  700. }
  701. // xkb_state_unref
  702. *(void **) (&xkb_state_unref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_unref");
  703. if (verbose) {
  704. error = dlerror();
  705. if (error != NULL) {
  706. fprintf(stderr, "%s\n", error);
  707. }
  708. }
  709. // xkb_state_get_keymap
  710. *(void **) (&xkb_state_get_keymap_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_get_keymap");
  711. if (verbose) {
  712. error = dlerror();
  713. if (error != NULL) {
  714. fprintf(stderr, "%s\n", error);
  715. }
  716. }
  717. // xkb_state_update_key
  718. *(void **) (&xkb_state_update_key_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_update_key");
  719. if (verbose) {
  720. error = dlerror();
  721. if (error != NULL) {
  722. fprintf(stderr, "%s\n", error);
  723. }
  724. }
  725. // xkb_state_update_mask
  726. *(void **) (&xkb_state_update_mask_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_update_mask");
  727. if (verbose) {
  728. error = dlerror();
  729. if (error != NULL) {
  730. fprintf(stderr, "%s\n", error);
  731. }
  732. }
  733. // xkb_state_key_get_syms
  734. *(void **) (&xkb_state_key_get_syms_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_syms");
  735. if (verbose) {
  736. error = dlerror();
  737. if (error != NULL) {
  738. fprintf(stderr, "%s\n", error);
  739. }
  740. }
  741. // xkb_state_key_get_utf8
  742. *(void **) (&xkb_state_key_get_utf8_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_utf8");
  743. if (verbose) {
  744. error = dlerror();
  745. if (error != NULL) {
  746. fprintf(stderr, "%s\n", error);
  747. }
  748. }
  749. // xkb_state_key_get_utf32
  750. *(void **) (&xkb_state_key_get_utf32_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_utf32");
  751. if (verbose) {
  752. error = dlerror();
  753. if (error != NULL) {
  754. fprintf(stderr, "%s\n", error);
  755. }
  756. }
  757. // xkb_state_key_get_one_sym
  758. *(void **) (&xkb_state_key_get_one_sym_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_one_sym");
  759. if (verbose) {
  760. error = dlerror();
  761. if (error != NULL) {
  762. fprintf(stderr, "%s\n", error);
  763. }
  764. }
  765. // xkb_state_key_get_layout
  766. *(void **) (&xkb_state_key_get_layout_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_layout");
  767. if (verbose) {
  768. error = dlerror();
  769. if (error != NULL) {
  770. fprintf(stderr, "%s\n", error);
  771. }
  772. }
  773. // xkb_state_key_get_level
  774. *(void **) (&xkb_state_key_get_level_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_level");
  775. if (verbose) {
  776. error = dlerror();
  777. if (error != NULL) {
  778. fprintf(stderr, "%s\n", error);
  779. }
  780. }
  781. // xkb_state_serialize_mods
  782. *(void **) (&xkb_state_serialize_mods_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_serialize_mods");
  783. if (verbose) {
  784. error = dlerror();
  785. if (error != NULL) {
  786. fprintf(stderr, "%s\n", error);
  787. }
  788. }
  789. // xkb_state_serialize_layout
  790. *(void **) (&xkb_state_serialize_layout_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_serialize_layout");
  791. if (verbose) {
  792. error = dlerror();
  793. if (error != NULL) {
  794. fprintf(stderr, "%s\n", error);
  795. }
  796. }
  797. // xkb_state_mod_name_is_active
  798. *(void **) (&xkb_state_mod_name_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_name_is_active");
  799. if (verbose) {
  800. error = dlerror();
  801. if (error != NULL) {
  802. fprintf(stderr, "%s\n", error);
  803. }
  804. }
  805. // xkb_state_mod_names_are_active
  806. *(void **) (&xkb_state_mod_names_are_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_names_are_active");
  807. if (verbose) {
  808. error = dlerror();
  809. if (error != NULL) {
  810. fprintf(stderr, "%s\n", error);
  811. }
  812. }
  813. // xkb_state_mod_index_is_active
  814. *(void **) (&xkb_state_mod_index_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_index_is_active");
  815. if (verbose) {
  816. error = dlerror();
  817. if (error != NULL) {
  818. fprintf(stderr, "%s\n", error);
  819. }
  820. }
  821. // xkb_state_mod_indices_are_active
  822. *(void **) (&xkb_state_mod_indices_are_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_indices_are_active");
  823. if (verbose) {
  824. error = dlerror();
  825. if (error != NULL) {
  826. fprintf(stderr, "%s\n", error);
  827. }
  828. }
  829. // xkb_state_key_get_consumed_mods2
  830. *(void **) (&xkb_state_key_get_consumed_mods2_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_consumed_mods2");
  831. if (verbose) {
  832. error = dlerror();
  833. if (error != NULL) {
  834. fprintf(stderr, "%s\n", error);
  835. }
  836. }
  837. // xkb_state_key_get_consumed_mods
  838. *(void **) (&xkb_state_key_get_consumed_mods_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_key_get_consumed_mods");
  839. if (verbose) {
  840. error = dlerror();
  841. if (error != NULL) {
  842. fprintf(stderr, "%s\n", error);
  843. }
  844. }
  845. // xkb_state_mod_index_is_consumed2
  846. *(void **) (&xkb_state_mod_index_is_consumed2_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_index_is_consumed2");
  847. if (verbose) {
  848. error = dlerror();
  849. if (error != NULL) {
  850. fprintf(stderr, "%s\n", error);
  851. }
  852. }
  853. // xkb_state_mod_index_is_consumed
  854. *(void **) (&xkb_state_mod_index_is_consumed_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_index_is_consumed");
  855. if (verbose) {
  856. error = dlerror();
  857. if (error != NULL) {
  858. fprintf(stderr, "%s\n", error);
  859. }
  860. }
  861. // xkb_state_mod_mask_remove_consumed
  862. *(void **) (&xkb_state_mod_mask_remove_consumed_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_mod_mask_remove_consumed");
  863. if (verbose) {
  864. error = dlerror();
  865. if (error != NULL) {
  866. fprintf(stderr, "%s\n", error);
  867. }
  868. }
  869. // xkb_state_layout_name_is_active
  870. *(void **) (&xkb_state_layout_name_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_layout_name_is_active");
  871. if (verbose) {
  872. error = dlerror();
  873. if (error != NULL) {
  874. fprintf(stderr, "%s\n", error);
  875. }
  876. }
  877. // xkb_state_layout_index_is_active
  878. *(void **) (&xkb_state_layout_index_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_layout_index_is_active");
  879. if (verbose) {
  880. error = dlerror();
  881. if (error != NULL) {
  882. fprintf(stderr, "%s\n", error);
  883. }
  884. }
  885. // xkb_state_led_name_is_active
  886. *(void **) (&xkb_state_led_name_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_led_name_is_active");
  887. if (verbose) {
  888. error = dlerror();
  889. if (error != NULL) {
  890. fprintf(stderr, "%s\n", error);
  891. }
  892. }
  893. // xkb_state_led_index_is_active
  894. *(void **) (&xkb_state_led_index_is_active_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_state_led_index_is_active");
  895. if (verbose) {
  896. error = dlerror();
  897. if (error != NULL) {
  898. fprintf(stderr, "%s\n", error);
  899. }
  900. }
  901. // xkb_compose_table_new_from_locale
  902. *(void **) (&xkb_compose_table_new_from_locale_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_table_new_from_locale");
  903. if (verbose) {
  904. error = dlerror();
  905. if (error != NULL) {
  906. fprintf(stderr, "%s\n", error);
  907. }
  908. }
  909. // xkb_compose_table_new_from_file
  910. *(void **) (&xkb_compose_table_new_from_file_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_table_new_from_file");
  911. if (verbose) {
  912. error = dlerror();
  913. if (error != NULL) {
  914. fprintf(stderr, "%s\n", error);
  915. }
  916. }
  917. // xkb_compose_table_new_from_buffer
  918. *(void **) (&xkb_compose_table_new_from_buffer_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_table_new_from_buffer");
  919. if (verbose) {
  920. error = dlerror();
  921. if (error != NULL) {
  922. fprintf(stderr, "%s\n", error);
  923. }
  924. }
  925. // xkb_compose_table_ref
  926. *(void **) (&xkb_compose_table_ref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_table_ref");
  927. if (verbose) {
  928. error = dlerror();
  929. if (error != NULL) {
  930. fprintf(stderr, "%s\n", error);
  931. }
  932. }
  933. // xkb_compose_table_unref
  934. *(void **) (&xkb_compose_table_unref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_table_unref");
  935. if (verbose) {
  936. error = dlerror();
  937. if (error != NULL) {
  938. fprintf(stderr, "%s\n", error);
  939. }
  940. }
  941. // xkb_compose_state_new
  942. *(void **) (&xkb_compose_state_new_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_new");
  943. if (verbose) {
  944. error = dlerror();
  945. if (error != NULL) {
  946. fprintf(stderr, "%s\n", error);
  947. }
  948. }
  949. // xkb_compose_state_ref
  950. *(void **) (&xkb_compose_state_ref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_ref");
  951. if (verbose) {
  952. error = dlerror();
  953. if (error != NULL) {
  954. fprintf(stderr, "%s\n", error);
  955. }
  956. }
  957. // xkb_compose_state_unref
  958. *(void **) (&xkb_compose_state_unref_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_unref");
  959. if (verbose) {
  960. error = dlerror();
  961. if (error != NULL) {
  962. fprintf(stderr, "%s\n", error);
  963. }
  964. }
  965. // xkb_compose_state_get_compose_table
  966. *(void **) (&xkb_compose_state_get_compose_table_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_get_compose_table");
  967. if (verbose) {
  968. error = dlerror();
  969. if (error != NULL) {
  970. fprintf(stderr, "%s\n", error);
  971. }
  972. }
  973. // xkb_compose_state_feed
  974. *(void **) (&xkb_compose_state_feed_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_feed");
  975. if (verbose) {
  976. error = dlerror();
  977. if (error != NULL) {
  978. fprintf(stderr, "%s\n", error);
  979. }
  980. }
  981. // xkb_compose_state_reset
  982. *(void **) (&xkb_compose_state_reset_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_reset");
  983. if (verbose) {
  984. error = dlerror();
  985. if (error != NULL) {
  986. fprintf(stderr, "%s\n", error);
  987. }
  988. }
  989. // xkb_compose_state_get_status
  990. *(void **) (&xkb_compose_state_get_status_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_get_status");
  991. if (verbose) {
  992. error = dlerror();
  993. if (error != NULL) {
  994. fprintf(stderr, "%s\n", error);
  995. }
  996. }
  997. // xkb_compose_state_get_utf8
  998. *(void **) (&xkb_compose_state_get_utf8_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_get_utf8");
  999. if (verbose) {
  1000. error = dlerror();
  1001. if (error != NULL) {
  1002. fprintf(stderr, "%s\n", error);
  1003. }
  1004. }
  1005. // xkb_compose_state_get_one_sym
  1006. *(void **) (&xkb_compose_state_get_one_sym_dylibloader_wrapper_xkbcommon) = dlsym(handle, "xkb_compose_state_get_one_sym");
  1007. if (verbose) {
  1008. error = dlerror();
  1009. if (error != NULL) {
  1010. fprintf(stderr, "%s\n", error);
  1011. }
  1012. }
  1013. return 0;
  1014. }