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-23 15:13:54 |
4 | // flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h" --soname libXrandr.so.2 --init-name xrandr --output-header ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c |
5 | // |
6 | // NOTE: Generated from Xrandr 1.5.2. |
7 | // This has been handpatched to workaround some issues with the generator that |
8 | // will be eventually fixed. In this case, non-existent symbols inherited from |
9 | // libX11 and libXrender, but absent in libXrandr.so.2, were removed. |
10 | #include <stdint.h> |
11 | |
12 | #define XRRQueryExtension XRRQueryExtension_dylibloader_orig_xrandr |
13 | #define XRRQueryVersion XRRQueryVersion_dylibloader_orig_xrandr |
14 | #define XRRGetScreenInfo XRRGetScreenInfo_dylibloader_orig_xrandr |
15 | #define XRRFreeScreenConfigInfo XRRFreeScreenConfigInfo_dylibloader_orig_xrandr |
16 | #define XRRSetScreenConfig XRRSetScreenConfig_dylibloader_orig_xrandr |
17 | #define XRRSetScreenConfigAndRate XRRSetScreenConfigAndRate_dylibloader_orig_xrandr |
18 | #define XRRConfigRotations XRRConfigRotations_dylibloader_orig_xrandr |
19 | #define XRRConfigTimes XRRConfigTimes_dylibloader_orig_xrandr |
20 | #define XRRConfigSizes XRRConfigSizes_dylibloader_orig_xrandr |
21 | #define XRRConfigRates XRRConfigRates_dylibloader_orig_xrandr |
22 | #define XRRConfigCurrentConfiguration XRRConfigCurrentConfiguration_dylibloader_orig_xrandr |
23 | #define XRRConfigCurrentRate XRRConfigCurrentRate_dylibloader_orig_xrandr |
24 | #define XRRRootToScreen XRRRootToScreen_dylibloader_orig_xrandr |
25 | #define XRRSelectInput XRRSelectInput_dylibloader_orig_xrandr |
26 | #define XRRRotations XRRRotations_dylibloader_orig_xrandr |
27 | #define XRRSizes XRRSizes_dylibloader_orig_xrandr |
28 | #define XRRRates XRRRates_dylibloader_orig_xrandr |
29 | #define XRRTimes XRRTimes_dylibloader_orig_xrandr |
30 | #define XRRGetScreenSizeRange XRRGetScreenSizeRange_dylibloader_orig_xrandr |
31 | #define XRRSetScreenSize XRRSetScreenSize_dylibloader_orig_xrandr |
32 | #define XRRGetScreenResources XRRGetScreenResources_dylibloader_orig_xrandr |
33 | #define XRRFreeScreenResources XRRFreeScreenResources_dylibloader_orig_xrandr |
34 | #define XRRGetOutputInfo XRRGetOutputInfo_dylibloader_orig_xrandr |
35 | #define XRRFreeOutputInfo XRRFreeOutputInfo_dylibloader_orig_xrandr |
36 | #define XRRListOutputProperties XRRListOutputProperties_dylibloader_orig_xrandr |
37 | #define XRRQueryOutputProperty XRRQueryOutputProperty_dylibloader_orig_xrandr |
38 | #define XRRConfigureOutputProperty XRRConfigureOutputProperty_dylibloader_orig_xrandr |
39 | #define XRRChangeOutputProperty XRRChangeOutputProperty_dylibloader_orig_xrandr |
40 | #define XRRDeleteOutputProperty XRRDeleteOutputProperty_dylibloader_orig_xrandr |
41 | #define XRRGetOutputProperty XRRGetOutputProperty_dylibloader_orig_xrandr |
42 | #define XRRAllocModeInfo XRRAllocModeInfo_dylibloader_orig_xrandr |
43 | #define XRRCreateMode XRRCreateMode_dylibloader_orig_xrandr |
44 | #define XRRDestroyMode XRRDestroyMode_dylibloader_orig_xrandr |
45 | #define XRRAddOutputMode XRRAddOutputMode_dylibloader_orig_xrandr |
46 | #define XRRDeleteOutputMode XRRDeleteOutputMode_dylibloader_orig_xrandr |
47 | #define XRRFreeModeInfo XRRFreeModeInfo_dylibloader_orig_xrandr |
48 | #define XRRGetCrtcInfo XRRGetCrtcInfo_dylibloader_orig_xrandr |
49 | #define XRRFreeCrtcInfo XRRFreeCrtcInfo_dylibloader_orig_xrandr |
50 | #define XRRSetCrtcConfig XRRSetCrtcConfig_dylibloader_orig_xrandr |
51 | #define XRRGetCrtcGammaSize XRRGetCrtcGammaSize_dylibloader_orig_xrandr |
52 | #define XRRGetCrtcGamma XRRGetCrtcGamma_dylibloader_orig_xrandr |
53 | #define XRRAllocGamma XRRAllocGamma_dylibloader_orig_xrandr |
54 | #define XRRSetCrtcGamma XRRSetCrtcGamma_dylibloader_orig_xrandr |
55 | #define XRRFreeGamma XRRFreeGamma_dylibloader_orig_xrandr |
56 | #define XRRGetScreenResourcesCurrent XRRGetScreenResourcesCurrent_dylibloader_orig_xrandr |
57 | #define XRRSetCrtcTransform XRRSetCrtcTransform_dylibloader_orig_xrandr |
58 | #define XRRGetCrtcTransform XRRGetCrtcTransform_dylibloader_orig_xrandr |
59 | #define XRRUpdateConfiguration XRRUpdateConfiguration_dylibloader_orig_xrandr |
60 | #define XRRGetPanning XRRGetPanning_dylibloader_orig_xrandr |
61 | #define XRRFreePanning XRRFreePanning_dylibloader_orig_xrandr |
62 | #define XRRSetPanning XRRSetPanning_dylibloader_orig_xrandr |
63 | #define XRRSetOutputPrimary XRRSetOutputPrimary_dylibloader_orig_xrandr |
64 | #define XRRGetOutputPrimary XRRGetOutputPrimary_dylibloader_orig_xrandr |
65 | #define XRRGetProviderResources XRRGetProviderResources_dylibloader_orig_xrandr |
66 | #define XRRFreeProviderResources XRRFreeProviderResources_dylibloader_orig_xrandr |
67 | #define XRRGetProviderInfo XRRGetProviderInfo_dylibloader_orig_xrandr |
68 | #define XRRFreeProviderInfo XRRFreeProviderInfo_dylibloader_orig_xrandr |
69 | #define XRRSetProviderOutputSource XRRSetProviderOutputSource_dylibloader_orig_xrandr |
70 | #define XRRSetProviderOffloadSink XRRSetProviderOffloadSink_dylibloader_orig_xrandr |
71 | #define XRRListProviderProperties XRRListProviderProperties_dylibloader_orig_xrandr |
72 | #define XRRQueryProviderProperty XRRQueryProviderProperty_dylibloader_orig_xrandr |
73 | #define XRRConfigureProviderProperty XRRConfigureProviderProperty_dylibloader_orig_xrandr |
74 | #define XRRChangeProviderProperty XRRChangeProviderProperty_dylibloader_orig_xrandr |
75 | #define XRRDeleteProviderProperty XRRDeleteProviderProperty_dylibloader_orig_xrandr |
76 | #define XRRGetProviderProperty XRRGetProviderProperty_dylibloader_orig_xrandr |
77 | #define XRRAllocateMonitor XRRAllocateMonitor_dylibloader_orig_xrandr |
78 | #define XRRGetMonitors XRRGetMonitors_dylibloader_orig_xrandr |
79 | #define XRRSetMonitor XRRSetMonitor_dylibloader_orig_xrandr |
80 | #define XRRDeleteMonitor XRRDeleteMonitor_dylibloader_orig_xrandr |
81 | #define XRRFreeMonitors XRRFreeMonitors_dylibloader_orig_xrandr |
82 | #include "thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h" |
83 | #undef XRRQueryExtension |
84 | #undef XRRQueryVersion |
85 | #undef XRRGetScreenInfo |
86 | #undef XRRFreeScreenConfigInfo |
87 | #undef XRRSetScreenConfig |
88 | #undef XRRSetScreenConfigAndRate |
89 | #undef XRRConfigRotations |
90 | #undef XRRConfigTimes |
91 | #undef XRRConfigSizes |
92 | #undef XRRConfigRates |
93 | #undef XRRConfigCurrentConfiguration |
94 | #undef XRRConfigCurrentRate |
95 | #undef XRRRootToScreen |
96 | #undef XRRSelectInput |
97 | #undef XRRRotations |
98 | #undef XRRSizes |
99 | #undef XRRRates |
100 | #undef XRRTimes |
101 | #undef XRRGetScreenSizeRange |
102 | #undef XRRSetScreenSize |
103 | #undef XRRGetScreenResources |
104 | #undef XRRFreeScreenResources |
105 | #undef XRRGetOutputInfo |
106 | #undef XRRFreeOutputInfo |
107 | #undef XRRListOutputProperties |
108 | #undef XRRQueryOutputProperty |
109 | #undef XRRConfigureOutputProperty |
110 | #undef XRRChangeOutputProperty |
111 | #undef XRRDeleteOutputProperty |
112 | #undef XRRGetOutputProperty |
113 | #undef XRRAllocModeInfo |
114 | #undef XRRCreateMode |
115 | #undef XRRDestroyMode |
116 | #undef XRRAddOutputMode |
117 | #undef XRRDeleteOutputMode |
118 | #undef XRRFreeModeInfo |
119 | #undef XRRGetCrtcInfo |
120 | #undef XRRFreeCrtcInfo |
121 | #undef XRRSetCrtcConfig |
122 | #undef XRRGetCrtcGammaSize |
123 | #undef XRRGetCrtcGamma |
124 | #undef XRRAllocGamma |
125 | #undef XRRSetCrtcGamma |
126 | #undef XRRFreeGamma |
127 | #undef XRRGetScreenResourcesCurrent |
128 | #undef XRRSetCrtcTransform |
129 | #undef XRRGetCrtcTransform |
130 | #undef XRRUpdateConfiguration |
131 | #undef XRRGetPanning |
132 | #undef XRRFreePanning |
133 | #undef XRRSetPanning |
134 | #undef XRRSetOutputPrimary |
135 | #undef XRRGetOutputPrimary |
136 | #undef XRRGetProviderResources |
137 | #undef XRRFreeProviderResources |
138 | #undef XRRGetProviderInfo |
139 | #undef XRRFreeProviderInfo |
140 | #undef XRRSetProviderOutputSource |
141 | #undef XRRSetProviderOffloadSink |
142 | #undef XRRListProviderProperties |
143 | #undef XRRQueryProviderProperty |
144 | #undef XRRConfigureProviderProperty |
145 | #undef XRRChangeProviderProperty |
146 | #undef XRRDeleteProviderProperty |
147 | #undef XRRGetProviderProperty |
148 | #undef XRRAllocateMonitor |
149 | #undef XRRGetMonitors |
150 | #undef XRRSetMonitor |
151 | #undef XRRDeleteMonitor |
152 | #undef XRRFreeMonitors |
153 | #include <dlfcn.h> |
154 | #include <stdio.h> |
155 | int (*XRRQueryExtension_dylibloader_wrapper_xrandr)( Display*, int*, int*); |
156 | int (*XRRQueryVersion_dylibloader_wrapper_xrandr)( Display*, int*, int*); |
157 | XRRScreenConfiguration* (*XRRGetScreenInfo_dylibloader_wrapper_xrandr)( Display*, Window); |
158 | void (*XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*); |
159 | int (*XRRSetScreenConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, Time); |
160 | int (*XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, short, Time); |
161 | Rotation (*XRRConfigRotations_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*); |
162 | Time (*XRRConfigTimes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Time*); |
163 | XRRScreenSize* (*XRRConfigSizes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int*); |
164 | short* (*XRRConfigRates_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int, int*); |
165 | SizeID (*XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*); |
166 | short (*XRRConfigCurrentRate_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*); |
167 | int (*XRRRootToScreen_dylibloader_wrapper_xrandr)( Display*, Window); |
168 | void (*XRRSelectInput_dylibloader_wrapper_xrandr)( Display*, Window, int); |
169 | Rotation (*XRRRotations_dylibloader_wrapper_xrandr)( Display*, int, Rotation*); |
170 | XRRScreenSize* (*XRRSizes_dylibloader_wrapper_xrandr)( Display*, int, int*); |
171 | short* (*XRRRates_dylibloader_wrapper_xrandr)( Display*, int, int, int*); |
172 | Time (*XRRTimes_dylibloader_wrapper_xrandr)( Display*, int, Time*); |
173 | int (*XRRGetScreenSizeRange_dylibloader_wrapper_xrandr)( Display*, Window, int*, int*, int*, int*); |
174 | void (*XRRSetScreenSize_dylibloader_wrapper_xrandr)( Display*, Window, int, int, int, int); |
175 | XRRScreenResources* (*XRRGetScreenResources_dylibloader_wrapper_xrandr)( Display*, Window); |
176 | void (*XRRFreeScreenResources_dylibloader_wrapper_xrandr)( XRRScreenResources*); |
177 | XRROutputInfo* (*XRRGetOutputInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RROutput); |
178 | void (*XRRFreeOutputInfo_dylibloader_wrapper_xrandr)( XRROutputInfo*); |
179 | Atom* (*XRRListOutputProperties_dylibloader_wrapper_xrandr)( Display*, RROutput, int*); |
180 | XRRPropertyInfo* (*XRRQueryOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom); |
181 | void (*XRRConfigureOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, int, int, int, long*); |
182 | void (*XRRChangeOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, Atom, int, int,const unsigned char*, int); |
183 | void (*XRRDeleteOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom); |
184 | int (*XRRGetOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**); |
185 | XRRModeInfo* (*XRRAllocModeInfo_dylibloader_wrapper_xrandr)(const char*, int); |
186 | RRMode (*XRRCreateMode_dylibloader_wrapper_xrandr)( Display*, Window, XRRModeInfo*); |
187 | void (*XRRDestroyMode_dylibloader_wrapper_xrandr)( Display*, RRMode); |
188 | void (*XRRAddOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode); |
189 | void (*XRRDeleteOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode); |
190 | void (*XRRFreeModeInfo_dylibloader_wrapper_xrandr)( XRRModeInfo*); |
191 | XRRCrtcInfo* (*XRRGetCrtcInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc); |
192 | void (*XRRFreeCrtcInfo_dylibloader_wrapper_xrandr)( XRRCrtcInfo*); |
193 | int (*XRRSetCrtcConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, Time, int, int, RRMode, Rotation, RROutput*, int); |
194 | int (*XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr)( Display*, RRCrtc); |
195 | XRRCrtcGamma* (*XRRGetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc); |
196 | XRRCrtcGamma* (*XRRAllocGamma_dylibloader_wrapper_xrandr)( int); |
197 | void (*XRRSetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcGamma*); |
198 | void (*XRRFreeGamma_dylibloader_wrapper_xrandr)( XRRCrtcGamma*); |
199 | XRRScreenResources* (*XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr)( Display*, Window); |
200 | void (*XRRSetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XTransform*,const char*, XFixed*, int); |
201 | int (*XRRGetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcTransformAttributes**); |
202 | int (*XRRUpdateConfiguration_dylibloader_wrapper_xrandr)( XEvent*); |
203 | XRRPanning* (*XRRGetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc); |
204 | void (*XRRFreePanning_dylibloader_wrapper_xrandr)( XRRPanning*); |
205 | int (*XRRSetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, XRRPanning*); |
206 | void (*XRRSetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window, RROutput); |
207 | RROutput (*XRRGetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window); |
208 | XRRProviderResources* (*XRRGetProviderResources_dylibloader_wrapper_xrandr)( Display*, Window); |
209 | void (*XRRFreeProviderResources_dylibloader_wrapper_xrandr)( XRRProviderResources*); |
210 | XRRProviderInfo* (*XRRGetProviderInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRProvider); |
211 | void (*XRRFreeProviderInfo_dylibloader_wrapper_xrandr)( XRRProviderInfo*); |
212 | int (*XRRSetProviderOutputSource_dylibloader_wrapper_xrandr)( Display*, XID, XID); |
213 | int (*XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr)( Display*, XID, XID); |
214 | Atom* (*XRRListProviderProperties_dylibloader_wrapper_xrandr)( Display*, RRProvider, int*); |
215 | XRRPropertyInfo* (*XRRQueryProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom); |
216 | void (*XRRConfigureProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, int, int, int, long*); |
217 | void (*XRRChangeProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, Atom, int, int,const unsigned char*, int); |
218 | void (*XRRDeleteProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom); |
219 | int (*XRRGetProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**); |
220 | XRRMonitorInfo* (*XRRAllocateMonitor_dylibloader_wrapper_xrandr)( Display*, int); |
221 | XRRMonitorInfo* (*XRRGetMonitors_dylibloader_wrapper_xrandr)( Display*, Window, int, int*); |
222 | void (*XRRSetMonitor_dylibloader_wrapper_xrandr)( Display*, Window, XRRMonitorInfo*); |
223 | void (*XRRDeleteMonitor_dylibloader_wrapper_xrandr)( Display*, Window, Atom); |
224 | void (*XRRFreeMonitors_dylibloader_wrapper_xrandr)( XRRMonitorInfo*); |
225 | int initialize_xrandr(int verbose) { |
226 | void *handle; |
227 | char *error; |
228 | handle = dlopen("libXrandr.so.2" , RTLD_LAZY); |
229 | if (!handle) { |
230 | if (verbose) { |
231 | fprintf(stderr, "%s\n" , dlerror()); |
232 | } |
233 | return(1); |
234 | } |
235 | dlerror(); |
236 | // XRRQueryExtension |
237 | *(void **) (&XRRQueryExtension_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRQueryExtension" ); |
238 | if (verbose) { |
239 | error = dlerror(); |
240 | if (error != NULL) { |
241 | fprintf(stderr, "%s\n" , error); |
242 | } |
243 | } |
244 | // XRRQueryVersion |
245 | *(void **) (&XRRQueryVersion_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRQueryVersion" ); |
246 | if (verbose) { |
247 | error = dlerror(); |
248 | if (error != NULL) { |
249 | fprintf(stderr, "%s\n" , error); |
250 | } |
251 | } |
252 | // XRRGetScreenInfo |
253 | *(void **) (&XRRGetScreenInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetScreenInfo" ); |
254 | if (verbose) { |
255 | error = dlerror(); |
256 | if (error != NULL) { |
257 | fprintf(stderr, "%s\n" , error); |
258 | } |
259 | } |
260 | // XRRFreeScreenConfigInfo |
261 | *(void **) (&XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeScreenConfigInfo" ); |
262 | if (verbose) { |
263 | error = dlerror(); |
264 | if (error != NULL) { |
265 | fprintf(stderr, "%s\n" , error); |
266 | } |
267 | } |
268 | // XRRSetScreenConfig |
269 | *(void **) (&XRRSetScreenConfig_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetScreenConfig" ); |
270 | if (verbose) { |
271 | error = dlerror(); |
272 | if (error != NULL) { |
273 | fprintf(stderr, "%s\n" , error); |
274 | } |
275 | } |
276 | // XRRSetScreenConfigAndRate |
277 | *(void **) (&XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetScreenConfigAndRate" ); |
278 | if (verbose) { |
279 | error = dlerror(); |
280 | if (error != NULL) { |
281 | fprintf(stderr, "%s\n" , error); |
282 | } |
283 | } |
284 | // XRRConfigRotations |
285 | *(void **) (&XRRConfigRotations_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigRotations" ); |
286 | if (verbose) { |
287 | error = dlerror(); |
288 | if (error != NULL) { |
289 | fprintf(stderr, "%s\n" , error); |
290 | } |
291 | } |
292 | // XRRConfigTimes |
293 | *(void **) (&XRRConfigTimes_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigTimes" ); |
294 | if (verbose) { |
295 | error = dlerror(); |
296 | if (error != NULL) { |
297 | fprintf(stderr, "%s\n" , error); |
298 | } |
299 | } |
300 | // XRRConfigSizes |
301 | *(void **) (&XRRConfigSizes_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigSizes" ); |
302 | if (verbose) { |
303 | error = dlerror(); |
304 | if (error != NULL) { |
305 | fprintf(stderr, "%s\n" , error); |
306 | } |
307 | } |
308 | // XRRConfigRates |
309 | *(void **) (&XRRConfigRates_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigRates" ); |
310 | if (verbose) { |
311 | error = dlerror(); |
312 | if (error != NULL) { |
313 | fprintf(stderr, "%s\n" , error); |
314 | } |
315 | } |
316 | // XRRConfigCurrentConfiguration |
317 | *(void **) (&XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigCurrentConfiguration" ); |
318 | if (verbose) { |
319 | error = dlerror(); |
320 | if (error != NULL) { |
321 | fprintf(stderr, "%s\n" , error); |
322 | } |
323 | } |
324 | // XRRConfigCurrentRate |
325 | *(void **) (&XRRConfigCurrentRate_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigCurrentRate" ); |
326 | if (verbose) { |
327 | error = dlerror(); |
328 | if (error != NULL) { |
329 | fprintf(stderr, "%s\n" , error); |
330 | } |
331 | } |
332 | // XRRRootToScreen |
333 | *(void **) (&XRRRootToScreen_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRRootToScreen" ); |
334 | if (verbose) { |
335 | error = dlerror(); |
336 | if (error != NULL) { |
337 | fprintf(stderr, "%s\n" , error); |
338 | } |
339 | } |
340 | // XRRSelectInput |
341 | *(void **) (&XRRSelectInput_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSelectInput" ); |
342 | if (verbose) { |
343 | error = dlerror(); |
344 | if (error != NULL) { |
345 | fprintf(stderr, "%s\n" , error); |
346 | } |
347 | } |
348 | // XRRRotations |
349 | *(void **) (&XRRRotations_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRRotations" ); |
350 | if (verbose) { |
351 | error = dlerror(); |
352 | if (error != NULL) { |
353 | fprintf(stderr, "%s\n" , error); |
354 | } |
355 | } |
356 | // XRRSizes |
357 | *(void **) (&XRRSizes_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSizes" ); |
358 | if (verbose) { |
359 | error = dlerror(); |
360 | if (error != NULL) { |
361 | fprintf(stderr, "%s\n" , error); |
362 | } |
363 | } |
364 | // XRRRates |
365 | *(void **) (&XRRRates_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRRates" ); |
366 | if (verbose) { |
367 | error = dlerror(); |
368 | if (error != NULL) { |
369 | fprintf(stderr, "%s\n" , error); |
370 | } |
371 | } |
372 | // XRRTimes |
373 | *(void **) (&XRRTimes_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRTimes" ); |
374 | if (verbose) { |
375 | error = dlerror(); |
376 | if (error != NULL) { |
377 | fprintf(stderr, "%s\n" , error); |
378 | } |
379 | } |
380 | // XRRGetScreenSizeRange |
381 | *(void **) (&XRRGetScreenSizeRange_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetScreenSizeRange" ); |
382 | if (verbose) { |
383 | error = dlerror(); |
384 | if (error != NULL) { |
385 | fprintf(stderr, "%s\n" , error); |
386 | } |
387 | } |
388 | // XRRSetScreenSize |
389 | *(void **) (&XRRSetScreenSize_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetScreenSize" ); |
390 | if (verbose) { |
391 | error = dlerror(); |
392 | if (error != NULL) { |
393 | fprintf(stderr, "%s\n" , error); |
394 | } |
395 | } |
396 | // XRRGetScreenResources |
397 | *(void **) (&XRRGetScreenResources_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetScreenResources" ); |
398 | if (verbose) { |
399 | error = dlerror(); |
400 | if (error != NULL) { |
401 | fprintf(stderr, "%s\n" , error); |
402 | } |
403 | } |
404 | // XRRFreeScreenResources |
405 | *(void **) (&XRRFreeScreenResources_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeScreenResources" ); |
406 | if (verbose) { |
407 | error = dlerror(); |
408 | if (error != NULL) { |
409 | fprintf(stderr, "%s\n" , error); |
410 | } |
411 | } |
412 | // XRRGetOutputInfo |
413 | *(void **) (&XRRGetOutputInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetOutputInfo" ); |
414 | if (verbose) { |
415 | error = dlerror(); |
416 | if (error != NULL) { |
417 | fprintf(stderr, "%s\n" , error); |
418 | } |
419 | } |
420 | // XRRFreeOutputInfo |
421 | *(void **) (&XRRFreeOutputInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeOutputInfo" ); |
422 | if (verbose) { |
423 | error = dlerror(); |
424 | if (error != NULL) { |
425 | fprintf(stderr, "%s\n" , error); |
426 | } |
427 | } |
428 | // XRRListOutputProperties |
429 | *(void **) (&XRRListOutputProperties_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRListOutputProperties" ); |
430 | if (verbose) { |
431 | error = dlerror(); |
432 | if (error != NULL) { |
433 | fprintf(stderr, "%s\n" , error); |
434 | } |
435 | } |
436 | // XRRQueryOutputProperty |
437 | *(void **) (&XRRQueryOutputProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRQueryOutputProperty" ); |
438 | if (verbose) { |
439 | error = dlerror(); |
440 | if (error != NULL) { |
441 | fprintf(stderr, "%s\n" , error); |
442 | } |
443 | } |
444 | // XRRConfigureOutputProperty |
445 | *(void **) (&XRRConfigureOutputProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigureOutputProperty" ); |
446 | if (verbose) { |
447 | error = dlerror(); |
448 | if (error != NULL) { |
449 | fprintf(stderr, "%s\n" , error); |
450 | } |
451 | } |
452 | // XRRChangeOutputProperty |
453 | *(void **) (&XRRChangeOutputProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRChangeOutputProperty" ); |
454 | if (verbose) { |
455 | error = dlerror(); |
456 | if (error != NULL) { |
457 | fprintf(stderr, "%s\n" , error); |
458 | } |
459 | } |
460 | // XRRDeleteOutputProperty |
461 | *(void **) (&XRRDeleteOutputProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRDeleteOutputProperty" ); |
462 | if (verbose) { |
463 | error = dlerror(); |
464 | if (error != NULL) { |
465 | fprintf(stderr, "%s\n" , error); |
466 | } |
467 | } |
468 | // XRRGetOutputProperty |
469 | *(void **) (&XRRGetOutputProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetOutputProperty" ); |
470 | if (verbose) { |
471 | error = dlerror(); |
472 | if (error != NULL) { |
473 | fprintf(stderr, "%s\n" , error); |
474 | } |
475 | } |
476 | // XRRAllocModeInfo |
477 | *(void **) (&XRRAllocModeInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRAllocModeInfo" ); |
478 | if (verbose) { |
479 | error = dlerror(); |
480 | if (error != NULL) { |
481 | fprintf(stderr, "%s\n" , error); |
482 | } |
483 | } |
484 | // XRRCreateMode |
485 | *(void **) (&XRRCreateMode_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRCreateMode" ); |
486 | if (verbose) { |
487 | error = dlerror(); |
488 | if (error != NULL) { |
489 | fprintf(stderr, "%s\n" , error); |
490 | } |
491 | } |
492 | // XRRDestroyMode |
493 | *(void **) (&XRRDestroyMode_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRDestroyMode" ); |
494 | if (verbose) { |
495 | error = dlerror(); |
496 | if (error != NULL) { |
497 | fprintf(stderr, "%s\n" , error); |
498 | } |
499 | } |
500 | // XRRAddOutputMode |
501 | *(void **) (&XRRAddOutputMode_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRAddOutputMode" ); |
502 | if (verbose) { |
503 | error = dlerror(); |
504 | if (error != NULL) { |
505 | fprintf(stderr, "%s\n" , error); |
506 | } |
507 | } |
508 | // XRRDeleteOutputMode |
509 | *(void **) (&XRRDeleteOutputMode_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRDeleteOutputMode" ); |
510 | if (verbose) { |
511 | error = dlerror(); |
512 | if (error != NULL) { |
513 | fprintf(stderr, "%s\n" , error); |
514 | } |
515 | } |
516 | // XRRFreeModeInfo |
517 | *(void **) (&XRRFreeModeInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeModeInfo" ); |
518 | if (verbose) { |
519 | error = dlerror(); |
520 | if (error != NULL) { |
521 | fprintf(stderr, "%s\n" , error); |
522 | } |
523 | } |
524 | // XRRGetCrtcInfo |
525 | *(void **) (&XRRGetCrtcInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetCrtcInfo" ); |
526 | if (verbose) { |
527 | error = dlerror(); |
528 | if (error != NULL) { |
529 | fprintf(stderr, "%s\n" , error); |
530 | } |
531 | } |
532 | // XRRFreeCrtcInfo |
533 | *(void **) (&XRRFreeCrtcInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeCrtcInfo" ); |
534 | if (verbose) { |
535 | error = dlerror(); |
536 | if (error != NULL) { |
537 | fprintf(stderr, "%s\n" , error); |
538 | } |
539 | } |
540 | // XRRSetCrtcConfig |
541 | *(void **) (&XRRSetCrtcConfig_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetCrtcConfig" ); |
542 | if (verbose) { |
543 | error = dlerror(); |
544 | if (error != NULL) { |
545 | fprintf(stderr, "%s\n" , error); |
546 | } |
547 | } |
548 | // XRRGetCrtcGammaSize |
549 | *(void **) (&XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetCrtcGammaSize" ); |
550 | if (verbose) { |
551 | error = dlerror(); |
552 | if (error != NULL) { |
553 | fprintf(stderr, "%s\n" , error); |
554 | } |
555 | } |
556 | // XRRGetCrtcGamma |
557 | *(void **) (&XRRGetCrtcGamma_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetCrtcGamma" ); |
558 | if (verbose) { |
559 | error = dlerror(); |
560 | if (error != NULL) { |
561 | fprintf(stderr, "%s\n" , error); |
562 | } |
563 | } |
564 | // XRRAllocGamma |
565 | *(void **) (&XRRAllocGamma_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRAllocGamma" ); |
566 | if (verbose) { |
567 | error = dlerror(); |
568 | if (error != NULL) { |
569 | fprintf(stderr, "%s\n" , error); |
570 | } |
571 | } |
572 | // XRRSetCrtcGamma |
573 | *(void **) (&XRRSetCrtcGamma_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetCrtcGamma" ); |
574 | if (verbose) { |
575 | error = dlerror(); |
576 | if (error != NULL) { |
577 | fprintf(stderr, "%s\n" , error); |
578 | } |
579 | } |
580 | // XRRFreeGamma |
581 | *(void **) (&XRRFreeGamma_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeGamma" ); |
582 | if (verbose) { |
583 | error = dlerror(); |
584 | if (error != NULL) { |
585 | fprintf(stderr, "%s\n" , error); |
586 | } |
587 | } |
588 | // XRRGetScreenResourcesCurrent |
589 | *(void **) (&XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetScreenResourcesCurrent" ); |
590 | if (verbose) { |
591 | error = dlerror(); |
592 | if (error != NULL) { |
593 | fprintf(stderr, "%s\n" , error); |
594 | } |
595 | } |
596 | // XRRSetCrtcTransform |
597 | *(void **) (&XRRSetCrtcTransform_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetCrtcTransform" ); |
598 | if (verbose) { |
599 | error = dlerror(); |
600 | if (error != NULL) { |
601 | fprintf(stderr, "%s\n" , error); |
602 | } |
603 | } |
604 | // XRRGetCrtcTransform |
605 | *(void **) (&XRRGetCrtcTransform_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetCrtcTransform" ); |
606 | if (verbose) { |
607 | error = dlerror(); |
608 | if (error != NULL) { |
609 | fprintf(stderr, "%s\n" , error); |
610 | } |
611 | } |
612 | // XRRUpdateConfiguration |
613 | *(void **) (&XRRUpdateConfiguration_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRUpdateConfiguration" ); |
614 | if (verbose) { |
615 | error = dlerror(); |
616 | if (error != NULL) { |
617 | fprintf(stderr, "%s\n" , error); |
618 | } |
619 | } |
620 | // XRRGetPanning |
621 | *(void **) (&XRRGetPanning_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetPanning" ); |
622 | if (verbose) { |
623 | error = dlerror(); |
624 | if (error != NULL) { |
625 | fprintf(stderr, "%s\n" , error); |
626 | } |
627 | } |
628 | // XRRFreePanning |
629 | *(void **) (&XRRFreePanning_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreePanning" ); |
630 | if (verbose) { |
631 | error = dlerror(); |
632 | if (error != NULL) { |
633 | fprintf(stderr, "%s\n" , error); |
634 | } |
635 | } |
636 | // XRRSetPanning |
637 | *(void **) (&XRRSetPanning_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetPanning" ); |
638 | if (verbose) { |
639 | error = dlerror(); |
640 | if (error != NULL) { |
641 | fprintf(stderr, "%s\n" , error); |
642 | } |
643 | } |
644 | // XRRSetOutputPrimary |
645 | *(void **) (&XRRSetOutputPrimary_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetOutputPrimary" ); |
646 | if (verbose) { |
647 | error = dlerror(); |
648 | if (error != NULL) { |
649 | fprintf(stderr, "%s\n" , error); |
650 | } |
651 | } |
652 | // XRRGetOutputPrimary |
653 | *(void **) (&XRRGetOutputPrimary_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetOutputPrimary" ); |
654 | if (verbose) { |
655 | error = dlerror(); |
656 | if (error != NULL) { |
657 | fprintf(stderr, "%s\n" , error); |
658 | } |
659 | } |
660 | // XRRGetProviderResources |
661 | *(void **) (&XRRGetProviderResources_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetProviderResources" ); |
662 | if (verbose) { |
663 | error = dlerror(); |
664 | if (error != NULL) { |
665 | fprintf(stderr, "%s\n" , error); |
666 | } |
667 | } |
668 | // XRRFreeProviderResources |
669 | *(void **) (&XRRFreeProviderResources_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeProviderResources" ); |
670 | if (verbose) { |
671 | error = dlerror(); |
672 | if (error != NULL) { |
673 | fprintf(stderr, "%s\n" , error); |
674 | } |
675 | } |
676 | // XRRGetProviderInfo |
677 | *(void **) (&XRRGetProviderInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetProviderInfo" ); |
678 | if (verbose) { |
679 | error = dlerror(); |
680 | if (error != NULL) { |
681 | fprintf(stderr, "%s\n" , error); |
682 | } |
683 | } |
684 | // XRRFreeProviderInfo |
685 | *(void **) (&XRRFreeProviderInfo_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeProviderInfo" ); |
686 | if (verbose) { |
687 | error = dlerror(); |
688 | if (error != NULL) { |
689 | fprintf(stderr, "%s\n" , error); |
690 | } |
691 | } |
692 | // XRRSetProviderOutputSource |
693 | *(void **) (&XRRSetProviderOutputSource_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetProviderOutputSource" ); |
694 | if (verbose) { |
695 | error = dlerror(); |
696 | if (error != NULL) { |
697 | fprintf(stderr, "%s\n" , error); |
698 | } |
699 | } |
700 | // XRRSetProviderOffloadSink |
701 | *(void **) (&XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetProviderOffloadSink" ); |
702 | if (verbose) { |
703 | error = dlerror(); |
704 | if (error != NULL) { |
705 | fprintf(stderr, "%s\n" , error); |
706 | } |
707 | } |
708 | // XRRListProviderProperties |
709 | *(void **) (&XRRListProviderProperties_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRListProviderProperties" ); |
710 | if (verbose) { |
711 | error = dlerror(); |
712 | if (error != NULL) { |
713 | fprintf(stderr, "%s\n" , error); |
714 | } |
715 | } |
716 | // XRRQueryProviderProperty |
717 | *(void **) (&XRRQueryProviderProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRQueryProviderProperty" ); |
718 | if (verbose) { |
719 | error = dlerror(); |
720 | if (error != NULL) { |
721 | fprintf(stderr, "%s\n" , error); |
722 | } |
723 | } |
724 | // XRRConfigureProviderProperty |
725 | *(void **) (&XRRConfigureProviderProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRConfigureProviderProperty" ); |
726 | if (verbose) { |
727 | error = dlerror(); |
728 | if (error != NULL) { |
729 | fprintf(stderr, "%s\n" , error); |
730 | } |
731 | } |
732 | // XRRChangeProviderProperty |
733 | *(void **) (&XRRChangeProviderProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRChangeProviderProperty" ); |
734 | if (verbose) { |
735 | error = dlerror(); |
736 | if (error != NULL) { |
737 | fprintf(stderr, "%s\n" , error); |
738 | } |
739 | } |
740 | // XRRDeleteProviderProperty |
741 | *(void **) (&XRRDeleteProviderProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRDeleteProviderProperty" ); |
742 | if (verbose) { |
743 | error = dlerror(); |
744 | if (error != NULL) { |
745 | fprintf(stderr, "%s\n" , error); |
746 | } |
747 | } |
748 | // XRRGetProviderProperty |
749 | *(void **) (&XRRGetProviderProperty_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetProviderProperty" ); |
750 | if (verbose) { |
751 | error = dlerror(); |
752 | if (error != NULL) { |
753 | fprintf(stderr, "%s\n" , error); |
754 | } |
755 | } |
756 | // XRRAllocateMonitor |
757 | *(void **) (&XRRAllocateMonitor_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRAllocateMonitor" ); |
758 | if (verbose) { |
759 | error = dlerror(); |
760 | if (error != NULL) { |
761 | fprintf(stderr, "%s\n" , error); |
762 | } |
763 | } |
764 | // XRRGetMonitors |
765 | *(void **) (&XRRGetMonitors_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRGetMonitors" ); |
766 | if (verbose) { |
767 | error = dlerror(); |
768 | if (error != NULL) { |
769 | fprintf(stderr, "%s\n" , error); |
770 | } |
771 | } |
772 | // XRRSetMonitor |
773 | *(void **) (&XRRSetMonitor_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRSetMonitor" ); |
774 | if (verbose) { |
775 | error = dlerror(); |
776 | if (error != NULL) { |
777 | fprintf(stderr, "%s\n" , error); |
778 | } |
779 | } |
780 | // XRRDeleteMonitor |
781 | *(void **) (&XRRDeleteMonitor_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRDeleteMonitor" ); |
782 | if (verbose) { |
783 | error = dlerror(); |
784 | if (error != NULL) { |
785 | fprintf(stderr, "%s\n" , error); |
786 | } |
787 | } |
788 | // XRRFreeMonitors |
789 | *(void **) (&XRRFreeMonitors_dylibloader_wrapper_xrandr) = dlsym(handle, "XRRFreeMonitors" ); |
790 | if (verbose) { |
791 | error = dlerror(); |
792 | if (error != NULL) { |
793 | fprintf(stderr, "%s\n" , error); |
794 | } |
795 | } |
796 | return 0; |
797 | } |
798 | |