1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<TITLE>MB_SetSendVolatCallback</TITLE> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MB_SetSendVolatCallback <IMG src="../../image/NTR.gif" width="24" height="12" border="0" align=middle><IMG src="../../image/TWL.gif" width="24" height="12" border="0" align=middle></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19 <PRE><CODE>#include <nitro/mb/mb_gameinfo.h></CODE><BR> 20<CODE>void 21MB_SetSendVolatCallback( MBSendVolatCallbackFunc callback, u32 timming );<BR> 22</CODE> 23 <br></PRE> 24 </dd> 25</dl> 26<h2>Arguments</h2> 27<TABLE border="1" width="100%"> 28 <TBODY> 29 <TR> 30 <TD width="13%"><EM><STRONG>callback</STRONG></EM></TD> 31 <TD colspan="2">Sets the callback function to invoke when a beacon is used to send the <CODE><A href="MBGameInfo.html">MBGameInfoVolatile</A></CODE> from the parent's game information.</TD> 32 </TR> 33 <TR> 34 <TD width="13%" rowspan="3"><EM><STRONG>timming</STRONG></EM></TD> 35 <TD colspan="2">Configures the timing called by the callback function.</TD> 36 </TR> 37 <TR> 38 <TD width="286"><I>MB_SEND_VOLAT_CALLBACK_TIMMING_BEFORE</I></TD> 39 <TD width="245">The callback is called immediately before the send configuration of the beacon stored in <code><A href="MBGameInfo.html">MBGameInfoVolatile</A></code>.</TD> 40 </TR> 41 <TR> 42 <TD width="286"><I>MB_SEND_VOLAT_CALLBACK_TIMMING_AFTER</I></TD> 43 <TD width="245">The callback is called immediately after the send configuration of the beacon stored in <code><A href="MBGameInfo.html">MBGameInfoVolatile</A></code>.</TD> 44 </TR> 45 </TBODY> 46</TABLE> 47<h2>Return Values</h2> 48<p>None.</p> 49 50<H2>Description</H2> 51<P>This function can configure the callback called when sending <code><A href="MBGameInfo.html">MBGameInfoVolatile</A></code> by a beacon. (<code><A href="MBGameInfo.html">MBGameInfoVolatile</A></code> is part of the MB parent's game information and changes constantly.) User data configured with the <CODE><A href="MB_SetUserVolatData.html">MB_SetUserVolatData</A></CODE> function is also included here, and the next data to be sent can be configured by calling the <CODE><A href="MB_SetUserVolatData.html">MB_SetUserVolatData</A></CODE> function in this callback. 52</p> 53<PRE>/* callback function */ 54 typedef void (*MBSendVolatCallbackFunc)( u32 ggid );</PRE> 55<PRE>/* callback timing */ 56enum 57{ 58 MB_SEND_VOLAT_CALLBACK_TIMMING_BEFORE, 59 MB_SEND_VOLAT_CALLBACK_TIMMING_AFTER 60}; 61</PRE> 62<h2>See Also</h2> 63<p><CODE><A href="MB_SetUserVolatData.html">MB_SetUserVolatData</A>, <A href="MBGameInfo.html">MBGameInfo</A></CODE></P> 64<H2>Revision History</H2> 65<P>2005/01/18 Initial version. 66</P> 67<hr><p>CONFIDENTIAL</p></body> 68</html> 69