libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
ro.h File Reference

Loader Services. More...

#include <libtransistor/types.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
Include dependency graph for ro.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

result_t ro_init ()
 Initialize Loader Services.
 
void ro_finalize ()
 Finalize Loader Services.
 
result_t ro_load_nro (void **nro_base, void *nro_heap, uint64_t nro_size, void *nro_bss, uint64_t bss_size)
 Description here... More...
 
result_t ro_unload_nro (void *nro_base, void *nro_heap)
 Description here... More...
 
result_t ro_load_nrr (void *nrr_heap, uint64_t nrr_size)
 Description here... More...
 
result_t ro_unload_nrr (void *nrr_heap)
 Description here... More...
 
session_h ro_get_service_handle ()
 

Detailed Description

Loader Services.

Function Documentation

result_t ro_load_nro ( void **  nro_base,
void *  nro_heap,
uint64_t  nro_size,
void *  nro_bss,
uint64_t  bss_size 
)

Description here...

Parameters
nro_basePointer to newly-loaded NRO base
nro_heapPointer to NRO image
nro_sizeSize of NRO image
nro_bssPointer to backing memory for bss
bss_sizeSize of backing memory for bss
result_t ro_load_nrr ( void *  nrr_heap,
uint64_t  nrr_size 
)

Description here...

Parameters
nrr_heapPointer to NRR
nrr_sizeSize of NRR
result_t ro_unload_nro ( void *  nro_base,
void *  nro_heap 
)

Description here...

Parameters
nro_basePointer to loaded NRO
nro_heapPointer to original NRO image
result_t ro_unload_nrr ( void *  nrr_heap)

Description here...

Parameters
nrr_heapPointer to NRR