about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-02-09 15:47:08 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-02-09 15:47:08 +0100
commit0715dd145f96c47078b6d0880dcf249657e79ae4 (patch)
tree90b0f1b0dcff4e54941e6705c45112e57fc8e2e7 /src
parent5a203222516ad0306211df599dcabdb397509bf9 (diff)
downloadbox64-0715dd145f96c47078b6d0880dcf249657e79ae4.tar.gz
box64-0715dd145f96c47078b6d0880dcf249657e79ae4.zip
Added some wrapped function to libxml2
Diffstat (limited to 'src')
-rw-r--r--src/wrapped/generated/functions_list.txt2
-rw-r--r--src/wrapped/generated/wrappedxml2types.h4
-rw-r--r--src/wrapped/wrappedxml2.c5
-rw-r--r--src/wrapped/wrappedxml2_private.h6
4 files changed, 13 insertions, 4 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt
index 31a88332..d73f395a 100644
--- a/src/wrapped/generated/functions_list.txt
+++ b/src/wrapped/generated/functions_list.txt
@@ -5695,6 +5695,8 @@ wrappedxml2:
 - pFpppppi:
   - xmlCreateIOParserCtxt
   - xmlReaderForIO
+- pFppppppi:
+  - xmlCtxtReadIO
 wrappedxshmfence:
 wrappedxslt:
 - vFp:
diff --git a/src/wrapped/generated/wrappedxml2types.h b/src/wrapped/generated/wrappedxml2types.h
index d3524901..bed5ff59 100644
--- a/src/wrapped/generated/wrappedxml2types.h
+++ b/src/wrapped/generated/wrappedxml2types.h
@@ -30,6 +30,7 @@ typedef void* (*pFppppi_t)(void*, void*, void*, void*, int32_t);
 typedef void (*vFpppppp_t)(void*, void*, void*, void*, void*, void*);
 typedef int32_t (*iFpppppp_t)(void*, void*, void*, void*, void*, void*);
 typedef void* (*pFpppppi_t)(void*, void*, void*, void*, void*, int32_t);
+typedef void* (*pFppppppi_t)(void*, void*, void*, void*, void*, void*, int32_t);
 
 #define SUPER() ADDED_FUNCTIONS() \
 	GO(xmlSetExternalEntityLoader, vFp_t) \
@@ -66,6 +67,7 @@ typedef void* (*pFpppppi_t)(void*, void*, void*, void*, void*, int32_t);
 	GO(xmlHashScanFull3, vFpppppp_t) \
 	GO(xmlHashUpdateEntry3, iFpppppp_t) \
 	GO(xmlCreateIOParserCtxt, pFpppppi_t) \
-	GO(xmlReaderForIO, pFpppppi_t)
+	GO(xmlReaderForIO, pFpppppi_t) \
+	GO(xmlCtxtReadIO, pFppppppi_t)
 
 #endif // __wrappedxml2TYPES_H_
diff --git a/src/wrapped/wrappedxml2.c b/src/wrapped/wrappedxml2.c
index 7261165c..4b08797c 100644
--- a/src/wrapped/wrappedxml2.c
+++ b/src/wrapped/wrappedxml2.c
@@ -1490,6 +1490,11 @@ EXPORT void my_xmlTextReaderSetErrorHandler(x64emu_t* emu, void* reader, void* f
     my->xmlTextReaderSetErrorHandler(reader, find_xmlTextReaderErrorFunc_Fct(f), arg);
 }
 
+EXPORT void* my_xmlCtxtReadIO(x64emu_t* emu, void* ctxt, void* ioread, void* ioclose, void* ioctx, void* url, void* encoding, int options)
+{
+    return my->xmlCtxtReadIO(ctxt, find_xmlInputReadCallback_Fct(ioread), find_xmlInputCloseCallback_Fct(ioclose), ioctx, url, encoding, options);
+}
+
 #define CUSTOM_INIT \
     getMy(lib);
 
diff --git a/src/wrapped/wrappedxml2_private.h b/src/wrapped/wrappedxml2_private.h
index 4a43dac1..2f6a4b36 100644
--- a/src/wrapped/wrappedxml2_private.h
+++ b/src/wrapped/wrappedxml2_private.h
@@ -197,7 +197,7 @@ GO(xmlCharEncFirstLine, iFppp)
 GO(xmlCharEncInFunc, iFppp)
 GO(xmlCharEncOutFunc, iFppp)
 //GO(xmlCharInRange, 
-//GO(xmlCharStrdup, 
+GO(xmlCharStrdup, pFp)
 GO(xmlCharStrndup, pFpi)
 GO(xmlCheckFilename, iFp)
 GO(xmlCheckHTTPInput, pFpp)
@@ -250,7 +250,7 @@ GO(xmlCtxtGetLastError, pFp)
 GO(xmlCtxtReadDoc, pFppppi)
 GO(xmlCtxtReadFd, pFpippi)
 GO(xmlCtxtReadFile, pFpppi)
-//GOM(xmlCtxtReadIO, pFEpBBpppi)
+GOM(xmlCtxtReadIO, pFEppppppi)
 GO(xmlCtxtReadMemory, pFppippi)
 GO(xmlCtxtReset, vFp)
 //GO(xmlCtxtResetLastError, 
@@ -853,7 +853,7 @@ GO(xmlSaveFileTo, iFppp)
 GO(xmlSaveFlush, iFp)
 GO(xmlSaveFormatFile, iFppi)
 GO(xmlSaveFormatFileEnc, iFpppi)
-//GO(xmlSaveFormatFileTo, 
+GO(xmlSaveFormatFileTo, iFpppi)
 //GO(__xmlSaveNoEmptyTags, 
 //GOM(xmlSaveSetAttrEscape, iFEpB)
 //GOM(xmlSaveSetEscape, iFEpB)