libnx  v4.2.2
fsldr.h
Go to the documentation of this file.
1 /**
2  * @file fsldr.h
3  * @brief FilesystemProxy-ForLoader (fsp-ldr) service IPC wrapper.
4  * @author SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 #include "../services/fs.h"
11 #include "../crypto/sha256.h"
12 
13 typedef struct {
14  u8 signature[0x100];
15  u8 hash[SHA256_HASH_SIZE];
16  bool is_signed;
17  u8 reserved[3];
18 } FsCodeInfo;
19 
20 /// Initialize fsp-ldr.
22 
23 /// Exit fsp-ldr.
24 void fsldrExit(void);
25 
26 /// Gets the Service object for the actual fsp-ldr service session.
28 
29 Result fsldrOpenCodeFileSystem(FsCodeInfo* out_code_info, u64 tid, const char *path, FsFileSystem* out);
30 Result fsldrIsArchivedProgram(u64 pid, bool *out);
fsldrExit
void fsldrExit(void)
Exit fsp-ldr.
fsldrInitialize
Result fsldrInitialize(void)
Initialize fsp-ldr.
u8
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
fsldrGetServiceSession
Service * fsldrGetServiceSession(void)
Gets the Service object for the actual fsp-ldr service session.
FsCodeInfo
Definition: fsldr.h:13
u64
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
Result
u32 Result
Function error code result type.
Definition: types.h:44
FsFileSystem
Definition: fs.h:27
Service
Service object structure.
Definition: service.h:13