2016-01-07 13:07:13 +01:00
|
|
|
#pragma once
|
|
|
|
#include <wut.h>
|
|
|
|
#include "thread.h"
|
|
|
|
#include "time.h"
|
|
|
|
|
2016-01-07 14:02:17 +01:00
|
|
|
WUT_LIB_HEADER_START
|
2016-01-07 13:07:13 +01:00
|
|
|
|
|
|
|
typedef void *OSDynLoadModule;
|
|
|
|
|
|
|
|
typedef int (*OSDynLoadAllocFn)(int size, int align, void **outAddr);
|
|
|
|
typedef void (*OSDynLoadFreeFn)(void *addr);
|
|
|
|
|
|
|
|
int32_t
|
|
|
|
OSDynLoad_SetAllocator(OSDynLoadAllocFn allocFn,
|
|
|
|
OSDynLoadFreeFn freeFn);
|
|
|
|
|
|
|
|
int32_t
|
|
|
|
OSDynLoad_GetAllocator(OSDynLoadAllocFn *outAllocFn,
|
|
|
|
OSDynLoadFreeFn *outFreeFn);
|
|
|
|
|
|
|
|
int32_t
|
|
|
|
OSDynLoad_Acquire(char const *name,
|
|
|
|
OSDynLoadModule *outModule);
|
|
|
|
|
|
|
|
int32_t
|
|
|
|
OSDynLoad_FindExport(OSDynLoadModule module,
|
|
|
|
int32_t isData,
|
|
|
|
char const *name,
|
|
|
|
void **outAddr);
|
|
|
|
|
|
|
|
void
|
|
|
|
OSDynLoad_Release(OSDynLoadModule module);
|
|
|
|
|
2016-01-07 14:02:17 +01:00
|
|
|
WUT_LIB_HEADER_END
|