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:09:53
4// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --sys-include "thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h" --soname libXcursor.so.1 --init-name xcursor --output-header ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
5//
6// NOTE: Generated from Xcursor 1.2.0.
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, but absent in libXcursor.so.1, were removed.
10#include <stdint.h>
11
12#define XcursorImageCreate XcursorImageCreate_dylibloader_orig_xcursor
13#define XcursorImageDestroy XcursorImageDestroy_dylibloader_orig_xcursor
14#define XcursorImagesCreate XcursorImagesCreate_dylibloader_orig_xcursor
15#define XcursorImagesDestroy XcursorImagesDestroy_dylibloader_orig_xcursor
16#define XcursorImagesSetName XcursorImagesSetName_dylibloader_orig_xcursor
17#define XcursorCursorsCreate XcursorCursorsCreate_dylibloader_orig_xcursor
18#define XcursorCursorsDestroy XcursorCursorsDestroy_dylibloader_orig_xcursor
19#define XcursorAnimateCreate XcursorAnimateCreate_dylibloader_orig_xcursor
20#define XcursorAnimateDestroy XcursorAnimateDestroy_dylibloader_orig_xcursor
21#define XcursorAnimateNext XcursorAnimateNext_dylibloader_orig_xcursor
22#define XcursorCommentCreate XcursorCommentCreate_dylibloader_orig_xcursor
23#define XcursorCommentDestroy XcursorCommentDestroy_dylibloader_orig_xcursor
24#define XcursorCommentsCreate XcursorCommentsCreate_dylibloader_orig_xcursor
25#define XcursorCommentsDestroy XcursorCommentsDestroy_dylibloader_orig_xcursor
26#define XcursorXcFileLoadImage XcursorXcFileLoadImage_dylibloader_orig_xcursor
27#define XcursorXcFileLoadImages XcursorXcFileLoadImages_dylibloader_orig_xcursor
28#define XcursorXcFileLoadAllImages XcursorXcFileLoadAllImages_dylibloader_orig_xcursor
29#define XcursorXcFileLoad XcursorXcFileLoad_dylibloader_orig_xcursor
30#define XcursorXcFileSave XcursorXcFileSave_dylibloader_orig_xcursor
31#define XcursorFileLoadImage XcursorFileLoadImage_dylibloader_orig_xcursor
32#define XcursorFileLoadImages XcursorFileLoadImages_dylibloader_orig_xcursor
33#define XcursorFileLoadAllImages XcursorFileLoadAllImages_dylibloader_orig_xcursor
34#define XcursorFileLoad XcursorFileLoad_dylibloader_orig_xcursor
35#define XcursorFileSaveImages XcursorFileSaveImages_dylibloader_orig_xcursor
36#define XcursorFileSave XcursorFileSave_dylibloader_orig_xcursor
37#define XcursorFilenameLoadImage XcursorFilenameLoadImage_dylibloader_orig_xcursor
38#define XcursorFilenameLoadImages XcursorFilenameLoadImages_dylibloader_orig_xcursor
39#define XcursorFilenameLoadAllImages XcursorFilenameLoadAllImages_dylibloader_orig_xcursor
40#define XcursorFilenameLoad XcursorFilenameLoad_dylibloader_orig_xcursor
41#define XcursorFilenameSaveImages XcursorFilenameSaveImages_dylibloader_orig_xcursor
42#define XcursorFilenameSave XcursorFilenameSave_dylibloader_orig_xcursor
43#define XcursorLibraryLoadImage XcursorLibraryLoadImage_dylibloader_orig_xcursor
44#define XcursorLibraryLoadImages XcursorLibraryLoadImages_dylibloader_orig_xcursor
45#define XcursorLibraryPath XcursorLibraryPath_dylibloader_orig_xcursor
46#define XcursorLibraryShape XcursorLibraryShape_dylibloader_orig_xcursor
47#define XcursorImageLoadCursor XcursorImageLoadCursor_dylibloader_orig_xcursor
48#define XcursorImagesLoadCursors XcursorImagesLoadCursors_dylibloader_orig_xcursor
49#define XcursorImagesLoadCursor XcursorImagesLoadCursor_dylibloader_orig_xcursor
50#define XcursorFilenameLoadCursor XcursorFilenameLoadCursor_dylibloader_orig_xcursor
51#define XcursorFilenameLoadCursors XcursorFilenameLoadCursors_dylibloader_orig_xcursor
52#define XcursorLibraryLoadCursor XcursorLibraryLoadCursor_dylibloader_orig_xcursor
53#define XcursorLibraryLoadCursors XcursorLibraryLoadCursors_dylibloader_orig_xcursor
54#define XcursorShapeLoadImage XcursorShapeLoadImage_dylibloader_orig_xcursor
55#define XcursorShapeLoadImages XcursorShapeLoadImages_dylibloader_orig_xcursor
56#define XcursorShapeLoadCursor XcursorShapeLoadCursor_dylibloader_orig_xcursor
57#define XcursorShapeLoadCursors XcursorShapeLoadCursors_dylibloader_orig_xcursor
58#define XcursorTryShapeCursor XcursorTryShapeCursor_dylibloader_orig_xcursor
59#define XcursorNoticeCreateBitmap XcursorNoticeCreateBitmap_dylibloader_orig_xcursor
60#define XcursorNoticePutBitmap XcursorNoticePutBitmap_dylibloader_orig_xcursor
61#define XcursorTryShapeBitmapCursor XcursorTryShapeBitmapCursor_dylibloader_orig_xcursor
62#define XcursorImageHash XcursorImageHash_dylibloader_orig_xcursor
63#define XcursorSupportsARGB XcursorSupportsARGB_dylibloader_orig_xcursor
64#define XcursorSupportsAnim XcursorSupportsAnim_dylibloader_orig_xcursor
65#define XcursorSetDefaultSize XcursorSetDefaultSize_dylibloader_orig_xcursor
66#define XcursorGetDefaultSize XcursorGetDefaultSize_dylibloader_orig_xcursor
67#define XcursorSetTheme XcursorSetTheme_dylibloader_orig_xcursor
68#define XcursorGetTheme XcursorGetTheme_dylibloader_orig_xcursor
69#define XcursorGetThemeCore XcursorGetThemeCore_dylibloader_orig_xcursor
70#define XcursorSetThemeCore XcursorSetThemeCore_dylibloader_orig_xcursor
71#include "thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h"
72#undef XcursorImageCreate
73#undef XcursorImageDestroy
74#undef XcursorImagesCreate
75#undef XcursorImagesDestroy
76#undef XcursorImagesSetName
77#undef XcursorCursorsCreate
78#undef XcursorCursorsDestroy
79#undef XcursorAnimateCreate
80#undef XcursorAnimateDestroy
81#undef XcursorAnimateNext
82#undef XcursorCommentCreate
83#undef XcursorCommentDestroy
84#undef XcursorCommentsCreate
85#undef XcursorCommentsDestroy
86#undef XcursorXcFileLoadImage
87#undef XcursorXcFileLoadImages
88#undef XcursorXcFileLoadAllImages
89#undef XcursorXcFileLoad
90#undef XcursorXcFileSave
91#undef XcursorFileLoadImage
92#undef XcursorFileLoadImages
93#undef XcursorFileLoadAllImages
94#undef XcursorFileLoad
95#undef XcursorFileSaveImages
96#undef XcursorFileSave
97#undef XcursorFilenameLoadImage
98#undef XcursorFilenameLoadImages
99#undef XcursorFilenameLoadAllImages
100#undef XcursorFilenameLoad
101#undef XcursorFilenameSaveImages
102#undef XcursorFilenameSave
103#undef XcursorLibraryLoadImage
104#undef XcursorLibraryLoadImages
105#undef XcursorLibraryPath
106#undef XcursorLibraryShape
107#undef XcursorImageLoadCursor
108#undef XcursorImagesLoadCursors
109#undef XcursorImagesLoadCursor
110#undef XcursorFilenameLoadCursor
111#undef XcursorFilenameLoadCursors
112#undef XcursorLibraryLoadCursor
113#undef XcursorLibraryLoadCursors
114#undef XcursorShapeLoadImage
115#undef XcursorShapeLoadImages
116#undef XcursorShapeLoadCursor
117#undef XcursorShapeLoadCursors
118#undef XcursorTryShapeCursor
119#undef XcursorNoticeCreateBitmap
120#undef XcursorNoticePutBitmap
121#undef XcursorTryShapeBitmapCursor
122#undef XcursorImageHash
123#undef XcursorSupportsARGB
124#undef XcursorSupportsAnim
125#undef XcursorSetDefaultSize
126#undef XcursorGetDefaultSize
127#undef XcursorSetTheme
128#undef XcursorGetTheme
129#undef XcursorGetThemeCore
130#undef XcursorSetThemeCore
131#include <dlfcn.h>
132#include <stdio.h>
133XcursorImage* (*XcursorImageCreate_dylibloader_wrapper_xcursor)( int, int);
134void (*XcursorImageDestroy_dylibloader_wrapper_xcursor)( XcursorImage*);
135XcursorImages* (*XcursorImagesCreate_dylibloader_wrapper_xcursor)( int);
136void (*XcursorImagesDestroy_dylibloader_wrapper_xcursor)( XcursorImages*);
137void (*XcursorImagesSetName_dylibloader_wrapper_xcursor)( XcursorImages*,const char*);
138XcursorCursors* (*XcursorCursorsCreate_dylibloader_wrapper_xcursor)( Display*, int);
139void (*XcursorCursorsDestroy_dylibloader_wrapper_xcursor)( XcursorCursors*);
140XcursorAnimate* (*XcursorAnimateCreate_dylibloader_wrapper_xcursor)( XcursorCursors*);
141void (*XcursorAnimateDestroy_dylibloader_wrapper_xcursor)( XcursorAnimate*);
142Cursor (*XcursorAnimateNext_dylibloader_wrapper_xcursor)( XcursorAnimate*);
143XcursorComment* (*XcursorCommentCreate_dylibloader_wrapper_xcursor)( XcursorUInt, int);
144void (*XcursorCommentDestroy_dylibloader_wrapper_xcursor)( XcursorComment*);
145XcursorComments* (*XcursorCommentsCreate_dylibloader_wrapper_xcursor)( int);
146void (*XcursorCommentsDestroy_dylibloader_wrapper_xcursor)( XcursorComments*);
147XcursorImage* (*XcursorXcFileLoadImage_dylibloader_wrapper_xcursor)( XcursorFile*, int);
148XcursorImages* (*XcursorXcFileLoadImages_dylibloader_wrapper_xcursor)( XcursorFile*, int);
149XcursorImages* (*XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor)( XcursorFile*);
150XcursorBool (*XcursorXcFileLoad_dylibloader_wrapper_xcursor)( XcursorFile*, XcursorComments**, XcursorImages**);
151XcursorBool (*XcursorXcFileSave_dylibloader_wrapper_xcursor)( XcursorFile*,const XcursorComments*,const XcursorImages*);
152XcursorImage* (*XcursorFileLoadImage_dylibloader_wrapper_xcursor)( FILE*, int);
153XcursorImages* (*XcursorFileLoadImages_dylibloader_wrapper_xcursor)( FILE*, int);
154XcursorImages* (*XcursorFileLoadAllImages_dylibloader_wrapper_xcursor)( FILE*);
155XcursorBool (*XcursorFileLoad_dylibloader_wrapper_xcursor)( FILE*, XcursorComments**, XcursorImages**);
156XcursorBool (*XcursorFileSaveImages_dylibloader_wrapper_xcursor)( FILE*,const XcursorImages*);
157XcursorBool (*XcursorFileSave_dylibloader_wrapper_xcursor)( FILE*,const XcursorComments*,const XcursorImages*);
158XcursorImage* (*XcursorFilenameLoadImage_dylibloader_wrapper_xcursor)(const char*, int);
159XcursorImages* (*XcursorFilenameLoadImages_dylibloader_wrapper_xcursor)(const char*, int);
160XcursorImages* (*XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor)(const char*);
161XcursorBool (*XcursorFilenameLoad_dylibloader_wrapper_xcursor)(const char*, XcursorComments**, XcursorImages**);
162XcursorBool (*XcursorFilenameSaveImages_dylibloader_wrapper_xcursor)(const char*,const XcursorImages*);
163XcursorBool (*XcursorFilenameSave_dylibloader_wrapper_xcursor)(const char*,const XcursorComments*,const XcursorImages*);
164XcursorImage* (*XcursorLibraryLoadImage_dylibloader_wrapper_xcursor)(const char*,const char*, int);
165XcursorImages* (*XcursorLibraryLoadImages_dylibloader_wrapper_xcursor)(const char*,const char*, int);
166const char* (*XcursorLibraryPath_dylibloader_wrapper_xcursor)( void);
167int (*XcursorLibraryShape_dylibloader_wrapper_xcursor)(const char*);
168Cursor (*XcursorImageLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImage*);
169XcursorCursors* (*XcursorImagesLoadCursors_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
170Cursor (*XcursorImagesLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
171Cursor (*XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
172XcursorCursors* (*XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
173Cursor (*XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
174XcursorCursors* (*XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
175XcursorImage* (*XcursorShapeLoadImage_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
176XcursorImages* (*XcursorShapeLoadImages_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
177Cursor (*XcursorShapeLoadCursor_dylibloader_wrapper_xcursor)( Display*, unsigned int);
178XcursorCursors* (*XcursorShapeLoadCursors_dylibloader_wrapper_xcursor)( Display*, unsigned int);
179Cursor (*XcursorTryShapeCursor_dylibloader_wrapper_xcursor)( Display*, Font, Font, unsigned int, unsigned int,const XColor*,const XColor*);
180void (*XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor)( Display*, Pixmap, unsigned int, unsigned int);
181void (*XcursorNoticePutBitmap_dylibloader_wrapper_xcursor)( Display*, Drawable, XImage*);
182Cursor (*XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor)( Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
183void (*XcursorImageHash_dylibloader_wrapper_xcursor)( XImage*, unsigned char [16]);
184XcursorBool (*XcursorSupportsARGB_dylibloader_wrapper_xcursor)( Display*);
185XcursorBool (*XcursorSupportsAnim_dylibloader_wrapper_xcursor)( Display*);
186XcursorBool (*XcursorSetDefaultSize_dylibloader_wrapper_xcursor)( Display*, int);
187int (*XcursorGetDefaultSize_dylibloader_wrapper_xcursor)( Display*);
188XcursorBool (*XcursorSetTheme_dylibloader_wrapper_xcursor)( Display*,const char*);
189char* (*XcursorGetTheme_dylibloader_wrapper_xcursor)( Display*);
190XcursorBool (*XcursorGetThemeCore_dylibloader_wrapper_xcursor)( Display*);
191XcursorBool (*XcursorSetThemeCore_dylibloader_wrapper_xcursor)( Display*, XcursorBool);
192int initialize_xcursor(int verbose) {
193 void *handle;
194 char *error;
195 handle = dlopen("libXcursor.so.1", RTLD_LAZY);
196 if (!handle) {
197 if (verbose) {
198 fprintf(stderr, "%s\n", dlerror());
199 }
200 return(1);
201 }
202 dlerror();
203// XcursorImageCreate
204 *(void **) (&XcursorImageCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImageCreate");
205 if (verbose) {
206 error = dlerror();
207 if (error != NULL) {
208 fprintf(stderr, "%s\n", error);
209 }
210 }
211// XcursorImageDestroy
212 *(void **) (&XcursorImageDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImageDestroy");
213 if (verbose) {
214 error = dlerror();
215 if (error != NULL) {
216 fprintf(stderr, "%s\n", error);
217 }
218 }
219// XcursorImagesCreate
220 *(void **) (&XcursorImagesCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImagesCreate");
221 if (verbose) {
222 error = dlerror();
223 if (error != NULL) {
224 fprintf(stderr, "%s\n", error);
225 }
226 }
227// XcursorImagesDestroy
228 *(void **) (&XcursorImagesDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImagesDestroy");
229 if (verbose) {
230 error = dlerror();
231 if (error != NULL) {
232 fprintf(stderr, "%s\n", error);
233 }
234 }
235// XcursorImagesSetName
236 *(void **) (&XcursorImagesSetName_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImagesSetName");
237 if (verbose) {
238 error = dlerror();
239 if (error != NULL) {
240 fprintf(stderr, "%s\n", error);
241 }
242 }
243// XcursorCursorsCreate
244 *(void **) (&XcursorCursorsCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCursorsCreate");
245 if (verbose) {
246 error = dlerror();
247 if (error != NULL) {
248 fprintf(stderr, "%s\n", error);
249 }
250 }
251// XcursorCursorsDestroy
252 *(void **) (&XcursorCursorsDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCursorsDestroy");
253 if (verbose) {
254 error = dlerror();
255 if (error != NULL) {
256 fprintf(stderr, "%s\n", error);
257 }
258 }
259// XcursorAnimateCreate
260 *(void **) (&XcursorAnimateCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorAnimateCreate");
261 if (verbose) {
262 error = dlerror();
263 if (error != NULL) {
264 fprintf(stderr, "%s\n", error);
265 }
266 }
267// XcursorAnimateDestroy
268 *(void **) (&XcursorAnimateDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorAnimateDestroy");
269 if (verbose) {
270 error = dlerror();
271 if (error != NULL) {
272 fprintf(stderr, "%s\n", error);
273 }
274 }
275// XcursorAnimateNext
276 *(void **) (&XcursorAnimateNext_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorAnimateNext");
277 if (verbose) {
278 error = dlerror();
279 if (error != NULL) {
280 fprintf(stderr, "%s\n", error);
281 }
282 }
283// XcursorCommentCreate
284 *(void **) (&XcursorCommentCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCommentCreate");
285 if (verbose) {
286 error = dlerror();
287 if (error != NULL) {
288 fprintf(stderr, "%s\n", error);
289 }
290 }
291// XcursorCommentDestroy
292 *(void **) (&XcursorCommentDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCommentDestroy");
293 if (verbose) {
294 error = dlerror();
295 if (error != NULL) {
296 fprintf(stderr, "%s\n", error);
297 }
298 }
299// XcursorCommentsCreate
300 *(void **) (&XcursorCommentsCreate_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCommentsCreate");
301 if (verbose) {
302 error = dlerror();
303 if (error != NULL) {
304 fprintf(stderr, "%s\n", error);
305 }
306 }
307// XcursorCommentsDestroy
308 *(void **) (&XcursorCommentsDestroy_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorCommentsDestroy");
309 if (verbose) {
310 error = dlerror();
311 if (error != NULL) {
312 fprintf(stderr, "%s\n", error);
313 }
314 }
315// XcursorXcFileLoadImage
316 *(void **) (&XcursorXcFileLoadImage_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorXcFileLoadImage");
317 if (verbose) {
318 error = dlerror();
319 if (error != NULL) {
320 fprintf(stderr, "%s\n", error);
321 }
322 }
323// XcursorXcFileLoadImages
324 *(void **) (&XcursorXcFileLoadImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorXcFileLoadImages");
325 if (verbose) {
326 error = dlerror();
327 if (error != NULL) {
328 fprintf(stderr, "%s\n", error);
329 }
330 }
331// XcursorXcFileLoadAllImages
332 *(void **) (&XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorXcFileLoadAllImages");
333 if (verbose) {
334 error = dlerror();
335 if (error != NULL) {
336 fprintf(stderr, "%s\n", error);
337 }
338 }
339// XcursorXcFileLoad
340 *(void **) (&XcursorXcFileLoad_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorXcFileLoad");
341 if (verbose) {
342 error = dlerror();
343 if (error != NULL) {
344 fprintf(stderr, "%s\n", error);
345 }
346 }
347// XcursorXcFileSave
348 *(void **) (&XcursorXcFileSave_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorXcFileSave");
349 if (verbose) {
350 error = dlerror();
351 if (error != NULL) {
352 fprintf(stderr, "%s\n", error);
353 }
354 }
355// XcursorFileLoadImage
356 *(void **) (&XcursorFileLoadImage_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileLoadImage");
357 if (verbose) {
358 error = dlerror();
359 if (error != NULL) {
360 fprintf(stderr, "%s\n", error);
361 }
362 }
363// XcursorFileLoadImages
364 *(void **) (&XcursorFileLoadImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileLoadImages");
365 if (verbose) {
366 error = dlerror();
367 if (error != NULL) {
368 fprintf(stderr, "%s\n", error);
369 }
370 }
371// XcursorFileLoadAllImages
372 *(void **) (&XcursorFileLoadAllImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileLoadAllImages");
373 if (verbose) {
374 error = dlerror();
375 if (error != NULL) {
376 fprintf(stderr, "%s\n", error);
377 }
378 }
379// XcursorFileLoad
380 *(void **) (&XcursorFileLoad_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileLoad");
381 if (verbose) {
382 error = dlerror();
383 if (error != NULL) {
384 fprintf(stderr, "%s\n", error);
385 }
386 }
387// XcursorFileSaveImages
388 *(void **) (&XcursorFileSaveImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileSaveImages");
389 if (verbose) {
390 error = dlerror();
391 if (error != NULL) {
392 fprintf(stderr, "%s\n", error);
393 }
394 }
395// XcursorFileSave
396 *(void **) (&XcursorFileSave_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFileSave");
397 if (verbose) {
398 error = dlerror();
399 if (error != NULL) {
400 fprintf(stderr, "%s\n", error);
401 }
402 }
403// XcursorFilenameLoadImage
404 *(void **) (&XcursorFilenameLoadImage_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoadImage");
405 if (verbose) {
406 error = dlerror();
407 if (error != NULL) {
408 fprintf(stderr, "%s\n", error);
409 }
410 }
411// XcursorFilenameLoadImages
412 *(void **) (&XcursorFilenameLoadImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoadImages");
413 if (verbose) {
414 error = dlerror();
415 if (error != NULL) {
416 fprintf(stderr, "%s\n", error);
417 }
418 }
419// XcursorFilenameLoadAllImages
420 *(void **) (&XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoadAllImages");
421 if (verbose) {
422 error = dlerror();
423 if (error != NULL) {
424 fprintf(stderr, "%s\n", error);
425 }
426 }
427// XcursorFilenameLoad
428 *(void **) (&XcursorFilenameLoad_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoad");
429 if (verbose) {
430 error = dlerror();
431 if (error != NULL) {
432 fprintf(stderr, "%s\n", error);
433 }
434 }
435// XcursorFilenameSaveImages
436 *(void **) (&XcursorFilenameSaveImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameSaveImages");
437 if (verbose) {
438 error = dlerror();
439 if (error != NULL) {
440 fprintf(stderr, "%s\n", error);
441 }
442 }
443// XcursorFilenameSave
444 *(void **) (&XcursorFilenameSave_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameSave");
445 if (verbose) {
446 error = dlerror();
447 if (error != NULL) {
448 fprintf(stderr, "%s\n", error);
449 }
450 }
451// XcursorLibraryLoadImage
452 *(void **) (&XcursorLibraryLoadImage_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryLoadImage");
453 if (verbose) {
454 error = dlerror();
455 if (error != NULL) {
456 fprintf(stderr, "%s\n", error);
457 }
458 }
459// XcursorLibraryLoadImages
460 *(void **) (&XcursorLibraryLoadImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryLoadImages");
461 if (verbose) {
462 error = dlerror();
463 if (error != NULL) {
464 fprintf(stderr, "%s\n", error);
465 }
466 }
467// XcursorLibraryPath
468 *(void **) (&XcursorLibraryPath_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryPath");
469 if (verbose) {
470 error = dlerror();
471 if (error != NULL) {
472 fprintf(stderr, "%s\n", error);
473 }
474 }
475// XcursorLibraryShape
476 *(void **) (&XcursorLibraryShape_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryShape");
477 if (verbose) {
478 error = dlerror();
479 if (error != NULL) {
480 fprintf(stderr, "%s\n", error);
481 }
482 }
483// XcursorImageLoadCursor
484 *(void **) (&XcursorImageLoadCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImageLoadCursor");
485 if (verbose) {
486 error = dlerror();
487 if (error != NULL) {
488 fprintf(stderr, "%s\n", error);
489 }
490 }
491// XcursorImagesLoadCursors
492 *(void **) (&XcursorImagesLoadCursors_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImagesLoadCursors");
493 if (verbose) {
494 error = dlerror();
495 if (error != NULL) {
496 fprintf(stderr, "%s\n", error);
497 }
498 }
499// XcursorImagesLoadCursor
500 *(void **) (&XcursorImagesLoadCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImagesLoadCursor");
501 if (verbose) {
502 error = dlerror();
503 if (error != NULL) {
504 fprintf(stderr, "%s\n", error);
505 }
506 }
507// XcursorFilenameLoadCursor
508 *(void **) (&XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoadCursor");
509 if (verbose) {
510 error = dlerror();
511 if (error != NULL) {
512 fprintf(stderr, "%s\n", error);
513 }
514 }
515// XcursorFilenameLoadCursors
516 *(void **) (&XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorFilenameLoadCursors");
517 if (verbose) {
518 error = dlerror();
519 if (error != NULL) {
520 fprintf(stderr, "%s\n", error);
521 }
522 }
523// XcursorLibraryLoadCursor
524 *(void **) (&XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryLoadCursor");
525 if (verbose) {
526 error = dlerror();
527 if (error != NULL) {
528 fprintf(stderr, "%s\n", error);
529 }
530 }
531// XcursorLibraryLoadCursors
532 *(void **) (&XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorLibraryLoadCursors");
533 if (verbose) {
534 error = dlerror();
535 if (error != NULL) {
536 fprintf(stderr, "%s\n", error);
537 }
538 }
539// XcursorShapeLoadImage
540 *(void **) (&XcursorShapeLoadImage_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorShapeLoadImage");
541 if (verbose) {
542 error = dlerror();
543 if (error != NULL) {
544 fprintf(stderr, "%s\n", error);
545 }
546 }
547// XcursorShapeLoadImages
548 *(void **) (&XcursorShapeLoadImages_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorShapeLoadImages");
549 if (verbose) {
550 error = dlerror();
551 if (error != NULL) {
552 fprintf(stderr, "%s\n", error);
553 }
554 }
555// XcursorShapeLoadCursor
556 *(void **) (&XcursorShapeLoadCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorShapeLoadCursor");
557 if (verbose) {
558 error = dlerror();
559 if (error != NULL) {
560 fprintf(stderr, "%s\n", error);
561 }
562 }
563// XcursorShapeLoadCursors
564 *(void **) (&XcursorShapeLoadCursors_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorShapeLoadCursors");
565 if (verbose) {
566 error = dlerror();
567 if (error != NULL) {
568 fprintf(stderr, "%s\n", error);
569 }
570 }
571// XcursorTryShapeCursor
572 *(void **) (&XcursorTryShapeCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorTryShapeCursor");
573 if (verbose) {
574 error = dlerror();
575 if (error != NULL) {
576 fprintf(stderr, "%s\n", error);
577 }
578 }
579// XcursorNoticeCreateBitmap
580 *(void **) (&XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorNoticeCreateBitmap");
581 if (verbose) {
582 error = dlerror();
583 if (error != NULL) {
584 fprintf(stderr, "%s\n", error);
585 }
586 }
587// XcursorNoticePutBitmap
588 *(void **) (&XcursorNoticePutBitmap_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorNoticePutBitmap");
589 if (verbose) {
590 error = dlerror();
591 if (error != NULL) {
592 fprintf(stderr, "%s\n", error);
593 }
594 }
595// XcursorTryShapeBitmapCursor
596 *(void **) (&XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorTryShapeBitmapCursor");
597 if (verbose) {
598 error = dlerror();
599 if (error != NULL) {
600 fprintf(stderr, "%s\n", error);
601 }
602 }
603// XcursorImageHash
604 *(void **) (&XcursorImageHash_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorImageHash");
605 if (verbose) {
606 error = dlerror();
607 if (error != NULL) {
608 fprintf(stderr, "%s\n", error);
609 }
610 }
611// XcursorSupportsARGB
612 *(void **) (&XcursorSupportsARGB_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorSupportsARGB");
613 if (verbose) {
614 error = dlerror();
615 if (error != NULL) {
616 fprintf(stderr, "%s\n", error);
617 }
618 }
619// XcursorSupportsAnim
620 *(void **) (&XcursorSupportsAnim_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorSupportsAnim");
621 if (verbose) {
622 error = dlerror();
623 if (error != NULL) {
624 fprintf(stderr, "%s\n", error);
625 }
626 }
627// XcursorSetDefaultSize
628 *(void **) (&XcursorSetDefaultSize_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorSetDefaultSize");
629 if (verbose) {
630 error = dlerror();
631 if (error != NULL) {
632 fprintf(stderr, "%s\n", error);
633 }
634 }
635// XcursorGetDefaultSize
636 *(void **) (&XcursorGetDefaultSize_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorGetDefaultSize");
637 if (verbose) {
638 error = dlerror();
639 if (error != NULL) {
640 fprintf(stderr, "%s\n", error);
641 }
642 }
643// XcursorSetTheme
644 *(void **) (&XcursorSetTheme_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorSetTheme");
645 if (verbose) {
646 error = dlerror();
647 if (error != NULL) {
648 fprintf(stderr, "%s\n", error);
649 }
650 }
651// XcursorGetTheme
652 *(void **) (&XcursorGetTheme_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorGetTheme");
653 if (verbose) {
654 error = dlerror();
655 if (error != NULL) {
656 fprintf(stderr, "%s\n", error);
657 }
658 }
659// XcursorGetThemeCore
660 *(void **) (&XcursorGetThemeCore_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorGetThemeCore");
661 if (verbose) {
662 error = dlerror();
663 if (error != NULL) {
664 fprintf(stderr, "%s\n", error);
665 }
666 }
667// XcursorSetThemeCore
668 *(void **) (&XcursorSetThemeCore_dylibloader_wrapper_xcursor) = dlsym(handle, "XcursorSetThemeCore");
669 if (verbose) {
670 error = dlerror();
671 if (error != NULL) {
672 fprintf(stderr, "%s\n", error);
673 }
674 }
675return 0;
676}
677