#define NWC24_DL_INTERVAL_MAX (60*24*7)
#define NWC24_DL_INTERVAL_MIN (60*6)
#define NWC24_DL_INTERVAL_MIN_2ND (60*24)
#define NWC24_DL_INTERVAL_DEFAULT (60*24*2)
#include <revolution/nwc24.h>
NWC24Err NWC24SetDlInterval( NWC24DlTask* taskPublic, u16 min );
Sets the update check interval for the download task.
In general, the application can set a value in the range of NWC24_DL_INTERVAL_MIN to NWC24_DL_INTERVAL_MAX, but there are restrictions based on the number of registered tasks and the priority. For details, see NWC24SetDlPriority and the WiiConnect24 Programming Guidelines.
If a value is set that is different from the value that had already been set, the next scheduled download time will also be reset.
Note that the check for updates only takes place during this interval.
NB: The interval can be made extremely short to confirm operations during development, but do not make the value less than [the number of registered download tasks] times two minutes. No tasks will be run evenly unless you maintain the two-minute minimum required for a single download task. For details, see the Schedule Description.
taskPublic |
Pointer to the download task. |
min |
The startup interval for the download task (in minutes) Must be set to a value between NWC24_DL_INTERVAL_MIN and NWC24_DL_INTERVAL_MAX. If making use of two download tasks, set the interval for the second task to a value of at least NWC24_DL_INTERVAL_MIN_2ND.
|
NWC24_OK: Ended normally.
NWC24_ERR_LIB_NOT_OPENED: The library has not been opened.
NWC24_ERR_PROTECTED: The download task is write protected.
NWC24_ERR_INVALID_VALUE: The value of taskPublic is NULL, the download task is invalid, or the value of min exceeds the range that can be set.
NWC24GetDlInterval NWC24SetDlPriority
2007/11/26 Noted conditions for shortening the download interval.
2007/10/03 Added an explanation for the definition and range of values for NWC24_DL_INTERVAL_MIN_2ND.
2006/12/05 Initial version.
CONFIDENTIAL