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