libtransistor
A userland library for the Nintendo Switch
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
include
libtransistor
ld
loaders.h
1
6
#pragma once
7
8
#include<
libtransistor/ld/ld.h
>
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
typedef
struct
ld_loader_t
{
15
result_t
(*can_load)(
void
*
file
,
size_t
file_size);
16
// takes ownership of file upon success, which is assumed to be a buffer freeable via \ref alloc_pages
17
result_t
(*load)(
module_input_t
*spec_out,
void
*
file
,
size_t
file_size);
18
result_t
(*unload)(
module_input_t
*spec);
19
}
ld_loader_t
;
20
21
extern
ld_loader_t
ld_loader_nro_via_svc;
22
extern
ld_loader_t
ld_loader_nro_via_ldr_ro;
23
extern
ld_loader_t
ld_loader_elf;
24
25
#ifdef __cplusplus
26
}
27
#endif
ld.h
Dynamic linking functions.
result_t
uint32_t result_t
Function result.
Definition:
types.h:51
module_input_t
Definition:
ld.h:22
ld_loader_t
Definition:
loaders.h:14
file
Generated on Thu Oct 3 2019 01:41:37 for libtransistor by
1.8.6