Go to the documentation of this file.
9 #include "../services/ncm_types.h"
10 #include "../services/fs.h"
11 #include "../sf/service.h"
int64_t s64
64-bit signed integer.
Definition: types.h:28
Result ncmContentStorageSetPlaceHolderSize(NcmContentStorage *cs, const NcmPlaceHolderId *placeholder_id, s64 size)
[2.0.0+]
ContentMetaKey.
Definition: ncm_types.h:72
Result ncmActivateContentMetaDatabase(NcmStorageId storage_id)
[2.0.0+]
NcmStorageId
StorageId.
Definition: ncm_types.h:12
Result ncmContentStorageGetRightsIdFromContentId(NcmContentStorage *cs, NcmRightsId *out_rights_id, const NcmContentId *content_id)
[2.0.0+]
ContentMetaDatabase.
Definition: ncm.h:19
Result ncmInitialize(void)
Initialize ncm.
ApplicationContentMetaKey.
Definition: ncm_types.h:81
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
NcmContentType
ContentType.
Definition: ncm_types.h:23
Result ncmContentStorageRegisterPath(NcmContentStorage *cs, const NcmContentId *content_id, const char *path)
[13.0.0+]
Result ncmInactivateContentMetaDatabase(NcmStorageId storage_id)
[2.0.0+]
u8 key_generation
[3.0.0+]
Definition: ncm.h:26
Result ncmContentStorageGetTotalSpaceSize(NcmContentStorage *cs, s64 *out_size)
[2.0.0+]
Result ncmContentStorageGetSizeFromPlaceHolderId(NcmContentStorage *cs, s64 *out_size, const NcmPlaceHolderId *placeholder_id)
[4.0.0+]
int32_t s32
32-bit signed integer.
Definition: types.h:27
Result ncmInvalidateRightsIdCache(void)
[9.0.0+]
ContentInfo.
Definition: ncm_types.h:87
Result ncmContentStorageWriteContentForDebug(NcmContentStorage *cs, const NcmContentId *content_id, s64 offset, const void *data, size_t data_size)
[2.0.0+]
Result ncmContentStorageClearRegisteredPath(NcmContentStorage *cs)
[13.0.0+]
void ncmExit(void)
Exit ncm.
Result ncmContentMetaDatabaseGetRequiredApplicationVersion(NcmContentMetaDatabase *db, u32 *out_version, const NcmContentMetaKey *key)
[2.0.0+]
Result ncmCloseContentStorageForcibly(NcmStorageId storage_id)
[1.0.0]
Result ncmContentStorageGetFreeSpaceSize(NcmContentStorage *cs, s64 *out_size)
[2.0.0+]
Result ncmContentStorageFlushPlaceHolder(NcmContentStorage *cs)
[3.0.0+]
Result ncmContentMetaDatabaseGetContentIdByTypeAndIdOffset(NcmContentMetaDatabase *db, NcmContentId *out_content_id, const NcmContentMetaKey *key, NcmContentType type, u8 id_offset)
[5.0.0+]
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
Result ncmInactivateContentStorage(NcmStorageId storage_id)
[2.0.0+]
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
Result ncmCloseContentMetaDatabaseForcibly(NcmStorageId storage_id)
[1.0.0]
Result ncmActivateContentStorage(NcmStorageId storage_id)
[2.0.0+]
u32 Result
Function error code result type.
Definition: types.h:44
Result ncmContentStorageGetRightsIdFromPlaceHolderId(NcmContentStorage *cs, NcmRightsId *out_rights_id, const NcmPlaceHolderId *placeholder_id)
[2.0.0+]
ContentStorage.
Definition: ncm.h:14
Result ncmContentStorageRevertToPlaceHolder(NcmContentStorage *cs, const NcmPlaceHolderId *placeholder_id, const NcmContentId *old_content_id, const NcmContentId *new_content_id)
[2.0.0+]
Service s
IContentMetaDatabase.
Definition: ncm.h:20
Result ncmContentStorageGetRightsIdFromPlaceHolderIdWithCache(NcmContentStorage *cs, NcmRightsId *out_rights_id, const NcmPlaceHolderId *placeholder_id, const NcmContentId *cache_content_id)
[8.0.0+]
Result ncmContentStorageReadContentIdFile(NcmContentStorage *cs, void *out_data, size_t out_data_size, const NcmContentId *content_id, s64 offset)
[2.0.0+]
Service s
IContentStorage.
Definition: ncm.h:15
Service object structure.
Definition: service.h:13
NcmContentMetaType
ContentMetaType.
Definition: ncm_types.h:34
PlaceHolderId.
Definition: ncm_types.h:67
Service * ncmGetServiceSession(void)
Gets the Service object for the actual ncm service session.
NcmContentInstallType
ContentInstallType.
Definition: ncm_types.h:55
ContentId.
Definition: ncm_types.h:62
Result ncmContentStorageRepairInvalidFileAttribute(NcmContentStorage *cs)
[4.0.0+]
RightsId.
Definition: ncm.h:24