libnx
v4.7.0
|
NS services IPC wrapper. More...
#include "../types.h"
#include "../nacp.h"
#include "../sf/service.h"
#include "../services/ncm_types.h"
#include "../services/async.h"
#include "../services/acc.h"
#include "../services/fs.h"
#include "../applets/error.h"
#include "../kernel/event.h"
#include "../kernel/tmem.h"
Go to the source code of this file.
Macros | |
#define | NSSU_CARDUPDATE_TMEM_SIZE_DEFAULT 0x100000 |
Default size for nssuControlSetupCardUpdate / nssuControlSetupCardUpdateViaSystemUpdater. This is the size used by qlaunch for SetupCardUpdate. | |
Typedefs | |
typedef NsSystemUpdateProgress | NsReceiveApplicationProgress |
ReceiveApplicationProgress. Same as NsSystemUpdateProgress, except cmds which return this will return actual errors on failure, instead of returning 0 with a cleared struct. | |
typedef NsSystemUpdateProgress | NsSendApplicationProgress |
SendApplicationProgress. Same as NsSystemUpdateProgress, except cmds which return this will return actual errors on failure, instead of returning 0 with a cleared struct. | |
Enumerations | |
enum | NsShellEvent { NsShellEvent_None = 0 , NsShellEvent_Exit = 1 , NsShellEvent_Start = 2 , NsShellEvent_Crash = 3 , NsShellEvent_Debug = 4 } |
ShellEvent. More... | |
enum | NsApplicationControlSource { NsApplicationControlSource_CacheOnly = 0 , NsApplicationControlSource_Storage = 1 , NsApplicationControlSource_StorageOnly = 2 } |
ApplicationControlSource. More... | |
enum | NsBackgroundNetworkUpdateState { NsBackgroundNetworkUpdateState_None = 0 , NsBackgroundNetworkUpdateState_Downloading = 1 , NsBackgroundNetworkUpdateState_Ready = 2 } |
BackgroundNetworkUpdateState. More... | |
enum | NsLatestSystemUpdate { NsLatestSystemUpdate_Unknown0 = 0 , NsLatestSystemUpdate_Unknown1 = 1 , NsLatestSystemUpdate_Unknown2 = 2 } |
LatestSystemUpdate. More... | |
Functions | |
ns | |
Result | nsInitialize (void) |
Initialize ns services. Uses ns:am on pre-3.0.0, ns:am2 on [3.0.0+]. | |
void | nsExit (void) |
Exit ns services. | |
Service * | nsGetServiceSession_GetterInterface (void) |
Gets the Service object for the actual ns:* service session. Only initialized on [3.0.0+], on pre-3.0.0 see nsGetServiceSession_ApplicationManagerInterface. | |
Service * | nsGetServiceSession_ApplicationManagerInterface (void) |
Gets the Service object for IApplicationManagerInterface. Only initialized on pre-3.0.0, on [3.0.0+] use nsGetApplicationManagerInterface. | |
Result | nsGetDynamicRightsInterface (Service *srv_out) |
Gets the Service object for IDynamicRightsInterface via the cmd for that. More... | |
Result | nsGetReadOnlyApplicationControlDataInterface (Service *srv_out) |
Gets the Service object for IReadOnlyApplicationControlDataInterface via the cmd for that. More... | |
Result | nsGetReadOnlyApplicationRecordInterface (Service *srv_out) |
Gets the Service object for IReadOnlyApplicationRecordInterface via the cmd for that. More... | |
Result | nsGetECommerceInterface (Service *srv_out) |
Gets the Service object for IECommerceInterface via the cmd for that. More... | |
Result | nsGetApplicationVersionInterface (Service *srv_out) |
Gets the Service object for IApplicationVersionInterface via the cmd for that. More... | |
Result | nsGetFactoryResetInterface (Service *srv_out) |
Gets the Service object for IFactoryResetInterface via the cmd for that. More... | |
Result | nsGetAccountProxyInterface (Service *srv_out) |
Gets the Service object for IAccountProxyInterface via the cmd for that. More... | |
Result | nsGetApplicationManagerInterface (Service *srv_out) |
Gets the Service object for IApplicationManagerInterface via the cmd for that. More... | |
Result | nsGetDownloadTaskInterface (Service *srv_out) |
Gets the Service object for IDownloadTaskInterface via the cmd for that. More... | |
Result | nsGetContentManagementInterface (Service *srv_out) |
Gets the Service object for IContentManagementInterface via the cmd for that. More... | |
Result | nsGetDocumentInterface (Service *srv_out) |
Gets the Service object for IDocumentInterface via the cmd for that. More... | |
IReadOnlyApplicationControlDataInterface | |
Result | nsGetApplicationControlData (NsApplicationControlSource source, u64 application_id, NsApplicationControlData *buffer, size_t size, u64 *actual_size) |
Gets the NsApplicationControlData for the specified application. More... | |
Result | nsGetApplicationDesiredLanguage (NacpStruct *nacp, NacpLanguageEntry **langentry) |
GetApplicationDesiredLanguage. More... | |
IECommerceInterface | |
Result | nsRequestLinkDevice (AsyncResult *a, AccountUid uid) |
RequestLinkDevice. More... | |
Result | nsRequestSyncRights (AsyncResult *a) |
RequestSyncRights. More... | |
Result | nsRequestUnlinkDevice (AsyncResult *a, AccountUid uid) |
RequestUnlinkDevice. More... | |
IFactoryResetInterface | |
Result | nsResetToFactorySettings (void) |
ResetToFactorySettings. More... | |
Result | nsResetToFactorySettingsWithoutUserSaveData (void) |
ResetToFactorySettingsWithoutUserSaveData. More... | |
Result | nsResetToFactorySettingsForRefurbishment (void) |
ResetToFactorySettingsForRefurbishment. More... | |
Result | nsResetToFactorySettingsWithPlatformRegion (void) |
ResetToFactorySettingsWithPlatformRegion. More... | |
Result | nsResetToFactorySettingsWithPlatformRegionAuthentication (void) |
ResetToFactorySettingsWithPlatformRegionAuthentication. More... | |
IApplicationManagerInterface | |
Result | nsListApplicationRecord (NsApplicationRecord *records, s32 count, s32 entry_offset, s32 *out_entrycount) |
Gets an listing of NsApplicationRecord. More... | |
Result | nsGetApplicationRecordUpdateSystemEvent (Event *out_event) |
GetApplicationRecordUpdateSystemEvent. More... | |
Result | nsGetApplicationViewDeprecated (NsApplicationViewDeprecated *views, const u64 *application_ids, s32 count) |
GetApplicationViewDeprecated. More... | |
Result | nsDeleteApplicationEntity (u64 application_id) |
DeleteApplicationEntity. More... | |
Result | nsDeleteApplicationCompletely (u64 application_id) |
DeleteApplicationCompletely. More... | |
Result | nsDeleteRedundantApplicationEntity (void) |
DeleteRedundantApplicationEntity. | |
Result | nsIsApplicationEntityMovable (u64 application_id, NcmStorageId storage_id, bool *out) |
IsApplicationEntityMovable. More... | |
Result | nsMoveApplicationEntity (u64 application_id, NcmStorageId storage_id) |
MoveApplicationEntity. More... | |
Result | nsRequestApplicationUpdateInfo (AsyncValue *a, u64 application_id) |
RequestApplicationUpdateInfo. More... | |
Result | nsCancelApplicationDownload (u64 application_id) |
CancelApplicationDownload. More... | |
Result | nsResumeApplicationDownload (u64 application_id) |
ResumeApplicationDownload. More... | |
Result | nsCheckApplicationLaunchVersion (u64 application_id) |
CheckApplicationLaunchVersion. More... | |
Result | nsCalculateApplicationDownloadRequiredSize (u64 application_id, NcmStorageId *storage_id, s64 *size) |
CalculateApplicationApplyDeltaRequiredSize. More... | |
Result | nsCleanupSdCard (void) |
CleanupSdCard. | |
Result | nsGetSdCardMountStatusChangedEvent (Event *out_event) |
GetSdCardMountStatusChangedEvent. More... | |
Result | nsGetGameCardUpdateDetectionEvent (Event *out_event) |
GetGameCardUpdateDetectionEvent. More... | |
Result | nsDisableApplicationAutoDelete (u64 application_id) |
DisableApplicationAutoDelete. More... | |
Result | nsEnableApplicationAutoDelete (u64 application_id) |
EnableApplicationAutoDelete. More... | |
Result | nsSetApplicationTerminateResult (u64 application_id, Result res) |
SetApplicationTerminateResult. More... | |
Result | nsClearApplicationTerminateResult (u64 application_id) |
ClearApplicationTerminateResult. More... | |
Result | nsGetLastSdCardMountUnexpectedResult (void) |
GetLastSdCardMountUnexpectedResult. | |
Result | nsGetRequestServerStopper (NsRequestServerStopper *r) |
Opens a NsRequestServerStopper. More... | |
Result | nsCancelApplicationApplyDelta (u64 application_id) |
CancelApplicationApplyDelta. More... | |
Result | nsResumeApplicationApplyDelta (u64 application_id) |
ResumeApplicationApplyDelta. More... | |
Result | nsCalculateApplicationApplyDeltaRequiredSize (u64 application_id, NcmStorageId *storage_id, s64 *size) |
CalculateApplicationApplyDeltaRequiredSize. More... | |
Result | nsResumeAll (void) |
ResumeAll. More... | |
Result | nsGetStorageSize (NcmStorageId storage_id, s64 *total_space_size, s64 *free_space_size) |
Temporarily mounts the specified fs ContentStorage, then uses fs GetTotalSpaceSize/GetFreeSpaceSize with that mounted ContentStorage. More... | |
Result | nsRequestUpdateApplication2 (AsyncResult *a, u64 application_id) |
RequestUpdateApplication2. More... | |
Result | nsDeleteUserSaveDataAll (NsProgressMonitorForDeleteUserSaveDataAll *p, AccountUid uid) |
DeleteUserSaveDataAll. More... | |
Result | nsDeleteUserSystemSaveData (AccountUid uid, u64 system_save_data_id) |
DeleteUserSystemSaveData. More... | |
Result | nsDeleteSaveData (FsSaveDataSpaceId save_data_space_id, u64 save_data_id) |
DeleteSaveData. More... | |
Result | nsUnregisterNetworkServiceAccount (AccountUid uid) |
UnregisterNetworkServiceAccount. More... | |
Result | nsUnregisterNetworkServiceAccountWithUserSaveDataDeletion (AccountUid uid) |
UnregisterNetworkServiceAccountWithUserSaveDataDeletion. More... | |
Result | nsRequestDownloadApplicationControlData (AsyncResult *a, u64 application_id) |
RequestDownloadApplicationControlData. More... | |
Result | nsListApplicationTitle (AsyncValue *a, NsApplicationControlSource source, const u64 *application_ids, s32 count, void *buffer, size_t size) |
ListApplicationTitle. More... | |
Result | nsListApplicationIcon (AsyncValue *a, NsApplicationControlSource source, const u64 *application_ids, s32 count, void *buffer, size_t size) |
ListApplicationIcon. More... | |
Result | nsRequestCheckGameCardRegistration (AsyncResult *a, u64 application_id) |
RequestCheckGameCardRegistration. More... | |
Result | nsRequestGameCardRegistrationGoldPoint (AsyncValue *a, AccountUid uid, u64 application_id) |
RequestGameCardRegistrationGoldPoint. More... | |
Result | nsRequestRegisterGameCard (AsyncResult *a, AccountUid uid, u64 application_id, s32 inval) |
RequestRegisterGameCard. More... | |
Result | nsGetGameCardMountFailureEvent (Event *out_event) |
GetGameCardMountFailureEvent. More... | |
Result | nsIsGameCardInserted (bool *out) |
IsGameCardInserted. More... | |
Result | nsEnsureGameCardAccess (void) |
EnsureGameCardAccess. More... | |
Result | nsGetLastGameCardMountFailureResult (void) |
GetLastGameCardMountFailureResult. More... | |
Result | nsListApplicationIdOnGameCard (u64 *application_ids, s32 count, s32 *total_out) |
ListApplicationIdOnGameCard. More... | |
Result | nsTouchApplication (u64 application_id) |
TouchApplication. More... | |
Result | nsIsApplicationUpdateRequested (u64 application_id, bool *flag, u32 *out) |
IsApplicationUpdateRequested. More... | |
Result | nsWithdrawApplicationUpdateRequest (u64 application_id) |
WithdrawApplicationUpdateRequest. More... | |
Result | nsRequestVerifyAddOnContentsRights (NsProgressAsyncResult *a, u64 application_id) |
RequestVerifyAddOnContentsRights. More... | |
Result | nsRequestVerifyApplication (NsProgressAsyncResult *a, u64 application_id, u32 unk, void *buffer, size_t size) |
RequestVerifyApplication. More... | |
Result | nsIsAnyApplicationEntityInstalled (u64 application_id, bool *out) |
IsAnyApplicationEntityInstalled. More... | |
Result | nsCleanupUnavailableAddOnContents (u64 application_id, AccountUid uid) |
CleanupUnavailableAddOnContents. More... | |
Result | nsEstimateSizeToMove (u8 *storage_ids, s32 count, NcmStorageId storage_id, u32 flags, u64 application_id, s64 *out) |
EstimateSizeToMove. More... | |
Result | nsFormatSdCard (void) |
FormatSdCard. More... | |
Result | nsNeedsSystemUpdateToFormatSdCard (bool *out) |
NeedsSystemUpdateToFormatSdCard. More... | |
Result | nsGetLastSdCardFormatUnexpectedResult (void) |
GetLastSdCardFormatUnexpectedResult. More... | |
Result | nsGetApplicationView (NsApplicationView *views, const u64 *application_ids, s32 count) |
GetApplicationView. More... | |
Result | nsGetApplicationViewDownloadErrorContext (u64 application_id, ErrorContext *context) |
GetApplicationViewDownloadErrorContext. More... | |
Result | nsGetApplicationViewWithPromotionInfo (NsApplicationViewWithPromotionInfo *out, const u64 *application_ids, s32 count) |
GetApplicationViewWithPromotionInfo. More... | |
Result | nsRequestDownloadApplicationPrepurchasedRights (AsyncResult *a, u64 application_id) |
RequestDownloadApplicationPrepurchasedRights. More... | |
Result | nsGetSystemDeliveryInfo (NsSystemDeliveryInfo *info) |
Generates a NsSystemDeliveryInfo using the currently installed SystemUpdate meta. More... | |
Result | nsSelectLatestSystemDeliveryInfo (const NsSystemDeliveryInfo *sys_list, s32 sys_count, const NsSystemDeliveryInfo *base_info, const NsApplicationDeliveryInfo *app_list, s32 app_count, s32 *index) |
SelectLatestSystemDeliveryInfo. More... | |
Result | nsVerifyDeliveryProtocolVersion (const NsSystemDeliveryInfo *info) |
VerifyDeliveryProtocolVersion. More... | |
Result | nsGetApplicationDeliveryInfo (NsApplicationDeliveryInfo *info, s32 count, u64 application_id, u32 attr, s32 *total_out) |
Generates NsApplicationDeliveryInfo for the specified ApplicationId. More... | |
Result | nsHasAllContentsToDeliver (const NsApplicationDeliveryInfo *info, s32 count, bool *out) |
HasAllContentsToDeliver. More... | |
Result | nsCompareApplicationDeliveryInfo (const NsApplicationDeliveryInfo *info0, s32 count0, const NsApplicationDeliveryInfo *info1, s32 count1, s32 *out) |
Both NsApplicationDeliveryInfo are validated, then the application_version in the first/second NsApplicationDeliveryInfo are compared. More... | |
Result | nsCanDeliverApplication (const NsApplicationDeliveryInfo *info0, s32 count0, const NsApplicationDeliveryInfo *info1, s32 count1, bool *out) |
CanDeliverApplication. More... | |
Result | nsListContentMetaKeyToDeliverApplication (NcmContentMetaKey *meta, s32 meta_count, s32 meta_index, const NsApplicationDeliveryInfo *info, s32 info_count, s32 *total_out) |
ListContentMetaKeyToDeliverApplication. More... | |
Result | nsNeedsSystemUpdateToDeliverApplication (const NsApplicationDeliveryInfo *info, s32 count, const NsSystemDeliveryInfo *sys_info, bool *out) |
After validation etc, this sets the output bool by comparing system-version fields in the NsSystemDeliveryInfo / info-array and with a state field. More... | |
Result | nsEstimateRequiredSize (const NcmContentMetaKey *meta, s32 count, s64 *out) |
EstimateRequiredSize. More... | |
Result | nsRequestReceiveApplication (AsyncResult *a, u32 addr, u16 port, u64 application_id, const NcmContentMetaKey *meta, s32 count, NcmStorageId storage_id) |
RequestReceiveApplication. More... | |
Result | nsCommitReceiveApplication (u64 application_id) |
CommitReceiveApplication. More... | |
Result | nsGetReceiveApplicationProgress (u64 application_id, NsReceiveApplicationProgress *out) |
GetReceiveApplicationProgress. More... | |
Result | nsRequestSendApplication (AsyncResult *a, u32 addr, u16 port, u64 application_id, const NcmContentMetaKey *meta, s32 count) |
RequestSendApplication. More... | |
Result | nsGetSendApplicationProgress (u64 application_id, NsSendApplicationProgress *out) |
GetSendApplicationProgress. More... | |
Result | nsCompareSystemDeliveryInfo (const NsSystemDeliveryInfo *info0, const NsSystemDeliveryInfo *info1, s32 *out) |
Both NsSystemDeliveryInfo are validated, then the system_update_meta_version in the first/second NsSystemDeliveryInfo are compared. More... | |
Result | nsListNotCommittedContentMeta (NcmContentMetaKey *meta, s32 count, u64 application_id, s32 unk, s32 *total_out) |
ListNotCommittedContentMeta. More... | |
Result | nsGetApplicationDeliveryInfoHash (const NsApplicationDeliveryInfo *info, s32 count, u8 *out_hash) |
This extracts data from the input array for hashing with SHA256, with validation being done when handling each entry. More... | |
Result | nsGetApplicationTerminateResult (u64 application_id, Result *res) |
GetApplicationTerminateResult. More... | |
Result | nsGetApplicationRightsOnClient (NsApplicationRightsOnClient *rights, s32 count, u64 application_id, AccountUid uid, u32 flags, s32 *total_out) |
GetApplicationRightsOnClient. More... | |
Result | nsRequestNoDownloadRightsErrorResolution (AsyncValue *a, u64 application_id) |
RequestNoDownloadRightsErrorResolution. More... | |
Result | nsRequestResolveNoDownloadRightsError (AsyncValue *a, u64 application_id) |
RequestResolveNoDownloadRightsError. More... | |
Result | nsGetPromotionInfo (NsPromotionInfo *promotion, u64 application_id, AccountUid uid) |
GetPromotionInfo. More... | |
IDownloadTaskInterface | |
Result | nsClearTaskStatusList (void) |
ClearTaskStatusList. More... | |
Result | nsRequestDownloadTaskList (void) |
RequestDownloadTaskList. More... | |
Result | nsRequestEnsureDownloadTask (AsyncResult *a) |
RequestEnsureDownloadTask. More... | |
Result | nsListDownloadTaskStatus (NsDownloadTaskStatus *tasks, s32 count, s32 *total_out) |
ListDownloadTaskStatus. More... | |
Result | nsRequestDownloadTaskListData (AsyncValue *a) |
RequestDownloadTaskListData. More... | |
Result | nsTryCommitCurrentApplicationDownloadTask (void) |
TryCommitCurrentApplicationDownloadTask. More... | |
Result | nsEnableAutoCommit (void) |
EnableAutoCommit. More... | |
Result | nsDisableAutoCommit (void) |
DisableAutoCommit. More... | |
Result | nsTriggerDynamicCommitEvent (void) |
TriggerDynamicCommitEvent. More... | |
IContentManagementInterface | |
Result | nsCalculateApplicationOccupiedSize (u64 application_id, NsApplicationOccupiedSize *out) |
CalculateApplicationOccupiedSize. More... | |
Result | nsCheckSdCardMountStatus (void) |
CheckSdCardMountStatus. More... | |
Result | nsGetTotalSpaceSize (NcmStorageId storage_id, s64 *size) |
Returns the total storage capacity (used + free) from content manager services. More... | |
Result | nsGetFreeSpaceSize (NcmStorageId storage_id, s64 *size) |
Returns the available storage capacity from content manager services. More... | |
Result | nsCountApplicationContentMeta (u64 application_id, s32 *out) |
CountApplicationContentMeta. More... | |
Result | nsListApplicationContentMetaStatus (u64 application_id, s32 index, NsApplicationContentMetaStatus *list, s32 count, s32 *out_entrycount) |
Gets an listing of NsApplicationContentMetaStatus. More... | |
Result | nsIsAnyApplicationRunning (bool *out) |
IsAnyApplicationRunning. More... | |
IRequestServerStopper | |
void | nsRequestServerStopperClose (NsRequestServerStopper *r) |
Close a NsRequestServerStopper. More... | |
IProgressMonitorForDeleteUserSaveDataAll | |
Result | nsProgressMonitorForDeleteUserSaveDataAllClose (NsProgressMonitorForDeleteUserSaveDataAll *p) |
Close a NsProgressMonitorForDeleteUserSaveDataAll. More... | |
Result | nsProgressMonitorForDeleteUserSaveDataAllGetSystemEvent (NsProgressMonitorForDeleteUserSaveDataAll *p, Event *out_event) |
GetSystemEvent. More... | |
Result | nsProgressMonitorForDeleteUserSaveDataAllIsFinished (NsProgressMonitorForDeleteUserSaveDataAll *p, bool *out) |
IsFinished. More... | |
Result | nsProgressMonitorForDeleteUserSaveDataAllGetResult (NsProgressMonitorForDeleteUserSaveDataAll *p) |
GetResult. More... | |
Result | nsProgressMonitorForDeleteUserSaveDataAllGetProgress (NsProgressMonitorForDeleteUserSaveDataAll *p, NsProgressForDeleteUserSaveDataAll *progress) |
GetProgress. More... | |
IProgressAsyncResult | |
void | nsProgressAsyncResultClose (NsProgressAsyncResult *a) |
Close a NsProgressAsyncResult. More... | |
Result | nsProgressAsyncResultWait (NsProgressAsyncResult *a, u64 timeout) |
Waits for the async operation to finish using the specified timeout. More... | |
Result | nsProgressAsyncResultGet (NsProgressAsyncResult *a) |
Gets the Result. More... | |
Result | nsProgressAsyncResultCancel (NsProgressAsyncResult *a) |
Cancels the async operation. More... | |
Result | nsProgressAsyncResultGetProgress (NsProgressAsyncResult *a, void *buffer, size_t size) |
Gets the progress. More... | |
Result | nsProgressAsyncResultGetDetailResult (NsProgressAsyncResult *a) |
GetDetailResult. More... | |
Result | nsProgressAsyncResultGetErrorContext (NsProgressAsyncResult *a, ErrorContext *context) |
Gets the ErrorContext. More... | |
ns:vm | |
Result | nsvmInitialize (void) |
Initialize ns:vm. On pre-3.0.0 this must be used with nsInitialize. | |
void | nsvmExit (void) |
Exit ns:vm. | |
Service * | nsvmGetServiceSession (void) |
Gets the Service object for ns:vm. This is only initialized on [3.0.0+]. | |
Result | nsvmNeedsUpdateVulnerability (bool *out) |
Result | nsvmGetSafeSystemVersion (NcmContentMetaKey *out) |
[4.0.0+] | |
ns:dev | |
Result | nsdevInitialize (void) |
Initialize ns:dev. | |
void | nsdevExit (void) |
Initialize ns:dev. | |
Service * | nsdevGetServiceSession (void) |
Gets the Service object for ns:dev. | |
Result | nsdevLaunchProgram (u64 *out_pid, const NsLaunchProperties *properties, u32 flags) |
[1.0.0-9.2.0] | |
Result | nsdevTerminateProcess (u64 pid) |
Result | nsdevTerminateProgram (u64 tid) |
[1.0.0-9.2.0] | |
Result | nsdevGetShellEvent (Event *out_event) |
Autoclear for nsdevShellEvent is always true. [1.0.0-9.2.0]. | |
Result | nsdevGetShellEventInfo (NsShellEventInfo *out) |
[1.0.0-9.2.0] | |
Result | nsdevTerminateApplication (void) |
Result | nsdevPrepareLaunchProgramFromHost (NsLaunchProperties *out, const char *path, size_t path_len) |
[1.0.0-9.2.0] | |
Result | nsdevLaunchApplicationForDevelop (u64 *out_pid, u64 application_id, u32 flags) |
[1.0.0-9.2.0] | |
Result | nsdevLaunchApplicationFromHost (u64 *out_pid, const char *path, size_t path_len, u32 flags) |
[10.0.0-17.0.1] | |
Result | nsdevLaunchApplicationWithStorageIdForDevelop (u64 *out_pid, u64 application_id, u32 flags, u8 app_storage_id, u8 patch_storage_id) |
[1.0.0-17.0.1] | |
Result | nsdevIsSystemMemoryResourceLimitBoosted (bool *out) |
[6.0.0-8.1.0] | |
Result | nsdevGetRunningApplicationProcessIdForDevelop (u64 *out_pid) |
[6.0.0+] | |
Result | nsdevSetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop (bool can_be_active) |
[6.0.0+] | |
ns:su | |
Result | nssuInitialize (void) |
Initialize ns:su. | |
void | nssuExit (void) |
Exit ns:su. | |
Service * | nssuGetServiceSession (void) |
Gets the Service object for ns:su. | |
Result | nssuGetBackgroundNetworkUpdateState (NsBackgroundNetworkUpdateState *out) |
Gets the NsBackgroundNetworkUpdateState. More... | |
Result | nssuOpenSystemUpdateControl (NsSystemUpdateControl *c) |
Opens a NsSystemUpdateControl. More... | |
Result | nssuNotifyExFatDriverRequired (void) |
Uses nim ListSystemUpdateTask, then uses the task with DestroySystemUpdateTask if it exists. More... | |
Result | nssuClearExFatDriverStatusForDebug (void) |
ClearExFatDriverStatusForDebug. | |
Result | nssuRequestBackgroundNetworkUpdate (void) |
RequestBackgroundNetworkUpdate. More... | |
Result | nssuNotifyBackgroundNetworkUpdate (const NcmContentMetaKey *key) |
This checks whether a sysupdate is needed with the input NcmContentMetaKey using NCM commands, if not this will just return 0. More... | |
Result | nssuNotifyExFatDriverDownloadedForDebug (void) |
NotifyExFatDriverDownloadedForDebug. | |
Result | nssuGetSystemUpdateNotificationEventForContentDelivery (Event *out_event) |
Gets an Event which can be signaled by nssuNotifySystemUpdateForContentDelivery. More... | |
Result | nssuNotifySystemUpdateForContentDelivery (void) |
Signals the event returned by nssuGetSystemUpdateNotificationEventForContentDelivery. | |
Result | nssuPrepareShutdown (void) |
This does shutdown preparation. More... | |
Result | nssuDestroySystemUpdateTask (void) |
This uses nim ListSystemUpdateTask, then when a task is returned uses it with DestroySystemUpdateTask. More... | |
Result | nssuRequestSendSystemUpdate (AsyncResult *a, u32 addr, u16 port, NsSystemDeliveryInfo *info) |
RequestSendSystemUpdate. More... | |
Result | nssuGetSendSystemUpdateProgress (NsSystemUpdateProgress *out) |
GetSendSystemUpdateProgress. More... | |
ISystemUpdateControl | |
void | nssuControlClose (NsSystemUpdateControl *c) |
Close a NsSystemUpdateControl. More... | |
Result | nssuControlHasDownloaded (NsSystemUpdateControl *c, bool *out) |
Gets whether a network sysupdate was downloaded, with install pending. More... | |
Result | nssuControlRequestCheckLatestUpdate (NsSystemUpdateControl *c, AsyncValue *a) |
RequestCheckLatestUpdate. More... | |
Result | nssuControlRequestDownloadLatestUpdate (NsSystemUpdateControl *c, AsyncResult *a) |
RequestDownloadLatestUpdate. More... | |
Result | nssuControlGetDownloadProgress (NsSystemUpdateControl *c, NsSystemUpdateProgress *out) |
GetDownloadProgress. More... | |
Result | nssuControlApplyDownloadedUpdate (NsSystemUpdateControl *c) |
ApplyDownloadedUpdate. More... | |
Result | nssuControlRequestPrepareCardUpdate (NsSystemUpdateControl *c, AsyncResult *a) |
RequestPrepareCardUpdate. More... | |
Result | nssuControlGetPrepareCardUpdateProgress (NsSystemUpdateControl *c, NsSystemUpdateProgress *out) |
GetPrepareCardUpdateProgress. More... | |
Result | nssuControlHasPreparedCardUpdate (NsSystemUpdateControl *c, bool *out) |
HasPreparedCardUpdate. More... | |
Result | nssuControlApplyCardUpdate (NsSystemUpdateControl *c) |
ApplyCardUpdate. More... | |
Result | nssuControlGetDownloadedEulaDataSize (NsSystemUpdateControl *c, const char *path, u64 *filesize) |
Gets the filesize for the specified DownloadedEulaData. More... | |
Result | nssuControlGetDownloadedEulaData (NsSystemUpdateControl *c, const char *path, void *buffer, size_t size, u64 *filesize) |
Gets the specified DownloadedEulaData. More... | |
Result | nssuControlSetupCardUpdate (NsSystemUpdateControl *c, void *buffer, size_t size) |
SetupCardUpdate. More... | |
Result | nssuControlGetPreparedCardUpdateEulaDataSize (NsSystemUpdateControl *c, const char *path, u64 *filesize) |
Gets the filesize for the specified PreparedCardUpdateEulaData. More... | |
Result | nssuControlGetPreparedCardUpdateEulaData (NsSystemUpdateControl *c, const char *path, void *buffer, size_t size, u64 *filesize) |
Gets the specified PreparedCardUpdateEulaData. More... | |
Result | nssuControlSetupCardUpdateViaSystemUpdater (NsSystemUpdateControl *c, void *buffer, size_t size) |
SetupCardUpdateViaSystemUpdater. More... | |
Result | nssuControlHasReceived (NsSystemUpdateControl *c, bool *out) |
HasReceived. More... | |
Result | nssuControlRequestReceiveSystemUpdate (NsSystemUpdateControl *c, AsyncResult *a, u32 addr, u16 port, NsSystemDeliveryInfo *info) |
RequestReceiveSystemUpdate. More... | |
Result | nssuControlGetReceiveProgress (NsSystemUpdateControl *c, NsSystemUpdateProgress *out) |
GetReceiveProgress. More... | |
Result | nssuControlApplyReceivedUpdate (NsSystemUpdateControl *c) |
ApplyReceivedUpdate. More... | |
Result | nssuControlGetReceivedEulaDataSize (NsSystemUpdateControl *c, const char *path, u64 *filesize) |
Gets the filesize for the specified ReceivedEulaData. More... | |
Result | nssuControlGetReceivedEulaData (NsSystemUpdateControl *c, const char *path, void *buffer, size_t size, u64 *filesize) |
Gets the specified ReceivedEulaData. More... | |
Result | nssuControlSetupToReceiveSystemUpdate (NsSystemUpdateControl *c) |
Does setup for ReceiveSystemUpdate by using the same nim cmds as nssuDestroySystemUpdateTask. More... | |
Result | nssuControlRequestCheckLatestUpdateIncludesRebootlessUpdate (NsSystemUpdateControl *c, AsyncValue *a) |
RequestCheckLatestUpdateIncludesRebootlessUpdate. More... | |
NS services IPC wrapper.
enum NsLatestSystemUpdate |
enum NsShellEvent |
Result nsCalculateApplicationApplyDeltaRequiredSize | ( | u64 | application_id, |
NcmStorageId * | storage_id, | ||
s64 * | size | ||
) |
CalculateApplicationApplyDeltaRequiredSize.
[in] | application_id | ApplicationId. |
[out] | storage_id | Output NcmStorageId. |
[out] | size | Output size. |
Result nsCalculateApplicationDownloadRequiredSize | ( | u64 | application_id, |
NcmStorageId * | storage_id, | ||
s64 * | size | ||
) |
CalculateApplicationApplyDeltaRequiredSize.
[in] | application_id | ApplicationId. |
[out] | storage_id | Output NcmStorageId. |
[out] | size | Output size. |
Result nsCalculateApplicationOccupiedSize | ( | u64 | application_id, |
NsApplicationOccupiedSize * | out | ||
) |
CalculateApplicationOccupiedSize.
[in] | application_id | ApplicationId. |
[out] | out | NsApplicationOccupiedSize |
CancelApplicationApplyDelta.
[in] | application_id | ApplicationId. |
CancelApplicationDownload.
[in] | application_id | ApplicationId. |
Result nsCanDeliverApplication | ( | const NsApplicationDeliveryInfo * | info0, |
s32 | count0, | ||
const NsApplicationDeliveryInfo * | info1, | ||
s32 | count1, | ||
bool * | out | ||
) |
CanDeliverApplication.
[in] | info0 | First input array of NsApplicationDeliveryInfo. |
[in] | count0 | Size of the info0 array in entries. Must be value <=1, when 0 this will return 0 with out set to 0. |
[in] | info1 | Second input array of NsApplicationDeliveryInfo. |
[in] | count1 | Size of the info1 array in entries. Must be value 1. |
[out] | out | Output flag. |
CheckApplicationLaunchVersion.
[in] | application_id | ApplicationId. |
Result nsCheckSdCardMountStatus | ( | void | ) |
CheckSdCardMountStatus.
Result nsCleanupUnavailableAddOnContents | ( | u64 | application_id, |
AccountUid | uid | ||
) |
CleanupUnavailableAddOnContents.
[in] | application_id | ApplicationId. |
[in] | uid | AccountUid |
ClearApplicationTerminateResult.
[in] | application_id | ApplicationId. |
Result nsClearTaskStatusList | ( | void | ) |
ClearTaskStatusList.
CommitReceiveApplication.
[in] | application_id | ApplicationId |
Result nsCompareApplicationDeliveryInfo | ( | const NsApplicationDeliveryInfo * | info0, |
s32 | count0, | ||
const NsApplicationDeliveryInfo * | info1, | ||
s32 | count1, | ||
s32 * | out | ||
) |
Both NsApplicationDeliveryInfo are validated, then the application_version in the first/second NsApplicationDeliveryInfo are compared.
[in] | info0 | First input array of NsApplicationDeliveryInfo. |
[in] | count0 | Size of the info0 array in entries. Must be value 1. |
[in] | info1 | Second input array of NsApplicationDeliveryInfo. |
[in] | count1 | Size of the info1 array in entries. Must be value 1. |
[out] | out | Comparison result: -1 for less than, 0 for equal, and 1 for higher than. |
Result nsCompareSystemDeliveryInfo | ( | const NsSystemDeliveryInfo * | info0, |
const NsSystemDeliveryInfo * | info1, | ||
s32 * | out | ||
) |
Both NsSystemDeliveryInfo are validated, then the system_update_meta_version in the first/second NsSystemDeliveryInfo are compared.
[in] | info0 | First NsSystemDeliveryInfo. |
[in] | info1 | Second NsSystemDeliveryInfo. |
[out] | out | Comparison result: -1 for less than, 0 for equal, and 1 for higher than. |
CountApplicationContentMeta.
[in] | application_id | ApplicationId. |
[out] | out | Output count. |
DeleteApplicationCompletely.
[in] | application_id | ApplicationId. |
DeleteApplicationEntity.
[in] | application_id | ApplicationId. |
Result nsDeleteSaveData | ( | FsSaveDataSpaceId | save_data_space_id, |
u64 | save_data_id | ||
) |
DeleteSaveData.
[in] | save_data_space_id | FsSaveDataSpaceId |
[in] | save_data_id | SaveDataId |
Result nsDeleteUserSaveDataAll | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p, |
AccountUid | uid | ||
) |
DeleteUserSaveDataAll.
[in] | p | NsProgressMonitorForDeleteUserSaveDataAll |
[in] | uid | AccountUid |
Result nsDeleteUserSystemSaveData | ( | AccountUid | uid, |
u64 | system_save_data_id | ||
) |
DeleteUserSystemSaveData.
[in] | uid | AccountUid |
[in] | system_save_data_id | SystemSaveDataId |
DisableApplicationAutoDelete.
[in] | application_id | ApplicationId. |
Result nsDisableAutoCommit | ( | void | ) |
DisableAutoCommit.
EnableApplicationAutoDelete.
[in] | application_id | ApplicationId. |
Result nsEnableAutoCommit | ( | void | ) |
EnableAutoCommit.
Result nsEnsureGameCardAccess | ( | void | ) |
EnsureGameCardAccess.
Result nsEstimateRequiredSize | ( | const NcmContentMetaKey * | meta, |
s32 | count, | ||
s64 * | out | ||
) |
EstimateRequiredSize.
[in] | meta | Input array of NcmContentMetaKey. |
[in] | count | Size of the meta array in entries. When less than 1, this will return 0 with out set to 0. |
[out] | out | Output size. |
Result nsEstimateSizeToMove | ( | u8 * | storage_ids, |
s32 | count, | ||
NcmStorageId | storage_id, | ||
u32 | flags, | ||
u64 | application_id, | ||
s64 * | out | ||
) |
EstimateSizeToMove.
[in] | storage_ids | Array of u8 NcmStorageId. |
[in] | count | Size of the storage_ids array in entries. |
[in] | storage_id | storage_id NcmStorageId |
[in] | flags | Flags |
[in] | application_id | ApplicationId. |
[out] | Out | Output value. |
Result nsFormatSdCard | ( | void | ) |
FormatSdCard.
Gets the Service object for IAccountProxyInterface via the cmd for that.
Only available on [3.0.0+].
Result nsGetApplicationControlData | ( | NsApplicationControlSource | source, |
u64 | application_id, | ||
NsApplicationControlData * | buffer, | ||
size_t | size, | ||
u64 * | actual_size | ||
) |
Gets the NsApplicationControlData for the specified application.
[in] | source | Source, official sw uses NsApplicationControlSource_Storage. |
[in] | application_id | ApplicationId. |
[out] | buffer | NsApplicationControlData |
[in] | size | Size of the buffer. |
[out] | actual_size | Actual output size. |
Result nsGetApplicationDeliveryInfo | ( | NsApplicationDeliveryInfo * | info, |
s32 | count, | ||
u64 | application_id, | ||
u32 | attr, | ||
s32 * | total_out | ||
) |
Generates NsApplicationDeliveryInfo for the specified ApplicationId.
[out] | info | Output array of NsApplicationDeliveryInfo. |
[in] | count | Size of the array in entries. |
[in] | application_id | ApplicationId |
[in] | attr | ApplicationDeliveryAttributeTag bitmask. |
[out] | total_out | Total output entries. |
Result nsGetApplicationDeliveryInfoHash | ( | const NsApplicationDeliveryInfo * | info, |
s32 | count, | ||
u8 * | out_hash | ||
) |
This extracts data from the input array for hashing with SHA256, with validation being done when handling each entry.
[in] | info | Input array of NsApplicationDeliveryInfo. |
[in] | count | Size of the array in entries. |
[out] | out_hash | Output 0x20-byte SHA256 hash. |
Result nsGetApplicationDesiredLanguage | ( | NacpStruct * | nacp, |
NacpLanguageEntry ** | langentry | ||
) |
GetApplicationDesiredLanguage.
Selects a NacpLanguageEntry to use from the specified NacpStruct.
[in] | nacp | NacpStruct |
[out] | langentry | NacpLanguageEntry |
Gets the Service object for IApplicationManagerInterface via the cmd for that.
Only available on [3.0.0+], on prior sysvers use nsGetServiceSession_ApplicationManagerInterface.
Result nsGetApplicationRightsOnClient | ( | NsApplicationRightsOnClient * | rights, |
s32 | count, | ||
u64 | application_id, | ||
AccountUid | uid, | ||
u32 | flags, | ||
s32 * | total_out | ||
) |
GetApplicationRightsOnClient.
[out] | rights | Output array of NsApplicationRightsOnClient. |
[in] | count | Size of the rights array in entries. qlaunch uses value 3 for this. |
[in] | application_id | ApplicationId |
[in] | uid | AccountUid, can optionally be all-zero. |
[in] | flags | Flags. Official sw hard-codes this to value 0x3. |
[out] | total_out | Total output entries. |
GetApplicationTerminateResult.
[in] | application_id | ApplicationId. |
[out] | res | Output Result. |
Gets the Service object for IApplicationVersionInterface via the cmd for that.
Only available on [4.0.0+].
Result nsGetApplicationView | ( | NsApplicationView * | views, |
const u64 * | application_ids, | ||
s32 | count | ||
) |
GetApplicationView.
[out] | out | Output array of NsApplicationView. |
[in] | application_ids | Input array of ApplicationIds. |
[in] | count | Size of the input/output arrays in entries. |
Result nsGetApplicationViewDeprecated | ( | NsApplicationViewDeprecated * | views, |
const u64 * | application_ids, | ||
s32 | count | ||
) |
GetApplicationViewDeprecated.
[out] | out | Output array of NsApplicationViewDeprecated. |
[in] | application_ids | Input array of ApplicationIds. |
[in] | count | Size of the input/output arrays in entries. |
Result nsGetApplicationViewDownloadErrorContext | ( | u64 | application_id, |
ErrorContext * | context | ||
) |
GetApplicationViewDownloadErrorContext.
[in] | application_id | ApplicationId |
[out] | context | ErrorContext |
Result nsGetApplicationViewWithPromotionInfo | ( | NsApplicationViewWithPromotionInfo * | out, |
const u64 * | application_ids, | ||
s32 | count | ||
) |
GetApplicationViewWithPromotionInfo.
[out] | out | Output array of NsApplicationViewWithPromotionInfo. |
[in] | application_ids | Input array of ApplicationIds. |
[in] | count | Size of the input/output arrays in entries. |
Gets the Service object for IContentManagementInterface via the cmd for that.
Only available on [3.0.0+].
Gets the Service object for IDocumentInterface via the cmd for that.
Only available on [3.0.0+].
Gets the Service object for IDownloadTaskInterface via the cmd for that.
Only available on [3.0.0+].
Gets the Service object for IDynamicRightsInterface via the cmd for that.
Only available on [6.0.0+].
Gets the Service object for IECommerceInterface via the cmd for that.
Only available on [4.0.0+].
Gets the Service object for IFactoryResetInterface via the cmd for that.
Only available on [3.0.0+].
Result nsGetFreeSpaceSize | ( | NcmStorageId | storage_id, |
s64 * | size | ||
) |
Returns the available storage capacity from content manager services.
[in] | storage_id | NcmStorageId. Must be NcmStorageId_SdCard. |
[out] | size | Pointer to output the free storage size to. |
Result nsGetLastGameCardMountFailureResult | ( | void | ) |
GetLastGameCardMountFailureResult.
Result nsGetLastSdCardFormatUnexpectedResult | ( | void | ) |
GetLastSdCardFormatUnexpectedResult.
Result nsGetPromotionInfo | ( | NsPromotionInfo * | promotion, |
u64 | application_id, | ||
AccountUid | uid | ||
) |
GetPromotionInfo.
[out] | promotion | NsPromotionInfo |
application_id | ApplicationId. | |
[in] | uid | AccountUid |
Gets the Service object for IReadOnlyApplicationControlDataInterface via the cmd for that.
Only available on [5.1.0+].
Gets the Service object for IReadOnlyApplicationRecordInterface via the cmd for that.
Only available on [5.0.0+].
Result nsGetReceiveApplicationProgress | ( | u64 | application_id, |
NsReceiveApplicationProgress * | out | ||
) |
GetReceiveApplicationProgress.
[in] | application_id | ApplicationId |
[out] | out | NsReceiveApplicationProgress |
Result nsGetRequestServerStopper | ( | NsRequestServerStopper * | r | ) |
Opens a NsRequestServerStopper.
[out] | r | NsRequestServerStopper |
Result nsGetSendApplicationProgress | ( | u64 | application_id, |
NsSendApplicationProgress * | out | ||
) |
GetSendApplicationProgress.
[in] | application_id | ApplicationId |
[out] | out | NsSendApplicationProgress |
Result nsGetStorageSize | ( | NcmStorageId | storage_id, |
s64 * | total_space_size, | ||
s64 * | free_space_size | ||
) |
Temporarily mounts the specified fs ContentStorage, then uses fs GetTotalSpaceSize/GetFreeSpaceSize with that mounted ContentStorage.
[in] | storage_id | NcmStorageId, must be NcmStorageId_BuiltInUser or NcmStorageId_SdCard. |
[out] | total_space_size | Output from GetTotalSpaceSize. |
[out] | free_space_size | Output from GetFreeSpaceSize. |
Result nsGetSystemDeliveryInfo | ( | NsSystemDeliveryInfo * | info | ) |
Generates a NsSystemDeliveryInfo using the currently installed SystemUpdate meta.
[out] | info | NsSystemDeliveryInfo |
Result nsGetTotalSpaceSize | ( | NcmStorageId | storage_id, |
s64 * | size | ||
) |
Returns the total storage capacity (used + free) from content manager services.
[in] | storage_id | NcmStorageId. Must be NcmStorageId_SdCard. |
[out] | size | Pointer to output the total storage size to. |
Result nsHasAllContentsToDeliver | ( | const NsApplicationDeliveryInfo * | info, |
s32 | count, | ||
bool * | out | ||
) |
HasAllContentsToDeliver.
[in] | info | Input array of NsApplicationDeliveryInfo. |
[in] | count | Size of the array in entries. Must be value 1. |
[out] | out | Output flag. |
IsAnyApplicationEntityInstalled.
[in] | application_id | ApplicationId. |
[out] | out | Output flag. |
Result nsIsAnyApplicationRunning | ( | bool * | out | ) |
IsAnyApplicationRunning.
[out] | out | Output flag. |
Result nsIsApplicationEntityMovable | ( | u64 | application_id, |
NcmStorageId | storage_id, | ||
bool * | out | ||
) |
IsApplicationEntityMovable.
[in] | application_id | ApplicationId. |
[in] | storage_id | NcmStorageId |
[out] | out | Output flag. |
IsApplicationUpdateRequested.
[in] | application_id | ApplicationId. |
[out] | flag | Output flag, indicating whether out is valid. |
[out] | out | Output value. |
Result nsIsGameCardInserted | ( | bool * | out | ) |
IsGameCardInserted.
[out] | out | Output flag. |
Result nsListApplicationContentMetaStatus | ( | u64 | application_id, |
s32 | index, | ||
NsApplicationContentMetaStatus * | list, | ||
s32 | count, | ||
s32 * | out_entrycount | ||
) |
Gets an listing of NsApplicationContentMetaStatus.
[in] | application_id | ApplicationId. |
[in] | index | Starting entry index. |
[out] | list | Output array of NsApplicationContentMetaStatus. |
[in] | count | Size of the list array in entries. |
[out] | out_entrycount | Total output entries. |
Result nsListApplicationIcon | ( | AsyncValue * | a, |
NsApplicationControlSource | source, | ||
const u64 * | application_ids, | ||
s32 | count, | ||
void * | buffer, | ||
size_t | size | ||
) |
ListApplicationIcon.
[out] | a | AsyncValue |
[in] | source | Source. |
[in] | application_ids | Input array of ApplicationIds. |
[in] | count | Size of the application_ids array in entries. |
buffer | 0x1000-byte aligned buffer for TransferMemory. This buffer must not be accessed until the async operation finishes. | |
[in] | size | 0x1000-byte aligned buffer size for TransferMemory. This must be at least: 0x4 + count*sizeof(u64) + count*sizeof(NsApplicationControlData::icon) + count*sizeof(u64) + sizeof(NsApplicationControlData). |
ListApplicationIdOnGameCard.
[out] | application_ids | Output array of ApplicationIds. |
[in] | count | Size of the application_ids array in entries. |
[out] | total_out | Total output entries. |
Result nsListApplicationRecord | ( | NsApplicationRecord * | records, |
s32 | count, | ||
s32 | entry_offset, | ||
s32 * | out_entrycount | ||
) |
Gets an listing of NsApplicationRecord.
[out] | records | Output array of NsApplicationRecord. |
[in] | count | Size of the records array in entries. |
[in] | entry_offset | Starting entry offset. |
[out] | out_entrycount | Total output entries. |
Result nsListApplicationTitle | ( | AsyncValue * | a, |
NsApplicationControlSource | source, | ||
const u64 * | application_ids, | ||
s32 | count, | ||
void * | buffer, | ||
size_t | size | ||
) |
ListApplicationTitle.
[out] | a | AsyncValue |
[in] | source | Source, qlaunch uses NsApplicationControlSource_Storage. |
[in] | application_ids | Input array of ApplicationIds. |
[in] | count | Size of the application_ids array in entries. |
buffer | 0x1000-byte aligned buffer for TransferMemory. This buffer must not be accessed until the async operation finishes. | |
[in] | size | 0x1000-byte aligned buffer size for TransferMemory. This must be at least: count*sizeof(NacpLanguageEntry) + count*sizeof(u64) + count*sizeof(NsApplicationControlData). |
Result nsListContentMetaKeyToDeliverApplication | ( | NcmContentMetaKey * | meta, |
s32 | meta_count, | ||
s32 | meta_index, | ||
const NsApplicationDeliveryInfo * | info, | ||
s32 | info_count, | ||
s32 * | total_out | ||
) |
ListContentMetaKeyToDeliverApplication.
[out] | meta | Output array of NcmContentMetaKey. |
[in] | meta_count | Size of the meta array in entries. Must be at least 1, only 1 entry will be returned. |
[in] | meta_index | Meta entry index. An output NcmContentMetaKey will not be returned when this value is larger than 0. |
[in] | info | Input array of NsApplicationDeliveryInfo. |
[in] | info_count | Size of the info array in entries. Must be value 1. |
[out] | total_out | Total output entries. |
Result nsListDownloadTaskStatus | ( | NsDownloadTaskStatus * | tasks, |
s32 | count, | ||
s32 * | total_out | ||
) |
ListDownloadTaskStatus.
[out] | tasks | Output array of NsDownloadTaskStatus. |
[in] | count | Size of the tasks array in entries. A maximum of 0x100 tasks can be stored in state. |
[out] | total_out | Total output entries. |
Result nsListNotCommittedContentMeta | ( | NcmContentMetaKey * | meta, |
s32 | count, | ||
u64 | application_id, | ||
s32 | unk, | ||
s32 * | total_out | ||
) |
ListNotCommittedContentMeta.
[out] | meta | Output array of NcmContentMetaKey. |
[in] | count | Size of the meta array in entries. |
[in] | application_id | ApplicationId |
[in] | unk | Unknown. |
[out] | total_out | Total output entries. |
Result nsMoveApplicationEntity | ( | u64 | application_id, |
NcmStorageId | storage_id | ||
) |
MoveApplicationEntity.
[in] | application_id | ApplicationId. |
[in] | storage_id | NcmStorageId |
Result nsNeedsSystemUpdateToDeliverApplication | ( | const NsApplicationDeliveryInfo * | info, |
s32 | count, | ||
const NsSystemDeliveryInfo * | sys_info, | ||
bool * | out | ||
) |
After validation etc, this sets the output bool by comparing system-version fields in the NsSystemDeliveryInfo / info-array and with a state field.
[in] | info | Input array of NsApplicationDeliveryInfo. |
[in] | count | Size of the info array in entries. Must be value 1. |
[in] | sys_info | NsSystemDeliveryInfo |
[out] | out | Output flag. |
Result nsNeedsSystemUpdateToFormatSdCard | ( | bool * | out | ) |
NeedsSystemUpdateToFormatSdCard.
[out] | out | Output flag. |
Result nsProgressAsyncResultCancel | ( | NsProgressAsyncResult * | a | ) |
Cancels the async operation.
a | NsProgressAsyncResult |
void nsProgressAsyncResultClose | ( | NsProgressAsyncResult * | a | ) |
Close a NsProgressAsyncResult.
a | NsProgressAsyncResult |
Result nsProgressAsyncResultGet | ( | NsProgressAsyncResult * | a | ) |
Gets the Result.
a | NsProgressAsyncResult |
Result nsProgressAsyncResultGetDetailResult | ( | NsProgressAsyncResult * | a | ) |
GetDetailResult.
a | NsProgressAsyncResult |
Result nsProgressAsyncResultGetErrorContext | ( | NsProgressAsyncResult * | a, |
ErrorContext * | context | ||
) |
Gets the ErrorContext.
a | NsProgressAsyncResult | |
[out] | context | ErrorContext |
Result nsProgressAsyncResultGetProgress | ( | NsProgressAsyncResult * | a, |
void * | buffer, | ||
size_t | size | ||
) |
Gets the progress.
a | NsProgressAsyncResult | |
[out] | buffer | Output buffer. |
[in] | size | Output buffer size. |
Result nsProgressAsyncResultWait | ( | NsProgressAsyncResult * | a, |
u64 | timeout | ||
) |
Waits for the async operation to finish using the specified timeout.
a | NsProgressAsyncResult | |
[in] | timeout | Timeout in nanoseconds. UINT64_MAX for no timeout. |
Result nsProgressMonitorForDeleteUserSaveDataAllClose | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p | ) |
Close a NsProgressMonitorForDeleteUserSaveDataAll.
When initialized this will use nsProgressMonitorForDeleteUserSaveDataAllIsFinished, throwing errors on failure / when the operation isn't finished (without closing the object).
p | NsProgressMonitorForDeleteUserSaveDataAll |
Result nsProgressMonitorForDeleteUserSaveDataAllGetProgress | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p, |
NsProgressForDeleteUserSaveDataAll * | progress | ||
) |
GetProgress.
p | NsProgressMonitorForDeleteUserSaveDataAll | |
[out] | progress | Output NsProgressForDeleteUserSaveDataAll. |
Result nsProgressMonitorForDeleteUserSaveDataAllGetResult | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p | ) |
GetResult.
p | NsProgressMonitorForDeleteUserSaveDataAll |
Result nsProgressMonitorForDeleteUserSaveDataAllGetSystemEvent | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p, |
Event * | out_event | ||
) |
Result nsProgressMonitorForDeleteUserSaveDataAllIsFinished | ( | NsProgressMonitorForDeleteUserSaveDataAll * | p, |
bool * | out | ||
) |
IsFinished.
p | NsProgressMonitorForDeleteUserSaveDataAll | |
[out] | out | Whether the operation finished. |
Result nsRequestApplicationUpdateInfo | ( | AsyncValue * | a, |
u64 | application_id | ||
) |
RequestApplicationUpdateInfo.
[out] | a | AsyncValue. The data that can be read from this is u8 ApplicationUpdateInfo. qlaunch just checks whether this is 0. |
application_id | ApplicationId. |
Result nsRequestCheckGameCardRegistration | ( | AsyncResult * | a, |
u64 | application_id | ||
) |
RequestCheckGameCardRegistration.
[out] | a | AsyncResult |
[in] | application_id | ApplicationId. |
Result nsRequestDownloadApplicationControlData | ( | AsyncResult * | a, |
u64 | application_id | ||
) |
RequestDownloadApplicationControlData.
[out] | a | AsyncResult |
[in] | application_id | ApplicationId. |
Result nsRequestDownloadApplicationPrepurchasedRights | ( | AsyncResult * | a, |
u64 | application_id | ||
) |
RequestDownloadApplicationPrepurchasedRights.
[out] | a | AsyncResult |
[in] | application_id | ApplicationId. |
Result nsRequestDownloadTaskList | ( | void | ) |
RequestDownloadTaskList.
Result nsRequestDownloadTaskListData | ( | AsyncValue * | a | ) |
RequestDownloadTaskListData.
[out] | a | AsyncValue |
Result nsRequestEnsureDownloadTask | ( | AsyncResult * | a | ) |
RequestEnsureDownloadTask.
[out] | a | AsyncResult |
Result nsRequestGameCardRegistrationGoldPoint | ( | AsyncValue * | a, |
AccountUid | uid, | ||
u64 | application_id | ||
) |
RequestGameCardRegistrationGoldPoint.
[out] | a | AsyncValue. The data that can be read from this is 4-bytes. |
[in] | uid | AccountUid |
[in] | application_id | ApplicationId. |
Result nsRequestLinkDevice | ( | AsyncResult * | a, |
AccountUid | uid | ||
) |
RequestLinkDevice.
[out] | a | AsyncResult |
[in] | uid | AccountUid |
Result nsRequestNoDownloadRightsErrorResolution | ( | AsyncValue * | a, |
u64 | application_id | ||
) |
RequestNoDownloadRightsErrorResolution.
[out] | a | AsyncValue. The data that can be read from this is u8 NoDownloadRightsErrorResolution. |
application_id | ApplicationId. |
Result nsRequestReceiveApplication | ( | AsyncResult * | a, |
u32 | addr, | ||
u16 | port, | ||
u64 | application_id, | ||
const NcmContentMetaKey * | meta, | ||
s32 | count, | ||
NcmStorageId | storage_id | ||
) |
RequestReceiveApplication.
[out] | a | AsyncResult |
[in] | addr | Server IPv4 address. |
[in] | port | Socket port. qlaunch uses value 55556. |
[in] | application_id | ApplicationId |
[in] | meta | Input array of NcmContentMetaKey. The NcmContentMetaType must match NcmContentMetaType_Patch. |
[in] | count | Size of the meta array in entries. |
[in] | storage_id | NcmStorageId. qlaunch uses NcmStorageId_Any. |
Result nsRequestRegisterGameCard | ( | AsyncResult * | a, |
AccountUid | uid, | ||
u64 | application_id, | ||
s32 | inval | ||
) |
RequestRegisterGameCard.
[out] | a | AsyncResult |
[in] | uid | AccountUid |
[in] | application_id | ApplicationId. |
[in] | inval | Input value. |
Result nsRequestResolveNoDownloadRightsError | ( | AsyncValue * | a, |
u64 | application_id | ||
) |
RequestResolveNoDownloadRightsError.
[out] | a | AsyncValue. The data that can be read from this is u8 NoDownloadRightsErrorResolution. |
application_id | ApplicationId. |
Result nsRequestSendApplication | ( | AsyncResult * | a, |
u32 | addr, | ||
u16 | port, | ||
u64 | application_id, | ||
const NcmContentMetaKey * | meta, | ||
s32 | count | ||
) |
RequestSendApplication.
[out] | a | AsyncResult |
[in] | addr | Client IPv4 address. |
[in] | port | Socket port. qlaunch uses value 55556. |
[in] | application_id | ApplicationId |
[in] | meta | Input array of NcmContentMetaKey. The NcmContentMetaType must match NcmContentMetaType_Patch. |
[in] | count | Size of the meta array in entries. |
void nsRequestServerStopperClose | ( | NsRequestServerStopper * | r | ) |
Close a NsRequestServerStopper.
r | NsRequestServerStopper |
Result nsRequestSyncRights | ( | AsyncResult * | a | ) |
Result nsRequestUnlinkDevice | ( | AsyncResult * | a, |
AccountUid | uid | ||
) |
RequestUnlinkDevice.
[out] | a | AsyncResult |
[in] | uid | AccountUid |
Result nsRequestUpdateApplication2 | ( | AsyncResult * | a, |
u64 | application_id | ||
) |
RequestUpdateApplication2.
[out] | a | AsyncResult |
[in] | application_id | ApplicationId. |
Result nsRequestVerifyAddOnContentsRights | ( | NsProgressAsyncResult * | a, |
u64 | application_id | ||
) |
RequestVerifyAddOnContentsRights.
[out] | a | NsProgressAsyncResult |
[in] | application_id | ApplicationId. |
Result nsRequestVerifyApplication | ( | NsProgressAsyncResult * | a, |
u64 | application_id, | ||
u32 | unk, | ||
void * | buffer, | ||
size_t | size | ||
) |
RequestVerifyApplication.
[out] | a | NsProgressAsyncResult. The data available with nsProgressAsyncResultGetProgress is basically the same as NsSystemUpdateProgress. |
[in] | application_id | ApplicationId. |
[in] | unk | Unknown. A default value of 0x7 can be used (which is what qlaunch uses). Only used on [5.0.0+]. |
buffer | 0x1000-byte aligned buffer for TransferMemory. This buffer must not be accessed until the async operation finishes. | |
[in] | size | 0x1000-byte aligned buffer size for TransferMemory. qlaunch uses size 0x100000. |
Result nsResetToFactorySettings | ( | void | ) |
ResetToFactorySettings.
Result nsResetToFactorySettingsForRefurbishment | ( | void | ) |
ResetToFactorySettingsForRefurbishment.
Result nsResetToFactorySettingsWithoutUserSaveData | ( | void | ) |
ResetToFactorySettingsWithoutUserSaveData.
Result nsResetToFactorySettingsWithPlatformRegion | ( | void | ) |
ResetToFactorySettingsWithPlatformRegion.
Result nsResetToFactorySettingsWithPlatformRegionAuthentication | ( | void | ) |
ResetToFactorySettingsWithPlatformRegionAuthentication.
Result nsResumeAll | ( | void | ) |
ResumeAll.
ResumeApplicationApplyDelta.
[in] | application_id | ApplicationId. |
ResumeApplicationDownload.
[in] | application_id | ApplicationId. |
Result nsSelectLatestSystemDeliveryInfo | ( | const NsSystemDeliveryInfo * | sys_list, |
s32 | sys_count, | ||
const NsSystemDeliveryInfo * | base_info, | ||
const NsApplicationDeliveryInfo * | app_list, | ||
s32 | app_count, | ||
s32 * | index | ||
) |
SelectLatestSystemDeliveryInfo.
[in] | sys_list | Input array of NsSystemDeliveryInfo. |
[in] | sys_count | Size of the sys_list array in entries. |
[in] | base_info | NsSystemDeliveryInfo |
[in] | app_list | Input array of NsApplicationDeliveryInfo. This can be NULL. |
[in] | app_count | Size of the app_list array in entries. This can be 0. |
[out] | index | Output index for the selected entry in sys_list, -1 if none found. |
SetApplicationTerminateResult.
[in] | application_id | ApplicationId. |
[in] | res | Result. |
Result nssuControlApplyCardUpdate | ( | NsSystemUpdateControl * | c | ) |
ApplyCardUpdate.
c | NsSystemUpdateControl |
Result nssuControlApplyDownloadedUpdate | ( | NsSystemUpdateControl * | c | ) |
ApplyDownloadedUpdate.
c | NsSystemUpdateControl |
Result nssuControlApplyReceivedUpdate | ( | NsSystemUpdateControl * | c | ) |
void nssuControlClose | ( | NsSystemUpdateControl * | c | ) |
Close a NsSystemUpdateControl.
c | NsSystemUpdateControl |
Result nssuControlGetDownloadedEulaData | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
void * | buffer, | ||
size_t | size, | ||
u64 * | filesize | ||
) |
Gets the specified DownloadedEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | buffer | Output buffer. |
[in] | size | Size of the output buffer, must be at least the output size from nssuControlGetDownloadedEulaDataSize. |
[out] | filesize | Output filesize. |
Result nssuControlGetDownloadedEulaDataSize | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
u64 * | filesize | ||
) |
Gets the filesize for the specified DownloadedEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | filesize | Output filesize. |
Result nssuControlGetDownloadProgress | ( | NsSystemUpdateControl * | c, |
NsSystemUpdateProgress * | out | ||
) |
GetDownloadProgress.
c | NsSystemUpdateControl | |
[out] | out | NsSystemUpdateProgress |
Result nssuControlGetPrepareCardUpdateProgress | ( | NsSystemUpdateControl * | c, |
NsSystemUpdateProgress * | out | ||
) |
GetPrepareCardUpdateProgress.
c | NsSystemUpdateControl | |
[out] | out | NsSystemUpdateProgress |
Result nssuControlGetPreparedCardUpdateEulaData | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
void * | buffer, | ||
size_t | size, | ||
u64 * | filesize | ||
) |
Gets the specified PreparedCardUpdateEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | buffer | Output buffer. |
[in] | size | Size of the output buffer, must be at least the output size from nssuControlGetPreparedCardUpdateEulaDataSize. |
[out] | filesize | Output filesize. |
Result nssuControlGetPreparedCardUpdateEulaDataSize | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
u64 * | filesize | ||
) |
Gets the filesize for the specified PreparedCardUpdateEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | filesize | Output filesize. |
Result nssuControlGetReceivedEulaData | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
void * | buffer, | ||
size_t | size, | ||
u64 * | filesize | ||
) |
Gets the specified ReceivedEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | buffer | Output buffer. |
[in] | size | Size of the output buffer, must be at least the output size from nssuControlGetReceivedEulaDataSize. |
[out] | filesize | Output filesize. |
Result nssuControlGetReceivedEulaDataSize | ( | NsSystemUpdateControl * | c, |
const char * | path, | ||
u64 * | filesize | ||
) |
Gets the filesize for the specified ReceivedEulaData.
c | NsSystemUpdateControl | |
[in] | path | EulaData path. |
[out] | filesize | Output filesize. |
Result nssuControlGetReceiveProgress | ( | NsSystemUpdateControl * | c, |
NsSystemUpdateProgress * | out | ||
) |
GetReceiveProgress.
c | NsSystemUpdateControl | |
[out] | out | NsSystemUpdateProgress |
Result nssuControlHasDownloaded | ( | NsSystemUpdateControl * | c, |
bool * | out | ||
) |
Gets whether a network sysupdate was downloaded, with install pending.
c | NsSystemUpdateControl | |
[out] | out | Output flag. |
Result nssuControlHasPreparedCardUpdate | ( | NsSystemUpdateControl * | c, |
bool * | out | ||
) |
HasPreparedCardUpdate.
c | NsSystemUpdateControl | |
[out] | out | Output flag. |
Result nssuControlHasReceived | ( | NsSystemUpdateControl * | c, |
bool * | out | ||
) |
Result nssuControlRequestCheckLatestUpdate | ( | NsSystemUpdateControl * | c, |
AsyncValue * | a | ||
) |
RequestCheckLatestUpdate.
c | NsSystemUpdateControl | |
[out] | a | AsyncValue. The data that can be read from this is u8 NsLatestSystemUpdate. |
Result nssuControlRequestCheckLatestUpdateIncludesRebootlessUpdate | ( | NsSystemUpdateControl * | c, |
AsyncValue * | a | ||
) |
RequestCheckLatestUpdateIncludesRebootlessUpdate.
c | NsSystemUpdateControl | |
[out] | a | AsyncValue |
Result nssuControlRequestDownloadLatestUpdate | ( | NsSystemUpdateControl * | c, |
AsyncResult * | a | ||
) |
RequestDownloadLatestUpdate.
c | NsSystemUpdateControl | |
[out] | a | AsyncResult |
Result nssuControlRequestPrepareCardUpdate | ( | NsSystemUpdateControl * | c, |
AsyncResult * | a | ||
) |
RequestPrepareCardUpdate.
c | NsSystemUpdateControl | |
[out] | a | AsyncResult |
Result nssuControlRequestReceiveSystemUpdate | ( | NsSystemUpdateControl * | c, |
AsyncResult * | a, | ||
u32 | addr, | ||
u16 | port, | ||
NsSystemDeliveryInfo * | info | ||
) |
RequestReceiveSystemUpdate.
c | NsSystemUpdateControl | |
[out] | a | AsyncResult |
[in] | addr | Server IPv4 address. qlaunch uses a local-WLAN addr, however this can be any addr. |
[in] | port | Socket port. qlaunch uses value 55556. |
[in] | info | NsSystemDeliveryInfo |
Result nssuControlSetupCardUpdate | ( | NsSystemUpdateControl * | c, |
void * | buffer, | ||
size_t | size | ||
) |
SetupCardUpdate.
c | NsSystemUpdateControl | |
[in] | buffer | TransferMemory buffer, when NULL this is automatically allocated. |
[in] | size | TransferMemory buffer size, see NSSU_CARDUPDATE_TMEM_SIZE_DEFAULT. |
Result nssuControlSetupCardUpdateViaSystemUpdater | ( | NsSystemUpdateControl * | c, |
void * | buffer, | ||
size_t | size | ||
) |
SetupCardUpdateViaSystemUpdater.
c | NsSystemUpdateControl | |
[in] | buffer | TransferMemory buffer, when NULL this is automatically allocated. |
[in] | size | TransferMemory buffer size, see NSSU_CARDUPDATE_TMEM_SIZE_DEFAULT. |
Result nssuControlSetupToReceiveSystemUpdate | ( | NsSystemUpdateControl * | c | ) |
Does setup for ReceiveSystemUpdate by using the same nim cmds as nssuDestroySystemUpdateTask.
c | NsSystemUpdateControl |
Result nssuDestroySystemUpdateTask | ( | void | ) |
This uses nim ListSystemUpdateTask, then when a task is returned uses it with DestroySystemUpdateTask.
Result nssuGetBackgroundNetworkUpdateState | ( | NsBackgroundNetworkUpdateState * | out | ) |
Gets the NsBackgroundNetworkUpdateState.
[out] | out | NsBackgroundNetworkUpdateState |
Result nssuGetSendSystemUpdateProgress | ( | NsSystemUpdateProgress * | out | ) |
GetSendSystemUpdateProgress.
[out] | out | NsSystemUpdateProgress |
Gets an Event which can be signaled by nssuNotifySystemUpdateForContentDelivery.
[out] | out_event | Output Event with autoclear=false. |
Result nssuNotifyBackgroundNetworkUpdate | ( | const NcmContentMetaKey * | key | ) |
This checks whether a sysupdate is needed with the input NcmContentMetaKey using NCM commands, if not this will just return 0.
Otherwise, this will then run code which is identical to nssuRequestBackgroundNetworkUpdate.
[in] | key | NcmContentMetaKey |
Result nssuNotifyExFatDriverRequired | ( | void | ) |
Uses nim ListSystemUpdateTask, then uses the task with DestroySystemUpdateTask if it exists.
Then this runs ExFat handling, updates state, and sets the same state flag as nssuRequestBackgroundNetworkUpdate.
Result nssuOpenSystemUpdateControl | ( | NsSystemUpdateControl * | c | ) |
Opens a NsSystemUpdateControl.
[out] | c | NsSystemUpdateControl |
Result nssuPrepareShutdown | ( | void | ) |
This does shutdown preparation.
Result nssuRequestBackgroundNetworkUpdate | ( | void | ) |
RequestBackgroundNetworkUpdate.
Result nssuRequestSendSystemUpdate | ( | AsyncResult * | a, |
u32 | addr, | ||
u16 | port, | ||
NsSystemDeliveryInfo * | info | ||
) |
RequestSendSystemUpdate.
[out] | a | AsyncResult |
[in] | addr | Client IPv4 address. qlaunch uses a local-WLAN addr. |
[in] | port | Socket port. qlaunch uses value 55556. |
[in] | info | NsSystemDeliveryInfo |
TouchApplication.
[in] | application_id | ApplicationId. |
Result nsTriggerDynamicCommitEvent | ( | void | ) |
TriggerDynamicCommitEvent.
Result nsTryCommitCurrentApplicationDownloadTask | ( | void | ) |
TryCommitCurrentApplicationDownloadTask.
Result nsUnregisterNetworkServiceAccount | ( | AccountUid | uid | ) |
UnregisterNetworkServiceAccount.
[in] | uid | AccountUid |
Result nsUnregisterNetworkServiceAccountWithUserSaveDataDeletion | ( | AccountUid | uid | ) |
UnregisterNetworkServiceAccountWithUserSaveDataDeletion.
[in] | uid | AccountUid |
Result nsVerifyDeliveryProtocolVersion | ( | const NsSystemDeliveryInfo * | info | ) |
VerifyDeliveryProtocolVersion.
[in] | info | NsSystemDeliveryInfo |