libnx  v4.6.0
Data Structures | Enumerations | Functions
ncm_types.h File Reference

Content Manager (ncm) service types (see ncm.h for the rest). More...

#include "../types.h"
#include "../crypto/sha256.h"

Go to the source code of this file.

Data Structures

struct  NcmContentId
 ContentId. More...
 
struct  NcmPlaceHolderId
 PlaceHolderId. More...
 
struct  NcmContentMetaKey
 ContentMetaKey. More...
 
struct  NcmApplicationContentMetaKey
 ApplicationContentMetaKey. More...
 
struct  NcmContentInfo
 ContentInfo. More...
 
struct  NcmPackagedContentInfo
 PackagedContentInfo. More...
 
struct  NcmContentMetaInfo
 ContentMetaInfo. More...
 
struct  NcmContentMetaHeader
 ContentMetaHeader. More...
 
struct  NcmApplicationMetaExtendedHeader
 ApplicationMetaExtendedHeader. More...
 
struct  NcmPatchMetaExtendedHeader
 PatchMetaExtendedHeader. More...
 
struct  NcmAddOnContentMetaExtendedHeader
 AddOnContentMetaExtendedHeader [15.0.0+]. More...
 
struct  NcmLegacyAddOnContentMetaExtendedHeader
 LegacyAddOnContentMetaExtendedHeader [1.0.0-14.1.2]. More...
 
struct  NcmDataPatchMetaExtendedHeader
 DataPatchMetaExtendedHeader. More...
 
struct  NcmSystemUpdateMetaExtendedHeader
 SystemUpdateMetaExtendedHeader. More...
 
struct  NcmProgramLocation
 ProgramLocation. More...
 

Enumerations

enum  NcmStorageId {
  NcmStorageId_None = 0 ,
  NcmStorageId_Host = 1 ,
  NcmStorageId_GameCard = 2 ,
  NcmStorageId_BuiltInSystem = 3 ,
  NcmStorageId_BuiltInUser = 4 ,
  NcmStorageId_SdCard = 5 ,
  NcmStorageId_Any = 6
}
 StorageId. More...
 
enum  NcmContentType {
  NcmContentType_Meta = 0 ,
  NcmContentType_Program = 1 ,
  NcmContentType_Data = 2 ,
  NcmContentType_Control = 3 ,
  NcmContentType_HtmlDocument = 4 ,
  NcmContentType_LegalInformation = 5 ,
  NcmContentType_DeltaFragment = 6
}
 ContentType. More...
 
enum  NcmContentMetaType {
  NcmContentMetaType_Unknown = 0x0 ,
  NcmContentMetaType_SystemProgram = 0x1 ,
  NcmContentMetaType_SystemData = 0x2 ,
  NcmContentMetaType_SystemUpdate = 0x3 ,
  NcmContentMetaType_BootImagePackage = 0x4 ,
  NcmContentMetaType_BootImagePackageSafe = 0x5 ,
  NcmContentMetaType_Application = 0x80 ,
  NcmContentMetaType_Patch = 0x81 ,
  NcmContentMetaType_AddOnContent = 0x82 ,
  NcmContentMetaType_Delta = 0x83 ,
  NcmContentMetaType_DataPatch = 0x84
}
 ContentMetaType. More...
 
enum  NcmContentMetaAttribute {
  NcmContentMetaAttribute_None = 0 ,
  NcmContentMetaAttribute_IncludesExFatDriver = (1U<<( 0 )) ,
  NcmContentMetaAttribute_Rebootless = (1U<<( 1 )) ,
  NcmContentMetaAttribute_Compacted = (1U<<( 2 ))
}
 ContentMetaAttribute. More...
 
enum  NcmContentInstallType {
  NcmContentInstallType_Full = 0 ,
  NcmContentInstallType_FragmentOnly = 1 ,
  NcmContentInstallType_Unknown = 7
}
 ContentInstallType. More...
 
enum  NcmContentMetaPlatform { NcmContentMetaPlatform_Nx = 0 }
 ContentMetaPlatform. More...
 

Functions

static void ncmContentInfoSizeToU64 (const NcmContentInfo *info, u64 *out)
 Retrieves the content size from a NcmContentInfo struct. More...
 
static void ncmU64ToContentInfoSize (const u64 size, NcmContentInfo *info)
 Updates the content size from a NcmContentInfo struct. More...
 

Detailed Description

Content Manager (ncm) service types (see ncm.h for the rest).

Author
Adubbz, zhuowei, and yellows8

Enumeration Type Documentation

◆ NcmContentInstallType

ContentInstallType.

Enumerator
NcmContentInstallType_Full 

Full.

NcmContentInstallType_FragmentOnly 

FragmentOnly.

NcmContentInstallType_Unknown 

Unknown.

◆ NcmContentMetaAttribute

ContentMetaAttribute.

Enumerator
NcmContentMetaAttribute_None 

None.

NcmContentMetaAttribute_IncludesExFatDriver 

IncludesExFatDriver.

NcmContentMetaAttribute_Rebootless 

Rebootless.

NcmContentMetaAttribute_Compacted 

Compacted.

◆ NcmContentMetaPlatform

ContentMetaPlatform.

Enumerator
NcmContentMetaPlatform_Nx 

Nx.

◆ NcmContentMetaType

ContentMetaType.

Enumerator
NcmContentMetaType_Unknown 

Unknown.

NcmContentMetaType_SystemProgram 

SystemProgram.

NcmContentMetaType_SystemData 

SystemData.

NcmContentMetaType_SystemUpdate 

SystemUpdate.

NcmContentMetaType_BootImagePackage 

BootImagePackage.

NcmContentMetaType_BootImagePackageSafe 

BootImagePackageSafe.

NcmContentMetaType_Application 

Application.

NcmContentMetaType_Patch 

Patch.

NcmContentMetaType_AddOnContent 

AddOnContent.

NcmContentMetaType_Delta 

Delta.

NcmContentMetaType_DataPatch 

DataPatch.

◆ NcmContentType

ContentType.

Enumerator
NcmContentType_Meta 

Meta.

NcmContentType_Program 

Program.

NcmContentType_Data 

Data.

NcmContentType_Control 

Control.

NcmContentType_HtmlDocument 

HtmlDocument.

NcmContentType_LegalInformation 

LegalInformation.

NcmContentType_DeltaFragment 

DeltaFragment.

◆ NcmStorageId

StorageId.

Enumerator
NcmStorageId_None 

None.

NcmStorageId_Host 

Host.

NcmStorageId_GameCard 

GameCard.

NcmStorageId_BuiltInSystem 

BuiltInSystem.

NcmStorageId_BuiltInUser 

BuiltInUser.

NcmStorageId_SdCard 

SdCard.

NcmStorageId_Any 

Any.

Function Documentation

◆ ncmContentInfoSizeToU64()

static void ncmContentInfoSizeToU64 ( const NcmContentInfo info,
u64 out 
)
inlinestatic

Retrieves the content size from a NcmContentInfo struct.

Parameters
[in]infoPointer to NcmContentInfo struct.
[out]outOutput size.

◆ ncmU64ToContentInfoSize()

static void ncmU64ToContentInfoSize ( const u64  size,
NcmContentInfo info 
)
inlinestatic

Updates the content size from a NcmContentInfo struct.

Parameters
[in]sizeInput size.
[out]outPointer to NcmContentInfo struct.