[WRAPPER] Added last 2 wrapped function for libexpat

This commit is contained in:
ptitSeb 2024-11-17 11:45:30 +01:00
parent 5f0cbcf26d
commit 48354185dd
4 changed files with 16 additions and 2 deletions

View File

@ -3565,6 +3565,8 @@ wrappedexpat:
- XML_SetUnparsedEntityDeclHandler
- XML_SetXmlDeclHandler
- vFppp:
- XML_SetCdataSectionHandler
- XML_SetDoctypeDeclHandler
- XML_SetElementHandler
- XML_SetNamespaceDeclHandler
- XML_SetUnknownEncodingHandler

View File

@ -37,6 +37,8 @@ typedef void (*vFppp_t)(void*, void*, void*);
GO(XML_SetStartNamespaceDeclHandler, vFpp_t) \
GO(XML_SetUnparsedEntityDeclHandler, vFpp_t) \
GO(XML_SetXmlDeclHandler, vFpp_t) \
GO(XML_SetCdataSectionHandler, vFppp_t) \
GO(XML_SetDoctypeDeclHandler, vFppp_t) \
GO(XML_SetElementHandler, vFppp_t) \
GO(XML_SetNamespaceDeclHandler, vFppp_t) \
GO(XML_SetUnknownEncodingHandler, vFppp_t)

View File

@ -688,4 +688,14 @@ EXPORT void my_XML_SetSkippedEntityHandler(x64emu_t* emu, void* p, void* f)
my->XML_SetSkippedEntityHandler(p, find_SkippedEntity_Fct(f));
}
EXPORT void my_XML_SetCdataSectionHandler(x64emu_t* emu, void* p, void* s, void* e)
{
my->XML_SetCdataSectionHandler(p, find_StartCdataSection_Fct(s), find_EndCdataSection_Fct(e));
}
EXPORT void my_XML_SetDoctypeDeclHandler(x64emu_t* emu, void* p, void* s, void* e)
{
my->XML_SetDoctypeDeclHandler(p, find_StartDoctypeDecl_Fct(s), find_EndDoctypeDecl_Fct(e));
}
#include "wrappedlib_init.h"

View File

@ -34,12 +34,12 @@ GO(XML_ParserReset, CFpp)
GO(XML_ResumeParser, uFp)
GOM(XML_SetAttlistDeclHandler, vFEpp)
GO(XML_SetBase, uFpp)
//GOM(XML_SetCdataSectionHandler, vFEppp)
GOM(XML_SetCdataSectionHandler, vFEppp)
GOM(XML_SetCharacterDataHandler, vFEpp)
GOM(XML_SetCommentHandler, vFEpp)
GOM(XML_SetDefaultHandler, vFEpp)
GOM(XML_SetDefaultHandlerExpand, vFEpp)
//GOM(XML_SetDoctypeDeclHandler, vFEppp)
GOM(XML_SetDoctypeDeclHandler, vFEppp)
GOM(XML_SetElementDeclHandler, vFEpp)
GOM(XML_SetElementHandler, vFEppp)
GO(XML_SetEncoding, uFpp)