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