wut  v1.7.0
Wii U Toolchain
Data Structures | Typedefs | Enumerations | Functions
dynload.h File Reference
#include <wut.h>
#include "thread.h"
#include "time.h"
Include dependency graph for dynload.h:

Go to the source code of this file.

Data Structures

struct  OSDynLoad_NotifyData
 
struct  OSDynLoad_LoaderHeapStatistics
 
struct  OSDynLoad_LoaderUserFileInfo
 
struct  OSDynLoad_LoaderSectionInfo
 
struct  OSDynLoad_InternalData
 
union  OSDynLoad_LoaderSectionInfo.__unnamed5__
 

Typedefs

typedef struct OSDynLoad_NotifyData OSDynLoad_NotifyData
 
typedef struct OSDynLoad_LoaderHeapStatistics OSDynLoad_LoaderHeapStatistics
 
typedef void * OSDynLoad_Module
 
typedef struct OSDynLoad_LoaderUserFileInfo OSDynLoad_LoaderUserFileInfo
 
typedef struct OSDynLoad_LoaderSectionInfo OSDynLoad_LoaderSectionInfo
 
typedef struct OSDynLoad_InternalData OSDynLoad_InternalData
 
typedef enum OSDynLoad_Error OSDynLoad_Error
 
typedef OSDynLoad_Error(* OSDynLoadAllocFn) (int32_t size, int32_t align, void **outAddr)
 
typedef void(* OSDynLoadFreeFn) (void *addr)
 
typedef enum OSDynLoad_ExportType OSDynLoad_ExportType
 
typedef enum OSDynLoad_EntryReason OSDynLoad_EntryReason
 
typedef enum OSDynLoad_NotifyReason OSDynLoad_NotifyReason
 
typedef void(* OSDynLoadNotifyFunc) (OSDynLoad_Module module, void *userContext, OSDynLoad_NotifyReason notifyReason, OSDynLoad_NotifyData *infos)
 

Enumerations

enum  OSDynLoad_Error {
  OS_DYNLOAD_OK = 0 ,
  OS_DYNLOAD_OUT_OF_MEMORY = 0xBAD10002 ,
  OS_DYNLOAD_INVALID_NOTIFY_PTR = 0xBAD1000E ,
  OS_DYNLOAD_INVALID_MODULE_NAME_PTR = 0xBAD1000F ,
  OS_DYNLOAD_INVALID_MODULE_NAME = 0xBAD10010 ,
  OS_DYNLOAD_INVALID_ACQUIRE_PTR = 0xBAD10011 ,
  OS_DYNLOAD_EMPTY_MODULE_NAME = 0xBAD10012 ,
  OS_DYNLOAD_INVALID_ALLOCATOR_PTR = 0xBAD10017 ,
  OS_DYNLOAD_OUT_OF_SYSTEM_MEMORY = 0xBAD1002F ,
  OS_DYNLOAD_TLS_ALLOCATOR_LOCKED = 0xBAD10031 ,
  OS_DYNLOAD_MODULE_NOT_FOUND = 0xFFFFFFFA
}
 
enum  OSDynLoad_ExportType {
  OS_DYNLOAD_EXPORT_FUNC = 0 ,
  OS_DYNLOAD_EXPORT_DATA = 1
}
 
enum  OSDynLoad_EntryReason {
  OS_DYNLOAD_LOADED = 1 ,
  OS_DYNLOAD_UNLOADED = 2
}
 
enum  OSDynLoad_NotifyReason {
  OS_DYNLOAD_NOTIFY_UNLOADED = 0 ,
  OS_DYNLOAD_NOTIFY_LOADED = 1
}
 

Functions

OSDynLoad_Error OSDynLoad_Acquire (char const *name, OSDynLoad_Module *outModule)
 Load a module. More...
 
OSDynLoad_Error OSDynLoad_FindExport (OSDynLoad_Module module, OSDynLoad_ExportType exportType, char const *name, void **outAddr)
 Retrieve the address of a function or data export from a module. More...
 
void OSDynLoad_Release (OSDynLoad_Module module)
 Free a module handle returned from OSDynLoad_Acquire. More...
 
OSDynLoad_Error OSDynLoad_SetAllocator (OSDynLoadAllocFn allocFn, OSDynLoadFreeFn freeFn)
 Set the allocator functions to use for dynamic loading. More...
 
OSDynLoad_Error OSDynLoad_GetAllocator (OSDynLoadAllocFn *outAllocFn, OSDynLoadFreeFn *outFreeFn)
 Get the allocator functions used for dynamic loading. More...
 
OSDynLoad_Error OSDynLoad_SetTLSAllocator (OSDynLoadAllocFn allocFn, OSDynLoadFreeFn freeFn)
 Set the allocator functions to use for thread local storage. More...
 
OSDynLoad_Error OSDynLoad_GetTLSAllocator (OSDynLoadAllocFn *outAllocFn, OSDynLoadFreeFn *outFreeFn)
 Get the allocator functions used for thread local storage. More...
 
OSDynLoad_Error OSDynLoad_GetLoaderHeapStatistics (OSDynLoad_LoaderHeapStatistics *outLoaderHeapStatistics)
 Get loader heap statistics. More...
 
OSDynLoad_Error OSDynLoad_GetModuleName (OSDynLoad_Module module, char *nameBuf, int32_t *nameBufSize)
 Gets the name for a given module handle. More...
 
int32_t OSDynLoad_GetNumberOfRPLs ()
 Gets the number of currently loaded RPLs. More...
 
BOOL OSDynLoad_GetRPLInfo (uint32_t first, uint32_t count, OSDynLoad_NotifyData *outInfos)
 Get information about the currently loaded RPLs. More...
 
OSDynLoad_Error OSDynLoad_IsModuleLoaded (char const *name, OSDynLoad_Module *outModule)
 Checks if a module is already loaded. More...
 
OSDynLoad_Error OSDynLoad_AddNotifyCallback (OSDynLoadNotifyFunc notifyFn, void *userContext)
 Registers a callback that's called whenever a new .rpl is loaded or unloaded. More...
 
OSDynLoad_Error OSDynLoad_DelNotifyCallback (OSDynLoadNotifyFunc notifyFn, void *userContext)
 Removes a previously added a callback. More...
 
int rpl_entry (OSDynLoad_Module module, OSDynLoad_EntryReason reason)
 The prototype for an RPL entry point. More...