LibraryLoader-c-api.h 583 B

12345678910111213141516171819202122
  1. #pragma once
  2. #if defined(__cplusplus)
  3. #include "os/LibraryLoader.h"
  4. typedef Il2CppMethodPointer UnityPalMethodPointer;
  5. #else
  6. typedef void (*UnityPalMethodPointer)();
  7. #endif
  8. #if defined(__cplusplus)
  9. extern "C"
  10. {
  11. #endif
  12. void* UnityPalLibraryLoaderLoadDynamicLibrary(const char* nativeDynamicLibrary, int flags);
  13. void UnityPalLibraryLoaderCleanupLoadedLibraries();
  14. UnityPalMethodPointer UnityPalLibraryLoaderGetFunctionPointer(void* dynamicLibrary, const char* functionName);
  15. int32_t UnityPalLibraryLoaderCloseLoadedLibrary(void** dynamicLibrary);
  16. #if defined(__cplusplus)
  17. }
  18. #endif