Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little fleshing out of the dynamic library header #289

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion include/coreinit/dynload.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,17 @@ typedef enum OSDynLoad_Error
OS_DYNLOAD_INVALID_ALLOCATOR_PTR = 0xBAD10017,
OS_DYNLOAD_OUT_OF_SYSTEM_MEMORY = 0xBAD1002F,
OS_DYNLOAD_TLS_ALLOCATOR_LOCKED = 0xBAD10031,
OS_DYNLOAD_MODULE_NOT_FOUND = -6,
} OSDynLoad_Error;

typedef OSDynLoad_Error (*OSDynLoadAllocFn)(int32_t size, int32_t align, void **outAddr);
typedef void (*OSDynLoadFreeFn)(void *addr);

typedef enum OSDynLoad_ExportType {
OS_DYNLOAD_EXPORT_FUNC = 0,
OS_DYNLOAD_EXPORT_DATA = 1,
} OSDynLoad_ExportType;

typedef enum OSDynLoad_EntryReason
{
OS_DYNLOAD_LOADED = 0,
Expand Down Expand Up @@ -114,7 +120,7 @@ OSDynLoad_Acquire(char const *name,
*/
OSDynLoad_Error
OSDynLoad_FindExport(OSDynLoad_Module module,
BOOL isData,
OSDynLoad_ExportType exportType,
char const *name,
void **outAddr);

Expand Down