libudev-so_wrap.c 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  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-12 10:23:01
  4. // flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/udev/libudev.h --sys-include "thirdparty/linuxbsd_headers/udev/libudev.h" --soname libudev.so.1 --init-name libudev --omit-prefix gnu_ --output-header ./platform/linuxbsd/libudev-so_wrap.h --output-implementation ./platform/linuxbsd/libudev-so_wrap.c
  5. //
  6. #include <stdint.h>
  7. #define udev_ref udev_ref_dylibloader_orig_libudev
  8. #define udev_unref udev_unref_dylibloader_orig_libudev
  9. #define udev_new udev_new_dylibloader_orig_libudev
  10. #define udev_set_log_fn udev_set_log_fn_dylibloader_orig_libudev
  11. #define udev_get_log_priority udev_get_log_priority_dylibloader_orig_libudev
  12. #define udev_set_log_priority udev_set_log_priority_dylibloader_orig_libudev
  13. #define udev_get_userdata udev_get_userdata_dylibloader_orig_libudev
  14. #define udev_set_userdata udev_set_userdata_dylibloader_orig_libudev
  15. #define udev_list_entry_get_next udev_list_entry_get_next_dylibloader_orig_libudev
  16. #define udev_list_entry_get_by_name udev_list_entry_get_by_name_dylibloader_orig_libudev
  17. #define udev_list_entry_get_name udev_list_entry_get_name_dylibloader_orig_libudev
  18. #define udev_list_entry_get_value udev_list_entry_get_value_dylibloader_orig_libudev
  19. #define udev_device_ref udev_device_ref_dylibloader_orig_libudev
  20. #define udev_device_unref udev_device_unref_dylibloader_orig_libudev
  21. #define udev_device_get_udev udev_device_get_udev_dylibloader_orig_libudev
  22. #define udev_device_new_from_syspath udev_device_new_from_syspath_dylibloader_orig_libudev
  23. #define udev_device_new_from_devnum udev_device_new_from_devnum_dylibloader_orig_libudev
  24. #define udev_device_new_from_subsystem_sysname udev_device_new_from_subsystem_sysname_dylibloader_orig_libudev
  25. #define udev_device_new_from_device_id udev_device_new_from_device_id_dylibloader_orig_libudev
  26. #define udev_device_new_from_environment udev_device_new_from_environment_dylibloader_orig_libudev
  27. #define udev_device_get_parent udev_device_get_parent_dylibloader_orig_libudev
  28. #define udev_device_get_parent_with_subsystem_devtype udev_device_get_parent_with_subsystem_devtype_dylibloader_orig_libudev
  29. #define udev_device_get_devpath udev_device_get_devpath_dylibloader_orig_libudev
  30. #define udev_device_get_subsystem udev_device_get_subsystem_dylibloader_orig_libudev
  31. #define udev_device_get_devtype udev_device_get_devtype_dylibloader_orig_libudev
  32. #define udev_device_get_syspath udev_device_get_syspath_dylibloader_orig_libudev
  33. #define udev_device_get_sysname udev_device_get_sysname_dylibloader_orig_libudev
  34. #define udev_device_get_sysnum udev_device_get_sysnum_dylibloader_orig_libudev
  35. #define udev_device_get_devnode udev_device_get_devnode_dylibloader_orig_libudev
  36. #define udev_device_get_is_initialized udev_device_get_is_initialized_dylibloader_orig_libudev
  37. #define udev_device_get_devlinks_list_entry udev_device_get_devlinks_list_entry_dylibloader_orig_libudev
  38. #define udev_device_get_properties_list_entry udev_device_get_properties_list_entry_dylibloader_orig_libudev
  39. #define udev_device_get_tags_list_entry udev_device_get_tags_list_entry_dylibloader_orig_libudev
  40. #define udev_device_get_sysattr_list_entry udev_device_get_sysattr_list_entry_dylibloader_orig_libudev
  41. #define udev_device_get_property_value udev_device_get_property_value_dylibloader_orig_libudev
  42. #define udev_device_get_driver udev_device_get_driver_dylibloader_orig_libudev
  43. #define udev_device_get_devnum udev_device_get_devnum_dylibloader_orig_libudev
  44. #define udev_device_get_action udev_device_get_action_dylibloader_orig_libudev
  45. #define udev_device_get_seqnum udev_device_get_seqnum_dylibloader_orig_libudev
  46. #define udev_device_get_usec_since_initialized udev_device_get_usec_since_initialized_dylibloader_orig_libudev
  47. #define udev_device_get_sysattr_value udev_device_get_sysattr_value_dylibloader_orig_libudev
  48. #define udev_device_set_sysattr_value udev_device_set_sysattr_value_dylibloader_orig_libudev
  49. #define udev_device_has_tag udev_device_has_tag_dylibloader_orig_libudev
  50. #define udev_monitor_ref udev_monitor_ref_dylibloader_orig_libudev
  51. #define udev_monitor_unref udev_monitor_unref_dylibloader_orig_libudev
  52. #define udev_monitor_get_udev udev_monitor_get_udev_dylibloader_orig_libudev
  53. #define udev_monitor_new_from_netlink udev_monitor_new_from_netlink_dylibloader_orig_libudev
  54. #define udev_monitor_enable_receiving udev_monitor_enable_receiving_dylibloader_orig_libudev
  55. #define udev_monitor_set_receive_buffer_size udev_monitor_set_receive_buffer_size_dylibloader_orig_libudev
  56. #define udev_monitor_get_fd udev_monitor_get_fd_dylibloader_orig_libudev
  57. #define udev_monitor_receive_device udev_monitor_receive_device_dylibloader_orig_libudev
  58. #define udev_monitor_filter_add_match_subsystem_devtype udev_monitor_filter_add_match_subsystem_devtype_dylibloader_orig_libudev
  59. #define udev_monitor_filter_add_match_tag udev_monitor_filter_add_match_tag_dylibloader_orig_libudev
  60. #define udev_monitor_filter_update udev_monitor_filter_update_dylibloader_orig_libudev
  61. #define udev_monitor_filter_remove udev_monitor_filter_remove_dylibloader_orig_libudev
  62. #define udev_enumerate_ref udev_enumerate_ref_dylibloader_orig_libudev
  63. #define udev_enumerate_unref udev_enumerate_unref_dylibloader_orig_libudev
  64. #define udev_enumerate_get_udev udev_enumerate_get_udev_dylibloader_orig_libudev
  65. #define udev_enumerate_new udev_enumerate_new_dylibloader_orig_libudev
  66. #define udev_enumerate_add_match_subsystem udev_enumerate_add_match_subsystem_dylibloader_orig_libudev
  67. #define udev_enumerate_add_nomatch_subsystem udev_enumerate_add_nomatch_subsystem_dylibloader_orig_libudev
  68. #define udev_enumerate_add_match_sysattr udev_enumerate_add_match_sysattr_dylibloader_orig_libudev
  69. #define udev_enumerate_add_nomatch_sysattr udev_enumerate_add_nomatch_sysattr_dylibloader_orig_libudev
  70. #define udev_enumerate_add_match_property udev_enumerate_add_match_property_dylibloader_orig_libudev
  71. #define udev_enumerate_add_match_sysname udev_enumerate_add_match_sysname_dylibloader_orig_libudev
  72. #define udev_enumerate_add_match_tag udev_enumerate_add_match_tag_dylibloader_orig_libudev
  73. #define udev_enumerate_add_match_parent udev_enumerate_add_match_parent_dylibloader_orig_libudev
  74. #define udev_enumerate_add_match_is_initialized udev_enumerate_add_match_is_initialized_dylibloader_orig_libudev
  75. #define udev_enumerate_add_syspath udev_enumerate_add_syspath_dylibloader_orig_libudev
  76. #define udev_enumerate_scan_devices udev_enumerate_scan_devices_dylibloader_orig_libudev
  77. #define udev_enumerate_scan_subsystems udev_enumerate_scan_subsystems_dylibloader_orig_libudev
  78. #define udev_enumerate_get_list_entry udev_enumerate_get_list_entry_dylibloader_orig_libudev
  79. #define udev_queue_ref udev_queue_ref_dylibloader_orig_libudev
  80. #define udev_queue_unref udev_queue_unref_dylibloader_orig_libudev
  81. #define udev_queue_get_udev udev_queue_get_udev_dylibloader_orig_libudev
  82. #define udev_queue_new udev_queue_new_dylibloader_orig_libudev
  83. #define udev_queue_get_kernel_seqnum udev_queue_get_kernel_seqnum_dylibloader_orig_libudev
  84. #define udev_queue_get_udev_seqnum udev_queue_get_udev_seqnum_dylibloader_orig_libudev
  85. #define udev_queue_get_udev_is_active udev_queue_get_udev_is_active_dylibloader_orig_libudev
  86. #define udev_queue_get_queue_is_empty udev_queue_get_queue_is_empty_dylibloader_orig_libudev
  87. #define udev_queue_get_seqnum_is_finished udev_queue_get_seqnum_is_finished_dylibloader_orig_libudev
  88. #define udev_queue_get_seqnum_sequence_is_finished udev_queue_get_seqnum_sequence_is_finished_dylibloader_orig_libudev
  89. #define udev_queue_get_fd udev_queue_get_fd_dylibloader_orig_libudev
  90. #define udev_queue_flush udev_queue_flush_dylibloader_orig_libudev
  91. #define udev_queue_get_queued_list_entry udev_queue_get_queued_list_entry_dylibloader_orig_libudev
  92. #define udev_hwdb_new udev_hwdb_new_dylibloader_orig_libudev
  93. #define udev_hwdb_ref udev_hwdb_ref_dylibloader_orig_libudev
  94. #define udev_hwdb_unref udev_hwdb_unref_dylibloader_orig_libudev
  95. #define udev_hwdb_get_properties_list_entry udev_hwdb_get_properties_list_entry_dylibloader_orig_libudev
  96. #define udev_util_encode_string udev_util_encode_string_dylibloader_orig_libudev
  97. #include "thirdparty/linuxbsd_headers/udev/libudev.h"
  98. #undef udev_ref
  99. #undef udev_unref
  100. #undef udev_new
  101. #undef udev_set_log_fn
  102. #undef udev_get_log_priority
  103. #undef udev_set_log_priority
  104. #undef udev_get_userdata
  105. #undef udev_set_userdata
  106. #undef udev_list_entry_get_next
  107. #undef udev_list_entry_get_by_name
  108. #undef udev_list_entry_get_name
  109. #undef udev_list_entry_get_value
  110. #undef udev_device_ref
  111. #undef udev_device_unref
  112. #undef udev_device_get_udev
  113. #undef udev_device_new_from_syspath
  114. #undef udev_device_new_from_devnum
  115. #undef udev_device_new_from_subsystem_sysname
  116. #undef udev_device_new_from_device_id
  117. #undef udev_device_new_from_environment
  118. #undef udev_device_get_parent
  119. #undef udev_device_get_parent_with_subsystem_devtype
  120. #undef udev_device_get_devpath
  121. #undef udev_device_get_subsystem
  122. #undef udev_device_get_devtype
  123. #undef udev_device_get_syspath
  124. #undef udev_device_get_sysname
  125. #undef udev_device_get_sysnum
  126. #undef udev_device_get_devnode
  127. #undef udev_device_get_is_initialized
  128. #undef udev_device_get_devlinks_list_entry
  129. #undef udev_device_get_properties_list_entry
  130. #undef udev_device_get_tags_list_entry
  131. #undef udev_device_get_sysattr_list_entry
  132. #undef udev_device_get_property_value
  133. #undef udev_device_get_driver
  134. #undef udev_device_get_devnum
  135. #undef udev_device_get_action
  136. #undef udev_device_get_seqnum
  137. #undef udev_device_get_usec_since_initialized
  138. #undef udev_device_get_sysattr_value
  139. #undef udev_device_set_sysattr_value
  140. #undef udev_device_has_tag
  141. #undef udev_monitor_ref
  142. #undef udev_monitor_unref
  143. #undef udev_monitor_get_udev
  144. #undef udev_monitor_new_from_netlink
  145. #undef udev_monitor_enable_receiving
  146. #undef udev_monitor_set_receive_buffer_size
  147. #undef udev_monitor_get_fd
  148. #undef udev_monitor_receive_device
  149. #undef udev_monitor_filter_add_match_subsystem_devtype
  150. #undef udev_monitor_filter_add_match_tag
  151. #undef udev_monitor_filter_update
  152. #undef udev_monitor_filter_remove
  153. #undef udev_enumerate_ref
  154. #undef udev_enumerate_unref
  155. #undef udev_enumerate_get_udev
  156. #undef udev_enumerate_new
  157. #undef udev_enumerate_add_match_subsystem
  158. #undef udev_enumerate_add_nomatch_subsystem
  159. #undef udev_enumerate_add_match_sysattr
  160. #undef udev_enumerate_add_nomatch_sysattr
  161. #undef udev_enumerate_add_match_property
  162. #undef udev_enumerate_add_match_sysname
  163. #undef udev_enumerate_add_match_tag
  164. #undef udev_enumerate_add_match_parent
  165. #undef udev_enumerate_add_match_is_initialized
  166. #undef udev_enumerate_add_syspath
  167. #undef udev_enumerate_scan_devices
  168. #undef udev_enumerate_scan_subsystems
  169. #undef udev_enumerate_get_list_entry
  170. #undef udev_queue_ref
  171. #undef udev_queue_unref
  172. #undef udev_queue_get_udev
  173. #undef udev_queue_new
  174. #undef udev_queue_get_kernel_seqnum
  175. #undef udev_queue_get_udev_seqnum
  176. #undef udev_queue_get_udev_is_active
  177. #undef udev_queue_get_queue_is_empty
  178. #undef udev_queue_get_seqnum_is_finished
  179. #undef udev_queue_get_seqnum_sequence_is_finished
  180. #undef udev_queue_get_fd
  181. #undef udev_queue_flush
  182. #undef udev_queue_get_queued_list_entry
  183. #undef udev_hwdb_new
  184. #undef udev_hwdb_ref
  185. #undef udev_hwdb_unref
  186. #undef udev_hwdb_get_properties_list_entry
  187. #undef udev_util_encode_string
  188. #include <dlfcn.h>
  189. #include <stdio.h>
  190. struct udev* (*udev_ref_dylibloader_wrapper_libudev)(struct udev*);
  191. struct udev* (*udev_unref_dylibloader_wrapper_libudev)(struct udev*);
  192. struct udev* (*udev_new_dylibloader_wrapper_libudev)( void);
  193. void (*udev_set_log_fn_dylibloader_wrapper_libudev)(struct udev*, void*);
  194. int (*udev_get_log_priority_dylibloader_wrapper_libudev)(struct udev*);
  195. void (*udev_set_log_priority_dylibloader_wrapper_libudev)(struct udev*, int);
  196. void* (*udev_get_userdata_dylibloader_wrapper_libudev)(struct udev*);
  197. void (*udev_set_userdata_dylibloader_wrapper_libudev)(struct udev*, void*);
  198. struct udev_list_entry* (*udev_list_entry_get_next_dylibloader_wrapper_libudev)(struct udev_list_entry*);
  199. struct udev_list_entry* (*udev_list_entry_get_by_name_dylibloader_wrapper_libudev)(struct udev_list_entry*,const char*);
  200. const char* (*udev_list_entry_get_name_dylibloader_wrapper_libudev)(struct udev_list_entry*);
  201. const char* (*udev_list_entry_get_value_dylibloader_wrapper_libudev)(struct udev_list_entry*);
  202. struct udev_device* (*udev_device_ref_dylibloader_wrapper_libudev)(struct udev_device*);
  203. struct udev_device* (*udev_device_unref_dylibloader_wrapper_libudev)(struct udev_device*);
  204. struct udev* (*udev_device_get_udev_dylibloader_wrapper_libudev)(struct udev_device*);
  205. struct udev_device* (*udev_device_new_from_syspath_dylibloader_wrapper_libudev)(struct udev*,const char*);
  206. struct udev_device* (*udev_device_new_from_devnum_dylibloader_wrapper_libudev)(struct udev*, char, dev_t);
  207. struct udev_device* (*udev_device_new_from_subsystem_sysname_dylibloader_wrapper_libudev)(struct udev*,const char*,const char*);
  208. struct udev_device* (*udev_device_new_from_device_id_dylibloader_wrapper_libudev)(struct udev*,const char*);
  209. struct udev_device* (*udev_device_new_from_environment_dylibloader_wrapper_libudev)(struct udev*);
  210. struct udev_device* (*udev_device_get_parent_dylibloader_wrapper_libudev)(struct udev_device*);
  211. struct udev_device* (*udev_device_get_parent_with_subsystem_devtype_dylibloader_wrapper_libudev)(struct udev_device*,const char*,const char*);
  212. const char* (*udev_device_get_devpath_dylibloader_wrapper_libudev)(struct udev_device*);
  213. const char* (*udev_device_get_subsystem_dylibloader_wrapper_libudev)(struct udev_device*);
  214. const char* (*udev_device_get_devtype_dylibloader_wrapper_libudev)(struct udev_device*);
  215. const char* (*udev_device_get_syspath_dylibloader_wrapper_libudev)(struct udev_device*);
  216. const char* (*udev_device_get_sysname_dylibloader_wrapper_libudev)(struct udev_device*);
  217. const char* (*udev_device_get_sysnum_dylibloader_wrapper_libudev)(struct udev_device*);
  218. const char* (*udev_device_get_devnode_dylibloader_wrapper_libudev)(struct udev_device*);
  219. int (*udev_device_get_is_initialized_dylibloader_wrapper_libudev)(struct udev_device*);
  220. struct udev_list_entry* (*udev_device_get_devlinks_list_entry_dylibloader_wrapper_libudev)(struct udev_device*);
  221. struct udev_list_entry* (*udev_device_get_properties_list_entry_dylibloader_wrapper_libudev)(struct udev_device*);
  222. struct udev_list_entry* (*udev_device_get_tags_list_entry_dylibloader_wrapper_libudev)(struct udev_device*);
  223. struct udev_list_entry* (*udev_device_get_sysattr_list_entry_dylibloader_wrapper_libudev)(struct udev_device*);
  224. const char* (*udev_device_get_property_value_dylibloader_wrapper_libudev)(struct udev_device*,const char*);
  225. const char* (*udev_device_get_driver_dylibloader_wrapper_libudev)(struct udev_device*);
  226. dev_t (*udev_device_get_devnum_dylibloader_wrapper_libudev)(struct udev_device*);
  227. const char* (*udev_device_get_action_dylibloader_wrapper_libudev)(struct udev_device*);
  228. unsigned long long int (*udev_device_get_seqnum_dylibloader_wrapper_libudev)(struct udev_device*);
  229. unsigned long long int (*udev_device_get_usec_since_initialized_dylibloader_wrapper_libudev)(struct udev_device*);
  230. const char* (*udev_device_get_sysattr_value_dylibloader_wrapper_libudev)(struct udev_device*,const char*);
  231. int (*udev_device_set_sysattr_value_dylibloader_wrapper_libudev)(struct udev_device*,const char*, char*);
  232. int (*udev_device_has_tag_dylibloader_wrapper_libudev)(struct udev_device*,const char*);
  233. struct udev_monitor* (*udev_monitor_ref_dylibloader_wrapper_libudev)(struct udev_monitor*);
  234. struct udev_monitor* (*udev_monitor_unref_dylibloader_wrapper_libudev)(struct udev_monitor*);
  235. struct udev* (*udev_monitor_get_udev_dylibloader_wrapper_libudev)(struct udev_monitor*);
  236. struct udev_monitor* (*udev_monitor_new_from_netlink_dylibloader_wrapper_libudev)(struct udev*,const char*);
  237. int (*udev_monitor_enable_receiving_dylibloader_wrapper_libudev)(struct udev_monitor*);
  238. int (*udev_monitor_set_receive_buffer_size_dylibloader_wrapper_libudev)(struct udev_monitor*, int);
  239. int (*udev_monitor_get_fd_dylibloader_wrapper_libudev)(struct udev_monitor*);
  240. struct udev_device* (*udev_monitor_receive_device_dylibloader_wrapper_libudev)(struct udev_monitor*);
  241. int (*udev_monitor_filter_add_match_subsystem_devtype_dylibloader_wrapper_libudev)(struct udev_monitor*,const char*,const char*);
  242. int (*udev_monitor_filter_add_match_tag_dylibloader_wrapper_libudev)(struct udev_monitor*,const char*);
  243. int (*udev_monitor_filter_update_dylibloader_wrapper_libudev)(struct udev_monitor*);
  244. int (*udev_monitor_filter_remove_dylibloader_wrapper_libudev)(struct udev_monitor*);
  245. struct udev_enumerate* (*udev_enumerate_ref_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  246. struct udev_enumerate* (*udev_enumerate_unref_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  247. struct udev* (*udev_enumerate_get_udev_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  248. struct udev_enumerate* (*udev_enumerate_new_dylibloader_wrapper_libudev)(struct udev*);
  249. int (*udev_enumerate_add_match_subsystem_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*);
  250. int (*udev_enumerate_add_nomatch_subsystem_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*);
  251. int (*udev_enumerate_add_match_sysattr_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*,const char*);
  252. int (*udev_enumerate_add_nomatch_sysattr_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*,const char*);
  253. int (*udev_enumerate_add_match_property_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*,const char*);
  254. int (*udev_enumerate_add_match_sysname_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*);
  255. int (*udev_enumerate_add_match_tag_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*);
  256. int (*udev_enumerate_add_match_parent_dylibloader_wrapper_libudev)(struct udev_enumerate*,struct udev_device*);
  257. int (*udev_enumerate_add_match_is_initialized_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  258. int (*udev_enumerate_add_syspath_dylibloader_wrapper_libudev)(struct udev_enumerate*,const char*);
  259. int (*udev_enumerate_scan_devices_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  260. int (*udev_enumerate_scan_subsystems_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  261. struct udev_list_entry* (*udev_enumerate_get_list_entry_dylibloader_wrapper_libudev)(struct udev_enumerate*);
  262. struct udev_queue* (*udev_queue_ref_dylibloader_wrapper_libudev)(struct udev_queue*);
  263. struct udev_queue* (*udev_queue_unref_dylibloader_wrapper_libudev)(struct udev_queue*);
  264. struct udev* (*udev_queue_get_udev_dylibloader_wrapper_libudev)(struct udev_queue*);
  265. struct udev_queue* (*udev_queue_new_dylibloader_wrapper_libudev)(struct udev*);
  266. unsigned long long int (*udev_queue_get_kernel_seqnum_dylibloader_wrapper_libudev)(struct udev_queue*);
  267. unsigned long long int (*udev_queue_get_udev_seqnum_dylibloader_wrapper_libudev)(struct udev_queue*);
  268. int (*udev_queue_get_udev_is_active_dylibloader_wrapper_libudev)(struct udev_queue*);
  269. int (*udev_queue_get_queue_is_empty_dylibloader_wrapper_libudev)(struct udev_queue*);
  270. int (*udev_queue_get_seqnum_is_finished_dylibloader_wrapper_libudev)(struct udev_queue*, unsigned long long int);
  271. int (*udev_queue_get_seqnum_sequence_is_finished_dylibloader_wrapper_libudev)(struct udev_queue*, unsigned long long int, unsigned long long int);
  272. int (*udev_queue_get_fd_dylibloader_wrapper_libudev)(struct udev_queue*);
  273. int (*udev_queue_flush_dylibloader_wrapper_libudev)(struct udev_queue*);
  274. struct udev_list_entry* (*udev_queue_get_queued_list_entry_dylibloader_wrapper_libudev)(struct udev_queue*);
  275. struct udev_hwdb* (*udev_hwdb_new_dylibloader_wrapper_libudev)(struct udev*);
  276. struct udev_hwdb* (*udev_hwdb_ref_dylibloader_wrapper_libudev)(struct udev_hwdb*);
  277. struct udev_hwdb* (*udev_hwdb_unref_dylibloader_wrapper_libudev)(struct udev_hwdb*);
  278. struct udev_list_entry* (*udev_hwdb_get_properties_list_entry_dylibloader_wrapper_libudev)(struct udev_hwdb*,const char*, unsigned int);
  279. int (*udev_util_encode_string_dylibloader_wrapper_libudev)(const char*, char*, size_t);
  280. int initialize_libudev(int verbose) {
  281. void *handle;
  282. char *error;
  283. handle = dlopen("libudev.so.1", RTLD_LAZY);
  284. if (!handle) {
  285. if (verbose) {
  286. fprintf(stderr, "%s\n", dlerror());
  287. }
  288. return(1);
  289. }
  290. dlerror();
  291. // udev_ref
  292. *(void **) (&udev_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_ref");
  293. if (verbose) {
  294. error = dlerror();
  295. if (error != NULL) {
  296. fprintf(stderr, "%s\n", error);
  297. }
  298. }
  299. // udev_unref
  300. *(void **) (&udev_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_unref");
  301. if (verbose) {
  302. error = dlerror();
  303. if (error != NULL) {
  304. fprintf(stderr, "%s\n", error);
  305. }
  306. }
  307. // udev_new
  308. *(void **) (&udev_new_dylibloader_wrapper_libudev) = dlsym(handle, "udev_new");
  309. if (verbose) {
  310. error = dlerror();
  311. if (error != NULL) {
  312. fprintf(stderr, "%s\n", error);
  313. }
  314. }
  315. // udev_set_log_fn
  316. *(void **) (&udev_set_log_fn_dylibloader_wrapper_libudev) = dlsym(handle, "udev_set_log_fn");
  317. if (verbose) {
  318. error = dlerror();
  319. if (error != NULL) {
  320. fprintf(stderr, "%s\n", error);
  321. }
  322. }
  323. // udev_get_log_priority
  324. *(void **) (&udev_get_log_priority_dylibloader_wrapper_libudev) = dlsym(handle, "udev_get_log_priority");
  325. if (verbose) {
  326. error = dlerror();
  327. if (error != NULL) {
  328. fprintf(stderr, "%s\n", error);
  329. }
  330. }
  331. // udev_set_log_priority
  332. *(void **) (&udev_set_log_priority_dylibloader_wrapper_libudev) = dlsym(handle, "udev_set_log_priority");
  333. if (verbose) {
  334. error = dlerror();
  335. if (error != NULL) {
  336. fprintf(stderr, "%s\n", error);
  337. }
  338. }
  339. // udev_get_userdata
  340. *(void **) (&udev_get_userdata_dylibloader_wrapper_libudev) = dlsym(handle, "udev_get_userdata");
  341. if (verbose) {
  342. error = dlerror();
  343. if (error != NULL) {
  344. fprintf(stderr, "%s\n", error);
  345. }
  346. }
  347. // udev_set_userdata
  348. *(void **) (&udev_set_userdata_dylibloader_wrapper_libudev) = dlsym(handle, "udev_set_userdata");
  349. if (verbose) {
  350. error = dlerror();
  351. if (error != NULL) {
  352. fprintf(stderr, "%s\n", error);
  353. }
  354. }
  355. // udev_list_entry_get_next
  356. *(void **) (&udev_list_entry_get_next_dylibloader_wrapper_libudev) = dlsym(handle, "udev_list_entry_get_next");
  357. if (verbose) {
  358. error = dlerror();
  359. if (error != NULL) {
  360. fprintf(stderr, "%s\n", error);
  361. }
  362. }
  363. // udev_list_entry_get_by_name
  364. *(void **) (&udev_list_entry_get_by_name_dylibloader_wrapper_libudev) = dlsym(handle, "udev_list_entry_get_by_name");
  365. if (verbose) {
  366. error = dlerror();
  367. if (error != NULL) {
  368. fprintf(stderr, "%s\n", error);
  369. }
  370. }
  371. // udev_list_entry_get_name
  372. *(void **) (&udev_list_entry_get_name_dylibloader_wrapper_libudev) = dlsym(handle, "udev_list_entry_get_name");
  373. if (verbose) {
  374. error = dlerror();
  375. if (error != NULL) {
  376. fprintf(stderr, "%s\n", error);
  377. }
  378. }
  379. // udev_list_entry_get_value
  380. *(void **) (&udev_list_entry_get_value_dylibloader_wrapper_libudev) = dlsym(handle, "udev_list_entry_get_value");
  381. if (verbose) {
  382. error = dlerror();
  383. if (error != NULL) {
  384. fprintf(stderr, "%s\n", error);
  385. }
  386. }
  387. // udev_device_ref
  388. *(void **) (&udev_device_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_ref");
  389. if (verbose) {
  390. error = dlerror();
  391. if (error != NULL) {
  392. fprintf(stderr, "%s\n", error);
  393. }
  394. }
  395. // udev_device_unref
  396. *(void **) (&udev_device_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_unref");
  397. if (verbose) {
  398. error = dlerror();
  399. if (error != NULL) {
  400. fprintf(stderr, "%s\n", error);
  401. }
  402. }
  403. // udev_device_get_udev
  404. *(void **) (&udev_device_get_udev_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_udev");
  405. if (verbose) {
  406. error = dlerror();
  407. if (error != NULL) {
  408. fprintf(stderr, "%s\n", error);
  409. }
  410. }
  411. // udev_device_new_from_syspath
  412. *(void **) (&udev_device_new_from_syspath_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_new_from_syspath");
  413. if (verbose) {
  414. error = dlerror();
  415. if (error != NULL) {
  416. fprintf(stderr, "%s\n", error);
  417. }
  418. }
  419. // udev_device_new_from_devnum
  420. *(void **) (&udev_device_new_from_devnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_new_from_devnum");
  421. if (verbose) {
  422. error = dlerror();
  423. if (error != NULL) {
  424. fprintf(stderr, "%s\n", error);
  425. }
  426. }
  427. // udev_device_new_from_subsystem_sysname
  428. *(void **) (&udev_device_new_from_subsystem_sysname_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_new_from_subsystem_sysname");
  429. if (verbose) {
  430. error = dlerror();
  431. if (error != NULL) {
  432. fprintf(stderr, "%s\n", error);
  433. }
  434. }
  435. // udev_device_new_from_device_id
  436. *(void **) (&udev_device_new_from_device_id_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_new_from_device_id");
  437. if (verbose) {
  438. error = dlerror();
  439. if (error != NULL) {
  440. fprintf(stderr, "%s\n", error);
  441. }
  442. }
  443. // udev_device_new_from_environment
  444. *(void **) (&udev_device_new_from_environment_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_new_from_environment");
  445. if (verbose) {
  446. error = dlerror();
  447. if (error != NULL) {
  448. fprintf(stderr, "%s\n", error);
  449. }
  450. }
  451. // udev_device_get_parent
  452. *(void **) (&udev_device_get_parent_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_parent");
  453. if (verbose) {
  454. error = dlerror();
  455. if (error != NULL) {
  456. fprintf(stderr, "%s\n", error);
  457. }
  458. }
  459. // udev_device_get_parent_with_subsystem_devtype
  460. *(void **) (&udev_device_get_parent_with_subsystem_devtype_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_parent_with_subsystem_devtype");
  461. if (verbose) {
  462. error = dlerror();
  463. if (error != NULL) {
  464. fprintf(stderr, "%s\n", error);
  465. }
  466. }
  467. // udev_device_get_devpath
  468. *(void **) (&udev_device_get_devpath_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_devpath");
  469. if (verbose) {
  470. error = dlerror();
  471. if (error != NULL) {
  472. fprintf(stderr, "%s\n", error);
  473. }
  474. }
  475. // udev_device_get_subsystem
  476. *(void **) (&udev_device_get_subsystem_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_subsystem");
  477. if (verbose) {
  478. error = dlerror();
  479. if (error != NULL) {
  480. fprintf(stderr, "%s\n", error);
  481. }
  482. }
  483. // udev_device_get_devtype
  484. *(void **) (&udev_device_get_devtype_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_devtype");
  485. if (verbose) {
  486. error = dlerror();
  487. if (error != NULL) {
  488. fprintf(stderr, "%s\n", error);
  489. }
  490. }
  491. // udev_device_get_syspath
  492. *(void **) (&udev_device_get_syspath_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_syspath");
  493. if (verbose) {
  494. error = dlerror();
  495. if (error != NULL) {
  496. fprintf(stderr, "%s\n", error);
  497. }
  498. }
  499. // udev_device_get_sysname
  500. *(void **) (&udev_device_get_sysname_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_sysname");
  501. if (verbose) {
  502. error = dlerror();
  503. if (error != NULL) {
  504. fprintf(stderr, "%s\n", error);
  505. }
  506. }
  507. // udev_device_get_sysnum
  508. *(void **) (&udev_device_get_sysnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_sysnum");
  509. if (verbose) {
  510. error = dlerror();
  511. if (error != NULL) {
  512. fprintf(stderr, "%s\n", error);
  513. }
  514. }
  515. // udev_device_get_devnode
  516. *(void **) (&udev_device_get_devnode_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_devnode");
  517. if (verbose) {
  518. error = dlerror();
  519. if (error != NULL) {
  520. fprintf(stderr, "%s\n", error);
  521. }
  522. }
  523. // udev_device_get_is_initialized
  524. *(void **) (&udev_device_get_is_initialized_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_is_initialized");
  525. if (verbose) {
  526. error = dlerror();
  527. if (error != NULL) {
  528. fprintf(stderr, "%s\n", error);
  529. }
  530. }
  531. // udev_device_get_devlinks_list_entry
  532. *(void **) (&udev_device_get_devlinks_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_devlinks_list_entry");
  533. if (verbose) {
  534. error = dlerror();
  535. if (error != NULL) {
  536. fprintf(stderr, "%s\n", error);
  537. }
  538. }
  539. // udev_device_get_properties_list_entry
  540. *(void **) (&udev_device_get_properties_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_properties_list_entry");
  541. if (verbose) {
  542. error = dlerror();
  543. if (error != NULL) {
  544. fprintf(stderr, "%s\n", error);
  545. }
  546. }
  547. // udev_device_get_tags_list_entry
  548. *(void **) (&udev_device_get_tags_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_tags_list_entry");
  549. if (verbose) {
  550. error = dlerror();
  551. if (error != NULL) {
  552. fprintf(stderr, "%s\n", error);
  553. }
  554. }
  555. // udev_device_get_sysattr_list_entry
  556. *(void **) (&udev_device_get_sysattr_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_sysattr_list_entry");
  557. if (verbose) {
  558. error = dlerror();
  559. if (error != NULL) {
  560. fprintf(stderr, "%s\n", error);
  561. }
  562. }
  563. // udev_device_get_property_value
  564. *(void **) (&udev_device_get_property_value_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_property_value");
  565. if (verbose) {
  566. error = dlerror();
  567. if (error != NULL) {
  568. fprintf(stderr, "%s\n", error);
  569. }
  570. }
  571. // udev_device_get_driver
  572. *(void **) (&udev_device_get_driver_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_driver");
  573. if (verbose) {
  574. error = dlerror();
  575. if (error != NULL) {
  576. fprintf(stderr, "%s\n", error);
  577. }
  578. }
  579. // udev_device_get_devnum
  580. *(void **) (&udev_device_get_devnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_devnum");
  581. if (verbose) {
  582. error = dlerror();
  583. if (error != NULL) {
  584. fprintf(stderr, "%s\n", error);
  585. }
  586. }
  587. // udev_device_get_action
  588. *(void **) (&udev_device_get_action_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_action");
  589. if (verbose) {
  590. error = dlerror();
  591. if (error != NULL) {
  592. fprintf(stderr, "%s\n", error);
  593. }
  594. }
  595. // udev_device_get_seqnum
  596. *(void **) (&udev_device_get_seqnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_seqnum");
  597. if (verbose) {
  598. error = dlerror();
  599. if (error != NULL) {
  600. fprintf(stderr, "%s\n", error);
  601. }
  602. }
  603. // udev_device_get_usec_since_initialized
  604. *(void **) (&udev_device_get_usec_since_initialized_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_usec_since_initialized");
  605. if (verbose) {
  606. error = dlerror();
  607. if (error != NULL) {
  608. fprintf(stderr, "%s\n", error);
  609. }
  610. }
  611. // udev_device_get_sysattr_value
  612. *(void **) (&udev_device_get_sysattr_value_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_get_sysattr_value");
  613. if (verbose) {
  614. error = dlerror();
  615. if (error != NULL) {
  616. fprintf(stderr, "%s\n", error);
  617. }
  618. }
  619. // udev_device_set_sysattr_value
  620. *(void **) (&udev_device_set_sysattr_value_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_set_sysattr_value");
  621. if (verbose) {
  622. error = dlerror();
  623. if (error != NULL) {
  624. fprintf(stderr, "%s\n", error);
  625. }
  626. }
  627. // udev_device_has_tag
  628. *(void **) (&udev_device_has_tag_dylibloader_wrapper_libudev) = dlsym(handle, "udev_device_has_tag");
  629. if (verbose) {
  630. error = dlerror();
  631. if (error != NULL) {
  632. fprintf(stderr, "%s\n", error);
  633. }
  634. }
  635. // udev_monitor_ref
  636. *(void **) (&udev_monitor_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_ref");
  637. if (verbose) {
  638. error = dlerror();
  639. if (error != NULL) {
  640. fprintf(stderr, "%s\n", error);
  641. }
  642. }
  643. // udev_monitor_unref
  644. *(void **) (&udev_monitor_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_unref");
  645. if (verbose) {
  646. error = dlerror();
  647. if (error != NULL) {
  648. fprintf(stderr, "%s\n", error);
  649. }
  650. }
  651. // udev_monitor_get_udev
  652. *(void **) (&udev_monitor_get_udev_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_get_udev");
  653. if (verbose) {
  654. error = dlerror();
  655. if (error != NULL) {
  656. fprintf(stderr, "%s\n", error);
  657. }
  658. }
  659. // udev_monitor_new_from_netlink
  660. *(void **) (&udev_monitor_new_from_netlink_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_new_from_netlink");
  661. if (verbose) {
  662. error = dlerror();
  663. if (error != NULL) {
  664. fprintf(stderr, "%s\n", error);
  665. }
  666. }
  667. // udev_monitor_enable_receiving
  668. *(void **) (&udev_monitor_enable_receiving_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_enable_receiving");
  669. if (verbose) {
  670. error = dlerror();
  671. if (error != NULL) {
  672. fprintf(stderr, "%s\n", error);
  673. }
  674. }
  675. // udev_monitor_set_receive_buffer_size
  676. *(void **) (&udev_monitor_set_receive_buffer_size_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_set_receive_buffer_size");
  677. if (verbose) {
  678. error = dlerror();
  679. if (error != NULL) {
  680. fprintf(stderr, "%s\n", error);
  681. }
  682. }
  683. // udev_monitor_get_fd
  684. *(void **) (&udev_monitor_get_fd_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_get_fd");
  685. if (verbose) {
  686. error = dlerror();
  687. if (error != NULL) {
  688. fprintf(stderr, "%s\n", error);
  689. }
  690. }
  691. // udev_monitor_receive_device
  692. *(void **) (&udev_monitor_receive_device_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_receive_device");
  693. if (verbose) {
  694. error = dlerror();
  695. if (error != NULL) {
  696. fprintf(stderr, "%s\n", error);
  697. }
  698. }
  699. // udev_monitor_filter_add_match_subsystem_devtype
  700. *(void **) (&udev_monitor_filter_add_match_subsystem_devtype_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_filter_add_match_subsystem_devtype");
  701. if (verbose) {
  702. error = dlerror();
  703. if (error != NULL) {
  704. fprintf(stderr, "%s\n", error);
  705. }
  706. }
  707. // udev_monitor_filter_add_match_tag
  708. *(void **) (&udev_monitor_filter_add_match_tag_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_filter_add_match_tag");
  709. if (verbose) {
  710. error = dlerror();
  711. if (error != NULL) {
  712. fprintf(stderr, "%s\n", error);
  713. }
  714. }
  715. // udev_monitor_filter_update
  716. *(void **) (&udev_monitor_filter_update_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_filter_update");
  717. if (verbose) {
  718. error = dlerror();
  719. if (error != NULL) {
  720. fprintf(stderr, "%s\n", error);
  721. }
  722. }
  723. // udev_monitor_filter_remove
  724. *(void **) (&udev_monitor_filter_remove_dylibloader_wrapper_libudev) = dlsym(handle, "udev_monitor_filter_remove");
  725. if (verbose) {
  726. error = dlerror();
  727. if (error != NULL) {
  728. fprintf(stderr, "%s\n", error);
  729. }
  730. }
  731. // udev_enumerate_ref
  732. *(void **) (&udev_enumerate_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_ref");
  733. if (verbose) {
  734. error = dlerror();
  735. if (error != NULL) {
  736. fprintf(stderr, "%s\n", error);
  737. }
  738. }
  739. // udev_enumerate_unref
  740. *(void **) (&udev_enumerate_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_unref");
  741. if (verbose) {
  742. error = dlerror();
  743. if (error != NULL) {
  744. fprintf(stderr, "%s\n", error);
  745. }
  746. }
  747. // udev_enumerate_get_udev
  748. *(void **) (&udev_enumerate_get_udev_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_get_udev");
  749. if (verbose) {
  750. error = dlerror();
  751. if (error != NULL) {
  752. fprintf(stderr, "%s\n", error);
  753. }
  754. }
  755. // udev_enumerate_new
  756. *(void **) (&udev_enumerate_new_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_new");
  757. if (verbose) {
  758. error = dlerror();
  759. if (error != NULL) {
  760. fprintf(stderr, "%s\n", error);
  761. }
  762. }
  763. // udev_enumerate_add_match_subsystem
  764. *(void **) (&udev_enumerate_add_match_subsystem_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_subsystem");
  765. if (verbose) {
  766. error = dlerror();
  767. if (error != NULL) {
  768. fprintf(stderr, "%s\n", error);
  769. }
  770. }
  771. // udev_enumerate_add_nomatch_subsystem
  772. *(void **) (&udev_enumerate_add_nomatch_subsystem_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_nomatch_subsystem");
  773. if (verbose) {
  774. error = dlerror();
  775. if (error != NULL) {
  776. fprintf(stderr, "%s\n", error);
  777. }
  778. }
  779. // udev_enumerate_add_match_sysattr
  780. *(void **) (&udev_enumerate_add_match_sysattr_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_sysattr");
  781. if (verbose) {
  782. error = dlerror();
  783. if (error != NULL) {
  784. fprintf(stderr, "%s\n", error);
  785. }
  786. }
  787. // udev_enumerate_add_nomatch_sysattr
  788. *(void **) (&udev_enumerate_add_nomatch_sysattr_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_nomatch_sysattr");
  789. if (verbose) {
  790. error = dlerror();
  791. if (error != NULL) {
  792. fprintf(stderr, "%s\n", error);
  793. }
  794. }
  795. // udev_enumerate_add_match_property
  796. *(void **) (&udev_enumerate_add_match_property_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_property");
  797. if (verbose) {
  798. error = dlerror();
  799. if (error != NULL) {
  800. fprintf(stderr, "%s\n", error);
  801. }
  802. }
  803. // udev_enumerate_add_match_sysname
  804. *(void **) (&udev_enumerate_add_match_sysname_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_sysname");
  805. if (verbose) {
  806. error = dlerror();
  807. if (error != NULL) {
  808. fprintf(stderr, "%s\n", error);
  809. }
  810. }
  811. // udev_enumerate_add_match_tag
  812. *(void **) (&udev_enumerate_add_match_tag_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_tag");
  813. if (verbose) {
  814. error = dlerror();
  815. if (error != NULL) {
  816. fprintf(stderr, "%s\n", error);
  817. }
  818. }
  819. // udev_enumerate_add_match_parent
  820. *(void **) (&udev_enumerate_add_match_parent_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_parent");
  821. if (verbose) {
  822. error = dlerror();
  823. if (error != NULL) {
  824. fprintf(stderr, "%s\n", error);
  825. }
  826. }
  827. // udev_enumerate_add_match_is_initialized
  828. *(void **) (&udev_enumerate_add_match_is_initialized_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_match_is_initialized");
  829. if (verbose) {
  830. error = dlerror();
  831. if (error != NULL) {
  832. fprintf(stderr, "%s\n", error);
  833. }
  834. }
  835. // udev_enumerate_add_syspath
  836. *(void **) (&udev_enumerate_add_syspath_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_add_syspath");
  837. if (verbose) {
  838. error = dlerror();
  839. if (error != NULL) {
  840. fprintf(stderr, "%s\n", error);
  841. }
  842. }
  843. // udev_enumerate_scan_devices
  844. *(void **) (&udev_enumerate_scan_devices_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_scan_devices");
  845. if (verbose) {
  846. error = dlerror();
  847. if (error != NULL) {
  848. fprintf(stderr, "%s\n", error);
  849. }
  850. }
  851. // udev_enumerate_scan_subsystems
  852. *(void **) (&udev_enumerate_scan_subsystems_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_scan_subsystems");
  853. if (verbose) {
  854. error = dlerror();
  855. if (error != NULL) {
  856. fprintf(stderr, "%s\n", error);
  857. }
  858. }
  859. // udev_enumerate_get_list_entry
  860. *(void **) (&udev_enumerate_get_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_enumerate_get_list_entry");
  861. if (verbose) {
  862. error = dlerror();
  863. if (error != NULL) {
  864. fprintf(stderr, "%s\n", error);
  865. }
  866. }
  867. // udev_queue_ref
  868. *(void **) (&udev_queue_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_ref");
  869. if (verbose) {
  870. error = dlerror();
  871. if (error != NULL) {
  872. fprintf(stderr, "%s\n", error);
  873. }
  874. }
  875. // udev_queue_unref
  876. *(void **) (&udev_queue_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_unref");
  877. if (verbose) {
  878. error = dlerror();
  879. if (error != NULL) {
  880. fprintf(stderr, "%s\n", error);
  881. }
  882. }
  883. // udev_queue_get_udev
  884. *(void **) (&udev_queue_get_udev_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_udev");
  885. if (verbose) {
  886. error = dlerror();
  887. if (error != NULL) {
  888. fprintf(stderr, "%s\n", error);
  889. }
  890. }
  891. // udev_queue_new
  892. *(void **) (&udev_queue_new_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_new");
  893. if (verbose) {
  894. error = dlerror();
  895. if (error != NULL) {
  896. fprintf(stderr, "%s\n", error);
  897. }
  898. }
  899. // udev_queue_get_kernel_seqnum
  900. *(void **) (&udev_queue_get_kernel_seqnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_kernel_seqnum");
  901. if (verbose) {
  902. error = dlerror();
  903. if (error != NULL) {
  904. fprintf(stderr, "%s\n", error);
  905. }
  906. }
  907. // udev_queue_get_udev_seqnum
  908. *(void **) (&udev_queue_get_udev_seqnum_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_udev_seqnum");
  909. if (verbose) {
  910. error = dlerror();
  911. if (error != NULL) {
  912. fprintf(stderr, "%s\n", error);
  913. }
  914. }
  915. // udev_queue_get_udev_is_active
  916. *(void **) (&udev_queue_get_udev_is_active_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_udev_is_active");
  917. if (verbose) {
  918. error = dlerror();
  919. if (error != NULL) {
  920. fprintf(stderr, "%s\n", error);
  921. }
  922. }
  923. // udev_queue_get_queue_is_empty
  924. *(void **) (&udev_queue_get_queue_is_empty_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_queue_is_empty");
  925. if (verbose) {
  926. error = dlerror();
  927. if (error != NULL) {
  928. fprintf(stderr, "%s\n", error);
  929. }
  930. }
  931. // udev_queue_get_seqnum_is_finished
  932. *(void **) (&udev_queue_get_seqnum_is_finished_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_seqnum_is_finished");
  933. if (verbose) {
  934. error = dlerror();
  935. if (error != NULL) {
  936. fprintf(stderr, "%s\n", error);
  937. }
  938. }
  939. // udev_queue_get_seqnum_sequence_is_finished
  940. *(void **) (&udev_queue_get_seqnum_sequence_is_finished_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_seqnum_sequence_is_finished");
  941. if (verbose) {
  942. error = dlerror();
  943. if (error != NULL) {
  944. fprintf(stderr, "%s\n", error);
  945. }
  946. }
  947. // udev_queue_get_fd
  948. *(void **) (&udev_queue_get_fd_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_fd");
  949. if (verbose) {
  950. error = dlerror();
  951. if (error != NULL) {
  952. fprintf(stderr, "%s\n", error);
  953. }
  954. }
  955. // udev_queue_flush
  956. *(void **) (&udev_queue_flush_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_flush");
  957. if (verbose) {
  958. error = dlerror();
  959. if (error != NULL) {
  960. fprintf(stderr, "%s\n", error);
  961. }
  962. }
  963. // udev_queue_get_queued_list_entry
  964. *(void **) (&udev_queue_get_queued_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_queue_get_queued_list_entry");
  965. if (verbose) {
  966. error = dlerror();
  967. if (error != NULL) {
  968. fprintf(stderr, "%s\n", error);
  969. }
  970. }
  971. // udev_hwdb_new
  972. *(void **) (&udev_hwdb_new_dylibloader_wrapper_libudev) = dlsym(handle, "udev_hwdb_new");
  973. if (verbose) {
  974. error = dlerror();
  975. if (error != NULL) {
  976. fprintf(stderr, "%s\n", error);
  977. }
  978. }
  979. // udev_hwdb_ref
  980. *(void **) (&udev_hwdb_ref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_hwdb_ref");
  981. if (verbose) {
  982. error = dlerror();
  983. if (error != NULL) {
  984. fprintf(stderr, "%s\n", error);
  985. }
  986. }
  987. // udev_hwdb_unref
  988. *(void **) (&udev_hwdb_unref_dylibloader_wrapper_libudev) = dlsym(handle, "udev_hwdb_unref");
  989. if (verbose) {
  990. error = dlerror();
  991. if (error != NULL) {
  992. fprintf(stderr, "%s\n", error);
  993. }
  994. }
  995. // udev_hwdb_get_properties_list_entry
  996. *(void **) (&udev_hwdb_get_properties_list_entry_dylibloader_wrapper_libudev) = dlsym(handle, "udev_hwdb_get_properties_list_entry");
  997. if (verbose) {
  998. error = dlerror();
  999. if (error != NULL) {
  1000. fprintf(stderr, "%s\n", error);
  1001. }
  1002. }
  1003. // udev_util_encode_string
  1004. *(void **) (&udev_util_encode_string_dylibloader_wrapper_libudev) = dlsym(handle, "udev_util_encode_string");
  1005. if (verbose) {
  1006. error = dlerror();
  1007. if (error != NULL) {
  1008. fprintf(stderr, "%s\n", error);
  1009. }
  1010. }
  1011. return 0;
  1012. }