about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorZoHan <114734429+LiZhuoheng-coder@users.noreply.github.com>2024-05-23 13:49:52 +0800
committerGitHub <noreply@github.com>2024-05-23 07:49:52 +0200
commit7ebd92be7dab9f3959c8c25f73d3637ddcd72149 (patch)
tree42cad91a1e34d79039aec3d2d4dd9773aea62d87 /src
parent22b2f63917e0125567dd4a152c98a87ba27bd896 (diff)
downloadbox64-7ebd92be7dab9f3959c8c25f73d3637ddcd72149.tar.gz
box64-7ebd92be7dab9f3959c8c25f73d3637ddcd72149.zip
Wrapped libpsl5 (#1523)
* Wrapped libpsl5

* Recover files
Diffstat (limited to 'src')
-rw-r--r--src/library_list.h1
-rw-r--r--src/wrapped/generated/functions_list.txt1
-rw-r--r--src/wrapped/generated/wrappedpsl5defs.h8
-rw-r--r--src/wrapped/generated/wrappedpsl5types.h17
-rw-r--r--src/wrapped/generated/wrappedpsl5undefs.h8
-rw-r--r--src/wrapped/wrappedpsl5.c17
-rw-r--r--src/wrapped/wrappedpsl5_private.h7
7 files changed, 59 insertions, 0 deletions
diff --git a/src/library_list.h b/src/library_list.h
index 8cbce75b..b1b33472 100644
--- a/src/library_list.h
+++ b/src/library_list.h
@@ -255,6 +255,7 @@ GO("libicui18n.so.74", icui18n74)
 GO("libidn2.so.0", idn2)
 GO("libpam.so.0", pam)
 GO("libanl.so.1", anl)
+GO("libpsl.so.5", psl5)
 
 #ifdef ANDROID
 GO("libc.so", libc)
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 7fa6270b..efd28192 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -5018,6 +5018,7 @@ wrappedpng16:
 - pFppppppp:
   - png_create_read_struct_2
   - png_create_write_struct_2
+wrappedpsl5:
 wrappedpulse:
 - vFp:
   - pa_mainloop_free
diff --git a/src/wrapped/generated/wrappedpsl5defs.h b/src/wrapped/generated/wrappedpsl5defs.h
new file mode 100644
index 00000000..274c347d
--- /dev/null
+++ b/src/wrapped/generated/wrappedpsl5defs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedpsl5DEFS_H_
+#define __wrappedpsl5DEFS_H_
+
+
+#endif // __wrappedpsl5DEFS_H_
diff --git a/src/wrapped/generated/wrappedpsl5types.h b/src/wrapped/generated/wrappedpsl5types.h
new file mode 100644
index 00000000..44310fa3
--- /dev/null
+++ b/src/wrapped/generated/wrappedpsl5types.h
@@ -0,0 +1,17 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedpsl5TYPES_H_
+#define __wrappedpsl5TYPES_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 // __wrappedpsl5TYPES_H_
diff --git a/src/wrapped/generated/wrappedpsl5undefs.h b/src/wrapped/generated/wrappedpsl5undefs.h
new file mode 100644
index 00000000..0db6f2e0
--- /dev/null
+++ b/src/wrapped/generated/wrappedpsl5undefs.h
@@ -0,0 +1,8 @@
+/*******************************************************************
+ * File automatically generated by rebuild_wrappers.py (v2.4.0.21) *
+ *******************************************************************/
+#ifndef __wrappedpsl5UNDEFS_H_
+#define __wrappedpsl5UNDEFS_H_
+
+
+#endif // __wrappedpsl5UNDEFS_H_
diff --git a/src/wrapped/wrappedpsl5.c b/src/wrapped/wrappedpsl5.c
new file mode 100644
index 00000000..21350723
--- /dev/null
+++ b/src/wrapped/wrappedpsl5.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#define _GNU_SOURCE         /* See feature_test_macros(7) */
+#include <dlfcn.h>
+
+#include "wrappedlibs.h"
+
+#include "wrapper.h"
+#include "bridge.h"
+#include "librarian/library_private.h"
+#include "x64emu.h"
+
+const char* psl5Name = "libpsl.so.5";
+#define LIBNAME psl5
+
+#include "wrappedlib_init.h"
diff --git a/src/wrapped/wrappedpsl5_private.h b/src/wrapped/wrappedpsl5_private.h
new file mode 100644
index 00000000..9b6c691d
--- /dev/null
+++ b/src/wrapped/wrappedpsl5_private.h
@@ -0,0 +1,7 @@
+#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
+error Meh...
+#endif
+
+GO(psl_str_to_utf8lower, pFp)
+GO(psl_is_cookie_domain_acceptable, iFppp)
+GO(psl_latest, pFp)