From ee2580a57fae19e1c47a1af03dcfb3edffe697b3 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 6 Feb 2024 18:20:11 +0100 Subject: Reworked, again, exit process --- src/include/x64emu.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/x64emu.h b/src/include/x64emu.h index 51a27a18..e0adf686 100644 --- a/src/include/x64emu.h +++ b/src/include/x64emu.h @@ -3,6 +3,7 @@ typedef struct x64emu_s x64emu_t; typedef struct box64context_s box64context_t; +typedef struct elfheader_s elfheader_t; x64emu_t *NewX64Emu(box64context_t *context, uintptr_t start, uintptr_t stack, int stacksize, int ownstack); x64emu_t *NewX64EmuFromStack(x64emu_t* emu, box64context_t *context, uintptr_t start, uintptr_t stack, int stacksize, int ownstack); @@ -45,9 +46,9 @@ const char* DumpCPURegs(x64emu_t* emu, uintptr_t ip, int is32bits); void StopEmu(x64emu_t* emu, const char* reason, int is32bits); void EmuCall(x64emu_t* emu, uintptr_t addr); -void AddCleanup(x64emu_t *emu, void *p, void* dso_handle); -void AddCleanup1Arg(x64emu_t *emu, void *p, void* a, void* dso_handle); -void CallCleanup(x64emu_t *emu, void* p); +void AddCleanup(x64emu_t *emu, void *p); +void AddCleanup1Arg(x64emu_t *emu, void *p, void* a, elfheader_t* h); +void CallCleanup(x64emu_t *emu, elfheader_t* h); void CallAllCleanup(x64emu_t *emu); void UnimpOpcode(x64emu_t* emu, int is32bits); -- cgit 1.4.1