Path: blob/master/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
10279 views
// This file is generated. Do not edit!1// see https://github.com/hpvb/dynload-wrapper for details2// generated by generate-wrapper.py 0.7 on 2024-12-12 14:50:473// flags: generate-wrapper.py --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xext.h --include ./thirdparty/linuxbsd_headers/X11/extensions/shape.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/shape.h --soname libXext.so.6 --init-name xext --output-header ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c --ignore-other --implementation-header thirdparty/linuxbsd_headers/X11/Xlib.h4//5#include <stdint.h>67#include "thirdparty/linuxbsd_headers/X11/Xlib.h"8#define XShapeQueryExtension XShapeQueryExtension_dylibloader_orig_xext9#define XShapeQueryVersion XShapeQueryVersion_dylibloader_orig_xext10#define XShapeCombineRegion XShapeCombineRegion_dylibloader_orig_xext11#define XShapeCombineRectangles XShapeCombineRectangles_dylibloader_orig_xext12#define XShapeCombineMask XShapeCombineMask_dylibloader_orig_xext13#define XShapeCombineShape XShapeCombineShape_dylibloader_orig_xext14#define XShapeOffsetShape XShapeOffsetShape_dylibloader_orig_xext15#define XShapeQueryExtents XShapeQueryExtents_dylibloader_orig_xext16#define XShapeSelectInput XShapeSelectInput_dylibloader_orig_xext17#define XShapeInputSelected XShapeInputSelected_dylibloader_orig_xext18#define XShapeGetRectangles XShapeGetRectangles_dylibloader_orig_xext19#include "thirdparty/linuxbsd_headers/X11/extensions/Xext.h"20#include "thirdparty/linuxbsd_headers/X11/extensions/shape.h"21#undef XShapeQueryExtension22#undef XShapeQueryVersion23#undef XShapeCombineRegion24#undef XShapeCombineRectangles25#undef XShapeCombineMask26#undef XShapeCombineShape27#undef XShapeOffsetShape28#undef XShapeQueryExtents29#undef XShapeSelectInput30#undef XShapeInputSelected31#undef XShapeGetRectangles32#include <dlfcn.h>33#include <stdio.h>34int (*XShapeQueryExtension_dylibloader_wrapper_xext)(Display *, int *, int *);35int (*XShapeQueryVersion_dylibloader_wrapper_xext)(Display *, int *, int *);36void (*XShapeCombineRegion_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Region, int);37void (*XShapeCombineRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int, int, XRectangle *, int, int, int);38void (*XShapeCombineMask_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Pixmap, int);39void (*XShapeCombineShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Window, int, int);40void (*XShapeOffsetShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int);41int (*XShapeQueryExtents_dylibloader_wrapper_xext)(Display *, Window, int *, int *, int *, unsigned int *, unsigned int *, int *, int *, int *, unsigned int *, unsigned int *);42void (*XShapeSelectInput_dylibloader_wrapper_xext)(Display *, Window, unsigned long);43unsigned long (*XShapeInputSelected_dylibloader_wrapper_xext)(Display *, Window);44XRectangle *(*XShapeGetRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int *, int *);45int initialize_xext(int verbose) {46void *handle;47char *error;48handle = dlopen("libXext.so.6", RTLD_LAZY);49if (!handle) {50if (verbose) {51fprintf(stderr, "%s\n", dlerror());52}53return(1);54}55dlerror();56// XShapeQueryExtension57*(void **) (&XShapeQueryExtension_dylibloader_wrapper_xext) = dlsym(handle, "XShapeQueryExtension");58if (verbose) {59error = dlerror();60if (error != NULL) {61fprintf(stderr, "%s\n", error);62}63}64// XShapeQueryVersion65*(void **) (&XShapeQueryVersion_dylibloader_wrapper_xext) = dlsym(handle, "XShapeQueryVersion");66if (verbose) {67error = dlerror();68if (error != NULL) {69fprintf(stderr, "%s\n", error);70}71}72// XShapeCombineRegion73*(void **) (&XShapeCombineRegion_dylibloader_wrapper_xext) = dlsym(handle, "XShapeCombineRegion");74if (verbose) {75error = dlerror();76if (error != NULL) {77fprintf(stderr, "%s\n", error);78}79}80// XShapeCombineRectangles81*(void **) (&XShapeCombineRectangles_dylibloader_wrapper_xext) = dlsym(handle, "XShapeCombineRectangles");82if (verbose) {83error = dlerror();84if (error != NULL) {85fprintf(stderr, "%s\n", error);86}87}88// XShapeCombineMask89*(void **) (&XShapeCombineMask_dylibloader_wrapper_xext) = dlsym(handle, "XShapeCombineMask");90if (verbose) {91error = dlerror();92if (error != NULL) {93fprintf(stderr, "%s\n", error);94}95}96// XShapeCombineShape97*(void **) (&XShapeCombineShape_dylibloader_wrapper_xext) = dlsym(handle, "XShapeCombineShape");98if (verbose) {99error = dlerror();100if (error != NULL) {101fprintf(stderr, "%s\n", error);102}103}104// XShapeOffsetShape105*(void **) (&XShapeOffsetShape_dylibloader_wrapper_xext) = dlsym(handle, "XShapeOffsetShape");106if (verbose) {107error = dlerror();108if (error != NULL) {109fprintf(stderr, "%s\n", error);110}111}112// XShapeQueryExtents113*(void **) (&XShapeQueryExtents_dylibloader_wrapper_xext) = dlsym(handle, "XShapeQueryExtents");114if (verbose) {115error = dlerror();116if (error != NULL) {117fprintf(stderr, "%s\n", error);118}119}120// XShapeSelectInput121*(void **) (&XShapeSelectInput_dylibloader_wrapper_xext) = dlsym(handle, "XShapeSelectInput");122if (verbose) {123error = dlerror();124if (error != NULL) {125fprintf(stderr, "%s\n", error);126}127}128// XShapeInputSelected129*(void **) (&XShapeInputSelected_dylibloader_wrapper_xext) = dlsym(handle, "XShapeInputSelected");130if (verbose) {131error = dlerror();132if (error != NULL) {133fprintf(stderr, "%s\n", error);134}135}136// XShapeGetRectangles137*(void **) (&XShapeGetRectangles_dylibloader_wrapper_xext) = dlsym(handle, "XShapeGetRectangles");138if (verbose) {139error = dlerror();140if (error != NULL) {141fprintf(stderr, "%s\n", error);142}143}144return 0;145}146147148