about summary refs log tree commit diff stats
path: root/src/include/box64context.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2022-10-19 22:59:07 +0200
committerptitSeb <sebastien.chev@gmail.com>2022-10-19 22:59:19 +0200
commitd6b9df6ca260dbada8dac68ee6857d89005a810e (patch)
treed36ec4d582307cf46056a58e2ce0696226d176af /src/include/box64context.h
parent4fbeca0aa3f55f3569bb3212ca130d18d20c3dc3 (diff)
downloadbox64-d6b9df6ca260dbada8dac68ee6857d89005a810e.tar.gz
box64-d6b9df6ca260dbada8dac68ee6857d89005a810e.zip
Small refactor and simplification of library_t structure and box64context_t
Diffstat (limited to 'src/include/box64context.h')
-rwxr-xr-xsrc/include/box64context.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/include/box64context.h b/src/include/box64context.h
index 5dc2399d..036a2b6d 100755
--- a/src/include/box64context.h
+++ b/src/include/box64context.h
@@ -136,23 +136,14 @@ typedef struct box64context_s {
     pthread_mutex_t     mutex_bridge;
 
     library_t           *libclib;       // shortcut to libc library (if loaded, so probably yes)
-    library_t           *sdl1lib;       // shortcut to SDL1 library (if loaded)
-    void*               sdl1allocrw;
-    void*               sdl1freerw;
     library_t           *sdl1mixerlib;
-    library_t           *sdl2lib;       // shortcut to SDL2 library (if loaded)
-    void*               sdl2allocrw;
-    void*               sdl2freerw;
+    library_t           *sdl2lib;
     library_t           *sdl2mixerlib;
-    library_t           *x11lib;
-    library_t           *zlib;
-    library_t           *vorbisfile;
-    library_t           *vorbis;
-    library_t           *asound;
-    library_t           *pulse;
-    library_t           *d3dadapter9;
-    library_t           *libglu;
     linkmap_t           *linkmap;
+    void*               sdl1allocrw;    // SDL1 AllocRW/FreeRW function
+    void*               sdl1freerw;
+    void*               sdl2allocrw;    // SDL2 AllocRW/FreeRW function
+    void*               sdl2freerw;
 
     int                 deferedInit;
     elfheader_t         **deferedInitList;
@@ -166,9 +157,9 @@ typedef struct box64context_s {
 
     uintptr_t           *auxval_start;
 
-    cleanup_t   *cleanups;          // atexit functions
-    int         clean_sz;
-    int         clean_cap;
+    cleanup_t           *cleanups;          // atexit functions
+    int                 clean_sz;
+    int                 clean_cap;
 
     zydis_dec_t         *dec;           // trace