#include <dwc.h>
typedef void (*DWCLoadFromServerCallback)(
BOOL success,
int index,
char* data,
int len,
void* param );
This function is called when loading from the data storage server finishes.
success
is set to FALSE if an attempt is made to load only non-existent keys or keys saved by a friend using the DWC_SavePrivateDataAsync
function. However, if only some of the specified keys fall into this category, they will not be included in the data, and the argument will be set to TRUE.
This callback function can be set using DWC_SetStorageServerCallback
.
success |
TRUE: Load succeeded, FALSE: Load failed. |
index |
Friend roster index of the player maintaining the load source data. -1 results if self or no longer a friend before load completes. |
data |
Loaded data (key/value character string pair). |
len |
Load data length. |
param |
Parameter for the callback specified by DWC_LoadOwnDataAsync or DWC_LoadOthersDataAsync. |
None.
DWC_SetStorageServerCallback, DWC_LoadOwnDataAsync, DWC_LoadOthersDataAsync
12/16/2005 Added a description of the value of the "success" argument and the callback set function.
11/01/2005 Initial version