#include <dwc.h>
typedef void(*) DWCLoadFromServerCallback(BOOL success,
int index,
char *data,
int len,
void *param);success |
If TRUE, communication succeeded. If FALSE, there was a communication error. |
index |
Friend roster index of the party whose data to load. Value is -1 if it is the local host or if the other party ceases to be a friend before loading completes. |
data |
Loaded data (key/value pairs string). |
len |
Load data length. |
param |
Parameter for the callback specified by DWC_LoadOwnPrivateDataAsync or DWC_LoadOthersDataAsync. |
None.
If the key specified by the load function does not exist, or if you attempt to read a key saved by another player using the DWC_SavePrivateDataAsync function, success will be TRUE, data will be "" (an empty string), and len will be 0.
This callback function can be set using DWC_SetStorageServerCallback.
Do not call the DWC_LogoutFromStorageServer function from inside a callback.
DWC_LoadOwnDataAsync with DWC_LoadOwnPrivateDataAsync in line with the deprecation of the DWC_LoadOwnDataAsync function.For the changelog prior to 5.1 PR2, click here.
CONFIDENTIAL