DWCLoadFromServerCallback

Syntax

#include <dwc.h>

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

Description

This function is called at the completion of loading from the data storage server.

If an attempt is made to load only non-existent keys or those saved by a friend using the DWC_SavePrivateDataAsync function, success is set to FALSE. 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.

Do not call the DWC_LogoutFromStorageServer function from inside this callback.

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 if 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_LogoutFromStorageServer, DWC_LoadOwnDataAsync, DWC_LoadOthersDataAsync

Revision History

2007/05/18 Added a precaution about calling the DWC_LogoutFromStorageServer function.
2005/12/16 Added a description for the value of the success argument and the callback set function.
2005/11/01 Initial version.


CONFIDENTIAL