9 #include "../crypto/sha256.h"
105 u8 hash[SHA256_HASH_SIZE];
static void ncmContentInfoSizeToU64(const NcmContentInfo *info, u64 *out)
Retrieves the content size from a NcmContentInfo struct.
Definition: ncm_types.h:184
static void ncmU64ToContentInfoSize(const u64 size, NcmContentInfo *info)
Updates the content size from a NcmContentInfo struct.
Definition: ncm_types.h:193
NcmStorageId
StorageId.
Definition: ncm_types.h:12
@ NcmStorageId_None
None.
Definition: ncm_types.h:13
@ NcmStorageId_Any
Any.
Definition: ncm_types.h:19
@ NcmStorageId_BuiltInUser
BuiltInUser.
Definition: ncm_types.h:17
@ NcmStorageId_Host
Host.
Definition: ncm_types.h:14
@ NcmStorageId_SdCard
SdCard.
Definition: ncm_types.h:18
@ NcmStorageId_BuiltInSystem
BuiltInSystem.
Definition: ncm_types.h:16
@ NcmStorageId_GameCard
GameCard.
Definition: ncm_types.h:15
NcmContentInstallType
ContentInstallType.
Definition: ncm_types.h:57
@ NcmContentInstallType_Unknown
Unknown.
Definition: ncm_types.h:60
@ NcmContentInstallType_Full
Full.
Definition: ncm_types.h:58
@ NcmContentInstallType_FragmentOnly
FragmentOnly.
Definition: ncm_types.h:59
NcmContentMetaAttribute
ContentMetaAttribute.
Definition: ncm_types.h:49
@ NcmContentMetaAttribute_Compacted
Compacted.
Definition: ncm_types.h:53
@ NcmContentMetaAttribute_Rebootless
Rebootless.
Definition: ncm_types.h:52
@ NcmContentMetaAttribute_None
None.
Definition: ncm_types.h:50
@ NcmContentMetaAttribute_IncludesExFatDriver
IncludesExFatDriver.
Definition: ncm_types.h:51
NcmContentMetaType
ContentMetaType.
Definition: ncm_types.h:34
@ NcmContentMetaType_AddOnContent
AddOnContent.
Definition: ncm_types.h:43
@ NcmContentMetaType_BootImagePackageSafe
BootImagePackageSafe.
Definition: ncm_types.h:40
@ NcmContentMetaType_SystemData
SystemData.
Definition: ncm_types.h:37
@ NcmContentMetaType_Application
Application.
Definition: ncm_types.h:41
@ NcmContentMetaType_Delta
Delta.
Definition: ncm_types.h:44
@ NcmContentMetaType_SystemProgram
SystemProgram.
Definition: ncm_types.h:36
@ NcmContentMetaType_SystemUpdate
SystemUpdate.
Definition: ncm_types.h:38
@ NcmContentMetaType_Patch
Patch.
Definition: ncm_types.h:42
@ NcmContentMetaType_BootImagePackage
BootImagePackage.
Definition: ncm_types.h:39
@ NcmContentMetaType_Unknown
Unknown.
Definition: ncm_types.h:35
@ NcmContentMetaType_DataPatch
DataPatch.
Definition: ncm_types.h:45
NcmContentMetaPlatform
ContentMetaPlatform.
Definition: ncm_types.h:64
@ NcmContentMetaPlatform_Nx
Nx.
Definition: ncm_types.h:65
NcmContentType
ContentType.
Definition: ncm_types.h:23
@ NcmContentType_Program
Program.
Definition: ncm_types.h:25
@ NcmContentType_LegalInformation
LegalInformation.
Definition: ncm_types.h:29
@ NcmContentType_Control
Control.
Definition: ncm_types.h:27
@ NcmContentType_Meta
Meta.
Definition: ncm_types.h:24
@ NcmContentType_Data
Data.
Definition: ncm_types.h:26
@ NcmContentType_HtmlDocument
HtmlDocument.
Definition: ncm_types.h:28
@ NcmContentType_DeltaFragment
DeltaFragment.
Definition: ncm_types.h:30
ApplicationContentMetaKey.
Definition: ncm_types.h:88
u64 application_id
ApplicationId.
Definition: ncm_types.h:90
NcmContentMetaKey key
NcmContentMetaKey
Definition: ncm_types.h:89
ContentId.
Definition: ncm_types.h:69
ContentInfo.
Definition: ncm_types.h:94
u8 content_type
NcmContentType.
Definition: ncm_types.h:99
u8 attr
Content attributes.
Definition: ncm_types.h:98
u8 size_high
Content size (high).
Definition: ncm_types.h:97
u32 size_low
Content size (low).
Definition: ncm_types.h:96
u8 id_offset
Offset of this content. Unused by most applications.
Definition: ncm_types.h:100
NcmContentId content_id
NcmContentId
Definition: ncm_types.h:95
ContentMetaInfo.
Definition: ncm_types.h:110
u64 id
Id.
Definition: ncm_types.h:111
u8 type
NcmContentMetaType
Definition: ncm_types.h:113
u32 version
Version.
Definition: ncm_types.h:112
u8 attr
NcmContentMetaAttribute
Definition: ncm_types.h:114
ContentMetaKey.
Definition: ncm_types.h:79
u8 install_type
NcmContentInstallType
Definition: ncm_types.h:83
u64 id
Id.
Definition: ncm_types.h:80
u8 type
NcmContentMetaType
Definition: ncm_types.h:82
u32 version
Version.
Definition: ncm_types.h:81
PackagedContentInfo.
Definition: ncm_types.h:104
PlaceHolderId.
Definition: ncm_types.h:74
Uuid uuid
UUID.
Definition: ncm_types.h:75
ProgramLocation.
Definition: ncm_types.h:173
u8 storageID
NcmStorageId
Definition: ncm_types.h:175
u64 program_id
ProgramId.
Definition: ncm_types.h:174
#define BIT(n)
Creates a bitmask from a bit number.
Definition: types.h:54
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
#define NX_CONSTEXPR
Flags a function as constexpr in C++14 and above; or as (always) inline otherwise.
Definition: types.h:92
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21