mirror of
https://github.com/ptitSeb/box64.git
synced 2024-11-23 18:04:16 +08:00
[BOX32][WRAPPER] Added 32bits libXinerama, with new wrapperhelper
This commit is contained in:
parent
1a5cd1c1ff
commit
13a7801421
@ -800,6 +800,7 @@ if(BOX32)
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibxcursor.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibxrandr.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedlibxxf86vm.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedxinerama.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedexpat.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedudev0.c"
|
||||
"${BOX64_ROOT}/src/wrapped32/wrappedudev1.c"
|
||||
|
@ -37,6 +37,7 @@ GO("libXcursor.so", libxcursor)
|
||||
GO("libXrandr.so", libxrandr)
|
||||
GO("libxrandr.so", libxrandr)
|
||||
GO("libXxf86vm.so", libxxf86vm)
|
||||
GO("libXinerama.so", xinerama)
|
||||
#else
|
||||
GO("libX11.so.6", libx11)
|
||||
GO("libXext.so.6", libxext)
|
||||
@ -46,6 +47,7 @@ GO("libXcursor.so.1", libxcursor)
|
||||
GO("libXrandr.so.2", libxrandr)
|
||||
GO("libxrandr.so.2", libxrandr)
|
||||
GO("libXxf86vm.so.1", libxxf86vm)
|
||||
GO("libXinerama.so.1", xinerama)
|
||||
#endif
|
||||
GO("libopenal.so.1", openal)
|
||||
GO("libopenal.so.0", openal)
|
||||
|
@ -2080,3 +2080,4 @@ wrappedudev0:
|
||||
wrappedudev1:
|
||||
- vFpp:
|
||||
- udev_set_log_fn
|
||||
wrappedxinerama:
|
||||
|
8
src/wrapped32/generated/wrappedxineramadefs32.h
Normal file
8
src/wrapped32/generated/wrappedxineramadefs32.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*********************************************************************
|
||||
* File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) *
|
||||
*********************************************************************/
|
||||
#ifndef __wrappedxineramaDEFS32_H_
|
||||
#define __wrappedxineramaDEFS32_H_
|
||||
|
||||
|
||||
#endif // __wrappedxineramaDEFS32_H_
|
17
src/wrapped32/generated/wrappedxineramatypes32.h
Normal file
17
src/wrapped32/generated/wrappedxineramatypes32.h
Normal file
@ -0,0 +1,17 @@
|
||||
/*********************************************************************
|
||||
* File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) *
|
||||
*********************************************************************/
|
||||
#ifndef __wrappedxineramaTYPES32_H_
|
||||
#define __wrappedxineramaTYPES32_H_
|
||||
|
||||
#ifndef LIBNAME
|
||||
#error You should only #include this file inside a wrapped*.c file
|
||||
#endif
|
||||
#ifndef ADDED_FUNCTIONS
|
||||
#define ADDED_FUNCTIONS()
|
||||
#endif
|
||||
|
||||
|
||||
#define SUPER() ADDED_FUNCTIONS()
|
||||
|
||||
#endif // __wrappedxineramaTYPES32_H_
|
8
src/wrapped32/generated/wrappedxineramaundefs32.h
Normal file
8
src/wrapped32/generated/wrappedxineramaundefs32.h
Normal file
@ -0,0 +1,8 @@
|
||||
/*********************************************************************
|
||||
* File automatically generated by rebuild_wrappers_32.py (v0.0.2.2) *
|
||||
*********************************************************************/
|
||||
#ifndef __wrappedxineramaUNDEFS32_H_
|
||||
#define __wrappedxineramaUNDEFS32_H_
|
||||
|
||||
|
||||
#endif // __wrappedxineramaUNDEFS32_H_
|
29
src/wrapped32/wrappedxinerama.c
Normal file
29
src/wrapped32/wrappedxinerama.c
Normal file
@ -0,0 +1,29 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define _GNU_SOURCE /* See feature_test_macros(7) */
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include "wrappedlibs.h"
|
||||
|
||||
#include "wrapper32.h"
|
||||
#include "bridge.h"
|
||||
#include "librarian/library_private.h"
|
||||
#include "x64emu.h"
|
||||
#include "box32.h"
|
||||
|
||||
#ifdef ANDROID
|
||||
static const char* xineramaName = "libXinerama.so";
|
||||
#else
|
||||
static const char* xineramaName = "libXinerama.so.1";
|
||||
#endif
|
||||
|
||||
#define LIBNAME xinerama
|
||||
|
||||
#ifdef ANDROID
|
||||
#define NEEDED_LIBS "libX11.so", "libXext.so"
|
||||
#else
|
||||
#define NEEDED_LIBS "libX11.so.6", "libXext.so.6"
|
||||
#endif
|
||||
|
||||
#include "wrappedlib_init32.h"
|
14
src/wrapped32/wrappedxinerama_private.h
Normal file
14
src/wrapped32/wrappedxinerama_private.h
Normal file
@ -0,0 +1,14 @@
|
||||
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
|
||||
#error Meh...
|
||||
#endif
|
||||
|
||||
GO(XineramaIsActive, iFX)
|
||||
GO(XineramaQueryExtension, iFXpp)
|
||||
GO(XineramaQueryScreens, pFXp)
|
||||
GO(XineramaQueryVersion, iFXpp)
|
||||
//GO(XPanoramiXAllocInfo, bLiiiiiL_Fv)
|
||||
//GO(XPanoramiXGetScreenCount, iFXLbLiiiiiL_)
|
||||
//GO(XPanoramiXGetScreenSize, iFXLibLiiiiiL_)
|
||||
//GO(XPanoramiXGetState, iFXLbLiiiiiL_)
|
||||
GO(XPanoramiXQueryExtension, iFXpp)
|
||||
GO(XPanoramiXQueryVersion, iFXpp)
|
Loading…
Reference in New Issue
Block a user