Skip to content

Commit

Permalink
[BOX32][WRAPPER] Added 32bits empty wrapped libXxf86vm
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 26, 2024
1 parent 95a0e66 commit d45001e
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ if(BOX32)
"${BOX64_ROOT}/src/wrapped32/wrappedlibxrender.c"
"${BOX64_ROOT}/src/wrapped32/wrappedlibxcursor.c"
"${BOX64_ROOT}/src/wrapped32/wrappedlibxrandr.c"
"${BOX64_ROOT}/src/wrapped32/wrappedlibxxf86vm.c"
)
endif()
string(REPLACE ".c" "_private.h" MODROOT ${BOX64_ROOT})
Expand Down
1 change: 1 addition & 0 deletions src/library_list_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ GO("libXrender.so.1", libxrender)
GO("libXcursor.so.1", libxcursor)
GO("libXrandr.so.2", libxrandr)
GO("libxrandr.so.2", libxrandr)
GO("libXxf86vm.so.1", libxxf86vm)

GO("libopenal.so.1", openal)
GO("libopenal.so.0", openal)
Expand Down
1 change: 1 addition & 0 deletions src/wrapped32/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1496,6 +1496,7 @@ wrappedlibxrandr:
- iFXpLLiiLWpi:
- XRRSetCrtcConfig
wrappedlibxrender:
wrappedlibxxf86vm:
wrappedopenal:
- vFv:
- alRequestFoldbackStop
Expand Down
8 changes: 8 additions & 0 deletions src/wrapped32/generated/wrappedlibxxf86vmdefs32.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/******************************************************************
* File automatically generated by rebuild_wrappers_32.py (v0.0.1.1) *
******************************************************************/
#ifndef __wrappedlibxxf86vmDEFS32_H_
#define __wrappedlibxxf86vmDEFS32_H_


#endif // __wrappedlibxxf86vmDEFS32_H_
17 changes: 17 additions & 0 deletions src/wrapped32/generated/wrappedlibxxf86vmtypes32.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/******************************************************************
* File automatically generated by rebuild_wrappers_32.py (v0.0.1.1) *
******************************************************************/
#ifndef __wrappedlibxxf86vmTYPES32_H_
#define __wrappedlibxxf86vmTYPES32_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 // __wrappedlibxxf86vmTYPES32_H_
8 changes: 8 additions & 0 deletions src/wrapped32/generated/wrappedlibxxf86vmundefs32.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/******************************************************************
* File automatically generated by rebuild_wrappers_32.py (v0.0.1.1) *
******************************************************************/
#ifndef __wrappedlibxxf86vmUNDEFS32_H_
#define __wrappedlibxxf86vmUNDEFS32_H_


#endif // __wrappedlibxxf86vmUNDEFS32_H_
34 changes: 34 additions & 0 deletions src/wrapped32/wrappedlibxxf86vm.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#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"

#ifdef ANDROID
static const char* libxxf86vmName = "libXxf86vm.so";
#else
static const char* libxxf86vmName = "libXxf86vm.so.1";
#endif

#define LIBNAME libxxf86vm
#if 0
#ifdef ANDROID
#define NEEDED_LIBS "libX11.so", "libXext.so"
#else
#define NEEDED_LIBS "libX11.so.6", "libXext.so.6"
#endif
#endif
#include "wrappedlib_init32.h"
26 changes: 26 additions & 0 deletions src/wrapped32/wrappedlibxxf86vm_private.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
#error Meh...
#endif

//GO(XF86VidModeGetViewPort, iFpipp)
//GO(XF86VidModeValidateModeLine, iFpip)
//GO(XF86VidModeGetGamma, iFpip)
//GO(XF86VidModeSetGamma, iFpip)
//GO(XF86VidModeSetClientVersion, iFp)
//GO(XF86VidModeGetGammaRamp, iFpiippp)
//GO(XF86VidModeGetMonitor, iFpip)
//GO(XF86VidModeQueryVersion, iFppp)
//GO(XF86VidModeDeleteModeLine, iFpip)
//GO(XF86VidModeGetModeLine, iFpipp)
//GO(XF86VidModeGetAllModeLines, iFpipp)
//GO(XF86VidModeSetGammaRamp, iFpiippp)
//GO(XF86VidModeGetPermissions, iFpip)
//GO(XF86VidModeModModeLine, iFpip)
//GO(XF86VidModeSetViewPort, iFpiii)
//GO(XF86VidModeSwitchMode, iFpii)
//GO(XF86VidModeAddModeLine, iFpipp)
//GO(XF86VidModeSwitchToMode, iFpip)
//GO(XF86VidModeQueryExtension, iFppp)
//GO(XF86VidModeGetGammaRampSize, iFpip)
//GO(XF86VidModeGetDotClocks, iFpipppp)
//GO(XF86VidModeLockModeSwitch, iFpii)

0 comments on commit d45001e

Please sign in to comment.