about summary refs log tree commit diff stats
path: root/src/wrapped32/wrappedlibxfixes.c
blob: cc0f3a22865116f1992a95f5d216fa9a106ef47a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _GNU_SOURCE         /* See feature_test_macros(7) */
#include <dlfcn.h>

#include "wrappedlibs.h"

#include "debug.h"
#include "wrapper32.h"
#include "bridge.h"
#include "librarian/library_private.h"
#include "x64emu.h"
#include "emu/x64emu_private.h"
#include "callback.h"
#include "librarian.h"
#include "box32context.h"
#include "emu/x64emu_private.h"
#include "converter32.h"

#ifdef ANDROID
    static const char* libxfixesName = "libXfixes.so";
#else
    static const char* libxfixesName = "libXfixes.so.3";
#endif

#define LIBNAME libxfixes

#include "libtools/my_x11_conv.h"

#include "generated/wrappedlibxfixestypes32.h"

#include "wrappercallback32.h"

EXPORT int my32_XFixesQueryExtension(x64emu_t* emu, void* dpy, int* event_base, int* error_base)
{
    int ret = my->XFixesQueryExtension(dpy, event_base, error_base);
    if(!ret) return ret;

    register_XFixes_events(*event_base);
    return ret;
}

#if 0
#ifdef ANDROID
#define NEEDED_LIBS "libX11.so", "libxcb.so", "libXau.so", "libXdmcp.so"
#else
#define NEEDED_LIBS "libX11.so.6", "libxcb.so.1", "libXau.so.6", "libXdmcp.so.6"
#endif
#endif

#define CUSTOM_FINI \
    unregister_XFixes_events();

#include "wrappedlib_init32.h"