mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-22 14:21:11 +01:00
47 lines
967 B
C
47 lines
967 B
C
|
#pragma once
|
||
|
#include <wut.h>
|
||
|
#include "thread.h"
|
||
|
#include "time.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
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_MemAlloc(int32_t size,
|
||
|
int32_t alignment,
|
||
|
void **outAddr);
|
||
|
|
||
|
void
|
||
|
OSDynLoad_MemFree(void *addr);
|
||
|
|
||
|
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);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|