Download - Constants

Definition


#include <dwc.h>

#define   DWC_ND_FILENAME_LEN                     32
#define   DWC_ND_FILEATTR_LEN                     10
#define   DWC_ND_FILEEXPLSIN_LEN                  50
#define   DWC_ND_THREAD_PRIORITY                  17
#define   DWC_ND_LENGTH_GAMECODE                  4
#define   DWC_ND_LENGTH_PASSWORD                  16

enum DWCNdState {
    DWC_ND_STATE_NOTINITIALIZED
    DWC_ND_STATE_READY
    DWC_ND_STATE_BUSY
    DWC_ND_STATE_COMPLETE
    DWC_ND_STATE_ERROR
    DWC_ND_STATE_MAX
};

enum DWCNdError {
    DWC_ND_ERROR_NONE
    DWC_ND_ERROR_ALLOC
    DWC_ND_ERROR_STATE
    DWC_ND_ERROR_HTTP
    DWC_ND_ERROR_BUFFULL
    DWC_ND_ERROR_PARAM
    DWC_ND_ERROR_CANCELED
    DWC_ND_ERROR_DLSERVER
    DWC_ND_ERROR_FATAL
    DWC_ND_ERROR_MAX
};

enum DWCNdCallbackReason {
    DWC_ND_CBREASON_INITIALIZE
    DWC_ND_CBREASON_GETFILELISTNUM
    DWC_ND_CBREASON_GETFILELIST
    DWC_ND_CBREASON_GETFILE
    DWC_ND_CBREASON_CLEANUP
    DWC_ND_CBREASON_MAX
};

		

Constants

DWC_ND_FILENAME_LEN Maximum string length for the file name specified when getting a file.
DWC_ND_FILEATTR_LEN Maximum string length for the attribute specified before getting a file.
DWC_ND_FILEEXPLSIN_LEN Maximum string length of UTF16BE format descriptive text being specified for the file.
DWC_ND_THREAD_PRIORITY Thread priority used in the download library.
DWC_ND_LENGTH_GAMECODE Byte length of DL game code (gamecd).
DWC_ND_LENGTH_PASSWORD Byte length of the secret key (passwd).

Download Library State

DWC_ND_STATE_NOTINITIALIZED Download library not initialized.
DWC_ND_STATE_READY Initialization is complete, and other download library functions can be called.
DWC_ND_STATE_BUSY Currently running asynchronous processing.
DWC_ND_STATE_COMPLETE Asynchronous processing has completed normally.
DWC_ND_STATE_ERROR An error has occurred during asynchronous processing and the process has ended.
DWC_ND_STATE_MAX

Download Library Error Enumerator

DWC_ND_ERROR_NONE The executing process has completed.
DWC_ND_ERROR_ALLOC Memory allocation failed.
DWC_ND_ERROR_STATE Function has been called in a state in which it cannot be called.
DWC_ND_ERROR_HTTP An HTTP communications error occurred.
DWC_ND_ERROR_BUFFULL (Internal error) Insufficient space in Download buffer.
DWC_ND_ERROR_PARAM Error due to an invalid parameter.
DWC_ND_ERROR_CANCELED Process cancellation has finished.
DWC_ND_ERROR_DLSERVER Server returned an error code.
DWC_ND_ERROR_FATAL Undefined fatal error has occurred.
DWC_ND_ERROR_MAX

Download Library Progress Enumerator

DWC_ND_CBREASON_INITIALIZE Notification function was called while the Download library was initializing.
DWC_ND_CBREASON_GETFILELISTNUM Notification callback was called while the total number of downloadable files was being downloaded.
DWC_ND_CBREASON_GETFILELIST Notification callback was called while the file information list was being downloaded.
DWC_ND_CBREASON_GETFILE Notification callback was called while a file was being downloaded.
DWC_ND_CBREASON_CLEANUP Called when cleanup was finished.
DWC_ND_CBREASON_MAX

CONFIDENTIAL