libnx  v4.6.0
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, FsContentAttributes attr, FsFileSystem* out);
30 Result fsldrIsArchivedProgram(u64 pid, bool *out);
FsContentAttributes
FsContentAttributes.
Definition: fs.h:338
Service * fsldrGetServiceSession(void)
Gets the Service object for the actual fsp-ldr service session.
void fsldrExit(void)
Exit fsp-ldr.
Result fsldrInitialize(void)
Initialize fsp-ldr.
Definition: fsldr.h:13
Definition: fs.h:27
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44