WUT  0.1
Wii U Toolchain
dynload.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "thread.h"
4 #include "time.h"
5 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 typedef void *OSDynLoadModule;
17 
18 typedef int (*OSDynLoadAllocFn)(int size, int align, void **outAddr);
19 typedef void (*OSDynLoadFreeFn)(void *addr);
20 
21 
25 int32_t
27  OSDynLoadFreeFn freeFn);
28 
29 
33 int32_t
35  OSDynLoadFreeFn *outFreeFn);
36 
37 
44 int32_t
45 OSDynLoad_Acquire(char const *name,
46  OSDynLoadModule *outModule);
47 
48 
54 int32_t
55 OSDynLoad_FindExport(OSDynLoadModule module,
56  int32_t isData,
57  char const *name,
58  void **outAddr);
59 
60 
67 void
68 OSDynLoad_Release(OSDynLoadModule module);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
void OSDynLoad_Release(OSDynLoadModule module)
int32_t OSDynLoad_Acquire(char const *name, OSDynLoadModule *outModule)
void * OSDynLoadModule
Definition: dynload.h:16
int32_t OSDynLoad_FindExport(OSDynLoadModule module, int32_t isData, char const *name, void **outAddr)
void(* OSDynLoadFreeFn)(void *addr)
Definition: dynload.h:19
int32_t OSDynLoad_GetAllocator(OSDynLoadAllocFn *outAllocFn, OSDynLoadFreeFn *outFreeFn)
int32_t OSDynLoad_SetAllocator(OSDynLoadAllocFn allocFn, OSDynLoadFreeFn freeFn)
int(* OSDynLoadAllocFn)(int size, int align, void **outAddr)
Definition: dynload.h:18