DWCLoadFromServerCallback

C Specification

#include <dwc.h>

typedef void (*DWCLoadFromServerCallback)(
                             BOOL  success,
                             int   index,
                             char* data,
                             int   len,
                             void* param );

Description

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.

Arguments

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.

Return Values

None.

See Also

DWC_SetStorageServerCallback, DWC_LoadOwnDataAsync, DWC_LoadOthersDataAsync

Revision History

12/16/2005 Added a description of the value of the "success" argument and the callback set function.
11/01/2005 Initial version