u64 envGetHeapOverrideSize(void)
Returns the size of the overriden heap.
bool envIsNso(void)
Returns true if the application is running as NSO, otherwise NRO.
Provides the handle to the main thread.
Definition: env.h:25
Provides a buffer containing information about the next homebrew application to load.
Definition: env.h:26
u32 Key
Type of entry.
Definition: env.h:12
Provides syscall availability hints.
Definition: env.h:30
Specifies that the entry must be processed by the homebrew application.
Definition: env.h:19
u32 Handle
Kernel object handle.
Definition: types.h:45
Structure representing an entry in the homebrew environment configuration.
Definition: env.h:11
u32 Result
Function error code result type.
Definition: types.h:46
Provides the process handle.
Definition: env.h:34
Handle envGetOwnProcessHandle(void)
Returns the handle to the running homebrew process.
uint8_t u8
8-bit unsigned integer.
Definition: types.h:21
Provides APT applet type.
Definition: env.h:31
uint64_t u64
64-bit unsigned integer.
Definition: types.h:24
Provides argv.
Definition: env.h:29
uint32_t u32
32-bit unsigned integer.
Definition: types.h:23
Handle envGetMainThreadHandle(void)
Retrieves the handle to the main thread.
u32 Flags
Entry flags.
Definition: env.h:13
Entry list terminator.
Definition: env.h:24
bool envHasNextLoad(void)
Returns true if the environment supports envSetNextLoad.
bool envIsSyscallHinted(u8 svc)
Returns whether a syscall is hinted to be available.
Result envGetLastLoadResult(void)
Returns the Result from the last NRO.
Provides the last load result.
Definition: env.h:35
void * envGetArgv(void)
Returns the pointer to the argv array.
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:51
void(* LoaderReturnFn)(int result_code)
Loader return function.
Definition: env.h:39
void envSetup(void *ctx, Handle main_thread, LoaderReturnFn saved_lr)
Parses the homebrew loader environment block (internally called).
Result envSetNextLoad(const char *path, const char *argv)
Configures the next homebrew application to load.
bool envHasHeapOverride(void)
Returns true if the environment has a heap override.
Provides service override information.
Definition: env.h:28
bool envHasArgv(void)
Returns true if the environment has an argv array.
void * envGetHeapOverrideAddr(void)
Returns the address of the overriden heap.
Provides heap override information.
Definition: env.h:27
Indicates that APT is broken and should not be used.
Definition: env.h:32
Provides socket-based standard stream redirection information.
Definition: env.h:33
LoaderReturnFn envGetExitFuncPtr(void)
Returns the loader's return function, to be called on program exit.