about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorkaixindeken <zra981217@tju.edu.cn>2024-07-15 14:23:14 +0800
committerGitHub <noreply@github.com>2024-07-15 08:23:14 +0200
commit94ccde160a74623dfffac6367fb8bddb7e97d6aa (patch)
treec3e75855da415d78fc810c119ea2e462bcbf71b4 /src
parentd8746c6c70007417ececbcfafa5a47fd6e47ba4f (diff)
downloadbox64-94ccde160a74623dfffac6367fb8bddb7e97d6aa.tar.gz
box64-94ccde160a74623dfffac6367fb8bddb7e97d6aa.zip
Wrapped libtiff5 and libltdl7 (#1677)
* Wrapped libtiff5

* no types generated

* libtiff5 added missing defs types undefs files

* wrapped libltdl7

* rerun actions

* add more wrapped function for tiff5 and ltdl7

* remove unused functions
Diffstat (limited to 'src')
-rw-r--r--src/library_list.h2
-rw-r--r--src/wrapped/generated/wrappedlibltdl7defs.h8
-rw-r--r--src/wrapped/generated/wrappedlibltdl7types.h17
-rw-r--r--src/wrapped/generated/wrappedlibltdl7undefs.h8
-rw-r--r--src/wrapped/generated/wrappedlibtiff5defs.h8
-rw-r--r--src/wrapped/generated/wrappedlibtiff5types.h17
-rw-r--r--src/wrapped/generated/wrappedlibtiff5undefs.h8
-rw-r--r--src/wrapped/wrappedlibltdl7.c21
-rw-r--r--src/wrapped/wrappedlibltdl7_private.h42
-rw-r--r--src/wrapped/wrappedlibtiff5.c21
-rw-r--r--src/wrapped/wrappedlibtiff5_private.h43
11 files changed, 195 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h
index bb9caaae..79753d24 100644
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -262,6 +262,8 @@ GO("libnettle.so.8", libnettle8)
 GO("libunistring.so.2", libunistring2)
 GO("libhogweed.so.6", libhogweed6)
 GO("libsqlite3.so.0", libsqlite3)
+GO("libtiff.so.5", libtiff5)
+GO("libltdl.so.7", libltdl7)
 
 #ifdef ANDROID
 GO("libc.so", libc)
diff --git a/src/wrapped/generated/wrappedlibltdl7defs.h b/src/wrapped/generated/wrappedlibltdl7defs.h
new file mode 100644
index 00000000..b031dcbe
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibltdl7defs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibltdl7DEFS_H_
+#define __wrappedlibltdl7DEFS_H_
+
+
+#endif // __wrappedlibltdl7DEFS_H_
diff --git a/src/wrapped/generated/wrappedlibltdl7types.h b/src/wrapped/generated/wrappedlibltdl7types.h
new file mode 100644
index 00000000..90c557d2
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibltdl7types.h
@@ -0,0 +1,17 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibltdl7TYPES_H_
+#define __wrappedlibltdl7TYPES_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 // __wrappedlibltdl7TYPES_H_
\ No newline at end of file
diff --git a/src/wrapped/generated/wrappedlibltdl7undefs.h b/src/wrapped/generated/wrappedlibltdl7undefs.h
new file mode 100644
index 00000000..89198892
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibltdl7undefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibltdl7UNDEFS_H_
+#define __wrappedlibltdl7UNDEFS_H_
+
+
+#endif // __wrappedlibltdl7UNDEFS_H_
diff --git a/src/wrapped/generated/wrappedlibtiff5defs.h b/src/wrapped/generated/wrappedlibtiff5defs.h
new file mode 100644
index 00000000..6e9af05d
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibtiff5defs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibtiff5DEFS_H_
+#define __wrappedlibtiff5DEFS_H_
+
+
+#endif // __wrappedlibtiff5DEFS_H_
diff --git a/src/wrapped/generated/wrappedlibtiff5types.h b/src/wrapped/generated/wrappedlibtiff5types.h
new file mode 100644
index 00000000..eb9f8ad7
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibtiff5types.h
@@ -0,0 +1,17 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibtiff5TYPES_H_
+#define __wrappedlibtiff5TYPES_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 // __wrappedlibtiff5TYPES_H_
diff --git a/src/wrapped/generated/wrappedlibtiff5undefs.h b/src/wrapped/generated/wrappedlibtiff5undefs.h
new file mode 100644
index 00000000..0c78fb1a
--- /dev/null
+++ b/src/wrapped/generated/wrappedlibtiff5undefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedlibtiff5UNDEFS_H_
+#define __wrappedlibtiff5UNDEFS_H_
+
+
+#endif // __wrappedlibtiff5UNDEFS_H_
\ No newline at end of file
diff --git a/src/wrapped/wrappedlibltdl7.c b/src/wrapped/wrappedlibltdl7.c
new file mode 100644
index 00000000..77220418
--- /dev/null
+++ b/src/wrapped/wrappedlibltdl7.c
@@ -0,0 +1,21 @@
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+
+const char* libltdl7Name = "libltdl.so.7";
+#define LIBNAME libltdl7
+
+//#include "generated/wrappedlibltdl7types.h"
+
+// Insert code here
+
+#include "wrappedlib_init.h"
\ No newline at end of file
diff --git a/src/wrapped/wrappedlibltdl7_private.h b/src/wrapped/wrappedlibltdl7_private.h
new file mode 100644
index 00000000..1da29f7a
--- /dev/null
+++ b/src/wrapped/wrappedlibltdl7_private.h
@@ -0,0 +1,42 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+error Meh...
+#endif
+
+GO(lt__slist_box, pFp)
+GO(lt__slist_cons, pFpp)
+GO(lt__slist_concat, pFpp)
+GO(lt_dlloader_add, iFpp)
+//GO(lt_dlloader_next
+GO(lt_dlloader_get, pFp)
+GO(lt_dlloader_remove, iFp)
+GO(lt_dlloader_find, pFp)
+GO(lt_dlinterface_register, iFpp)
+//GO(lt_dlinterface_free,
+GO(lt__slist_remove, pFpp)
+GO(lt__slist_unbox, pFp)
+GO(lt__slist_find, pFpp)
+GO(lt__slist_delete, vFp)
+GO(lt__slist_tail, pFp)
+GO(lt__slist_nth, pFp)
+//GO(lt__slist_length
+GO(lt__slist_reverse, pFp)
+//GO(lt__slist_foreach
+//GO(lt__slist_sort
+GO(lt_dladderror, vFp)
+GO(lt_dlseterror, vFp)
+GO(lt_dlinit, iFv)
+GO(lt_dlexit, iFv)
+GO(lt_dladvise_init, iFp)
+GO(lt_dladvise_destroy, iFp)
+GO(lt_dladvise_ext, iFp)
+GO(lt_dladvise_resident, iFp)
+GO(lt_dladvise_local, iFp)
+GO(lt_dladvise_global, iFp)
+GO(lt_dladvise_preload, iFp)
+//GO(lt_dlopenadvise
+GO(lt_dladdsearchdir, iFp)
+GO(lt_dlinsertsearchdir, iFpp)
+GO(lt_dlsetsearchpath, iFp)
+GO(lt_dlgetsearchpath, pFv)
+//GO(lt_dlopenext
+GO(lt__get_last_error, pFv)
\ No newline at end of file
diff --git a/src/wrapped/wrappedlibtiff5.c b/src/wrapped/wrappedlibtiff5.c
new file mode 100644
index 00000000..7c1185a3
--- /dev/null
+++ b/src/wrapped/wrappedlibtiff5.c
@@ -0,0 +1,21 @@
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+
+const char* libtiff5Name = "libtiff.so.5";
+#define LIBNAME libtiff5
+
+#include "generated/wrappedlibtiff5types.h"
+
+// Insert code here
+
+#include "wrappedlib_init.h"
\ No newline at end of file
diff --git a/src/wrapped/wrappedlibtiff5_private.h b/src/wrapped/wrappedlibtiff5_private.h
new file mode 100644
index 00000000..61b9cd95
--- /dev/null
+++ b/src/wrapped/wrappedlibtiff5_private.h
@@ -0,0 +1,43 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+#error Meh....
+#endif
+
+//GO(TIFFVGetFieldDefaulted,
+// GO(TIFFVGetField, iFpWA)
+GO(TIFFCleanup, vFp)
+GO(TIFFFreeDirectory, vFp)
+GO(TIFFFlush, iFp)
+GO(TIFFClose, vFp)
+GO(TIFFFindCODEC, pFW)
+GO(TIFFIsCODECConfigured, iFW)
+GO(TIFFInitDumpMode, iFpi)
+GO(TIFFInitLZW, iFpi)
+//GO(TIFFInitPackBits
+GO(TIFFInitThunderScan, iFpi)
+GO(TIFFInitNeXT, iFpi)
+GO(TIFFInitJPEG, iFpi)
+//GO(TIFFInitOJPEG
+GO(TIFFInitCCITTRLE, iFpi)
+GO(TIFFInitCCITTRLEW, iFpi)
+GO(TIFFInitCCITTFax3, iFpi)
+//GO(TIFFInitCCITTFax4
+GO(TIFFInitJBIG, iFpi)
+GO(TIFFInitZIP, iFpi)
+//GO(TIFFInitPixarLog
+//GO(TIFFInitSGILog
+GO(TIFFInitLZMA, iFpi)
+GO(TIFFInitZSTD, iFpi)
+GO(TIFFInitWebP, iFpi)
+// GO(TIFFCIELabToXYZ, vFpuiippp)
+GO(TIFFXYZToRGB, iFpppp)
+GO(TIFFCIELabToRGBInit, iFpp)
+//GO(TIFFYCbCrtoRGB
+//GO(TIFFYCbCrToRGBInit
+GO(TIFFSetCompressionScheme, iFpi)
+//GO(TIFFRegisterCODEC
+//GO(TIFFUnRegisterCODEC
+GO(TIFFGetConfiguredCODECs, pFv)
+//GO(TIFFFindField
+GO(TIFFSwabLong, vFp)
+GO(TIFFSwabLong8, vFp)
+GO(TIFFSwabShort, vFp)
\ No newline at end of file