#include <dwc.h>typedef void(*) DWCNdCallback(DWCNdCallbackReason reason,
DWCNdError error,
int servererror);| Indicates the type of process that was running when the notification callback function was called. | |
| Indicates the error generated when the notification callback function was called. | |
| Error code notified from the server. Takes -1 if the error value is not DWC_ND_ERROR_DLSERVER. |
None.
This is the type for notification callback functions that are called by the Download library. It communicates the result of the asynchronous process. Handle errors using what's more convenient: either the error parameter of this callback or the value returned by the DWC_NdProcess function. If DWC_NdProcess's return value is DWC_ND_STATE_COMPLETE, the error parameter of this callback becomes DWC_ND_ERROR_NONE. If DWC_NdProcess's return value is DWC_ND_STATE_ERROR, the error parameter of this callback takes something other than DWC_ND_ERROR_NONE. In this case, get error information using the DWC_GetLastErrorEx function, display the error code and error message that corresponds to the error process type, and quit the library.
Download library functions can be called from inside this callback.
DWC_NdInitAsync
DWC_NdCleanupAsync
CONFIDENTIAL