# MB_SetSendVolatCallback

## Syntax

      #include <nitro/mb/mb_gameinfo.h>

      void
      MB_SetSendVolatCallback( MBSendVolatCallbackFunc callback, u32 timming );

## Arguments

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

## Return Values

None.

## Description

This function 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_TIMMING_BEFORE,
        MB_SEND_VOLAT_CALLBACK_TIMMING_AFTER
    };

## See Also

`MB_SetUserVolatData, MBGameInfo`

## Revision History

2005/01/18 Initial version.

CONFIDENTIAL