From 549c42ac1913c06547abcc99c8ebb6dc745fe4e4 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Tue, 25 Apr 2023 14:03:28 +0200 Subject: Improved/fixed (agaaaaain) Load/Unload of library (might help #740 &nd #742) --- src/include/box64context.h | 1 + src/include/librarian.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/include') diff --git a/src/include/box64context.h b/src/include/box64context.h index 2c0063e2..3fe285dc 100755 --- a/src/include/box64context.h +++ b/src/include/box64context.h @@ -59,6 +59,7 @@ void free_neededlib(needed_libs_t* needed); needed_libs_t* new_neededlib(int n); needed_libs_t* copy_neededlib(needed_libs_t* needed); void add1_neededlib(needed_libs_t* needed); +void add1lib_neededlib(needed_libs_t* needed, library_t* lib, const char* name); typedef struct base_segment_s { uintptr_t base; diff --git a/src/include/librarian.h b/src/include/librarian.h index b7a46880..2ff059df 100755 --- a/src/include/librarian.h +++ b/src/include/librarian.h @@ -22,6 +22,7 @@ void FreeDLPrivate(dlprivate_t **lib); box64context_t* GetLibrarianContext(lib_t* maplib); kh_mapsymbols_t* GetGlobalData(lib_t* maplib); int AddNeededLib(lib_t* maplib, int local, int bindnow, needed_libs_t* needed, box64context_t* box64, x64emu_t* emu); // 0=success, 1=error +void RemoveNeededLib(lib_t* maplib, int local, needed_libs_t* needed, box64context_t* box64, x64emu_t* emu); library_t* GetLibMapLib(lib_t* maplib, const char* name); library_t* GetLibInternal(const char* name); uintptr_t FindGlobalSymbol(lib_t *maplib, const char* name, int version, const char* vername); -- cgit 1.4.1