mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-13 22:11:50 +01:00
2e776838ff
So we don't have to extern C and pragma pack in every header file.
35 lines
787 B
C
35 lines
787 B
C
#pragma once
|
|
#include <wut.h>
|
|
#include "thread.h"
|
|
#include "time.h"
|
|
|
|
WUT_LIB_HEADER_START
|
|
|
|
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);
|
|
|
|
WUT_LIB_HEADER_END
|