MB_SetSendVolatCallback

Syntax

#include <nitro/mb/mb_gameinfo.h>
void MB_SetSendVolatCallback( MBSendVolatCallbackFunc callback, u32 timing );

Arguments

callback Sets the callback function to invoke when a beacon is used to send the MBGameInfoVolatile from the parent's game information.
timing Configures the timing called by the callback function.
MB_SEND_VOLAT_CALLBACK_TIMING_BEFORE The callback is called immediately before the send configuration of the beacon stored in MBGameInfoVolatile.
MB_SEND_VOLAT_CALLBACK_TIMING_AFTER The callback is called immediately after the send configuration of the beacon stored in MBGameInfoVolatile.

Return Values

None.

Description

Can configure the callback called when sending MBGameInfoVolatile by a beacon. (MBGameInfoVolatile is part of the MB parent's game information and changes constantly.) User data configured with the MB_SetUserVolatData function is also included here, and the next data to be sent can be configured by calling the MB_SetUserVolatData function in this callback.

/* Callback function */
 typedef void (*MBSendVolatCallbackFunc)( u32 ggid );
/* Callback timing */
enum
{
    MB_SEND_VOLAT_CALLBACK_TIMING_BEFORE,
    MB_SEND_VOLAT_CALLBACK_TIMING_AFTER
};

See Also

MB_SetUserVolatData
MBGameInfo

Revision History

2009/04/10 Corrected a typo (changed "timming" to "timing").
2005/01/18 Initial version.


CONFIDENTIAL