libnx v4.9.0
Loading...
Searching...
No Matches
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#include "../services/ncm_types.h"
13
14typedef struct {
15 u8 signature[0x100];
16 u8 hash[SHA256_HASH_SIZE];
17 bool is_signed;
18 u8 reserved[3];
20
21/// Initialize fsp-ldr.
23
24/// Exit fsp-ldr.
25void fsldrExit(void);
26
27/// Gets the Service object for the actual fsp-ldr service session.
29
30Result fsldrOpenCodeFileSystem(FsCodeInfo* out_code_info, u64 tid, NcmStorageId storage_id, const char *path, FsContentAttributes attr, FsFileSystem* out);
31Result fsldrIsArchivedProgram(u64 pid, bool *out);
FsContentAttributes
FsContentAttributes.
Definition fs.h:370
void fsldrExit(void)
Exit fsp-ldr.
Service * fsldrGetServiceSession(void)
Gets the Service object for the actual fsp-ldr service session.
Result fsldrInitialize(void)
Initialize fsp-ldr.
NcmStorageId
StorageId.
Definition ncm_types.h:12
Definition fsldr.h:14
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