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 &lt;nitro/mb/mb_gameinfo.h&gt;</CODE><BR>
20<CODE>void
21MB_SetSendVolatCallback( MBSendVolatCallbackFunc callback, u32 timing );<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 <A href="MBGameInfo.html"><CODE>MBGameInfoVolatile</CODE></A> from the parent's game information.</TD>
32    </TR>
33    <TR>
34<TD width="13%" rowspan="3"><EM><STRONG>timing</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_TIMING_BEFORE</I></TD>
39<TD width="245">The callback is called immediately before the send configuration of the beacon stored in <A href="MBGameInfo.html"><CODE>MBGameInfoVolatile</CODE></A>.</TD>
40    </TR>
41    <TR>
42<TD width="286"><I>MB_SEND_VOLAT_CALLBACK_TIMING_AFTER</I></TD>
43<TD width="245">The callback is called immediately after the send configuration of the beacon stored in <A href="MBGameInfo.html"><CODE>MBGameInfoVolatile</CODE></A>.</TD>
44    </TR>
45  </TBODY>
46</TABLE>
47<h2>Return Values</h2>
48<p>None.</p>
49
50<H2>Description</H2>
51<P>Can configure the callback called when sending <A href="MBGameInfo.html"><CODE>MBGameInfoVolatile</CODE></A> by a beacon. (<A href="MBGameInfo.html"><CODE>MBGameInfoVolatile</CODE></A> is part of the MB parent's game information and changes constantly.) User data configured with the <A href="MB_SetUserVolatData.html"><CODE>MB_SetUserVolatData</CODE></A> function is also included here, and the next data to be sent can be configured by calling the <A href="MB_SetUserVolatData.html"><CODE>MB_SetUserVolatData</CODE></A> 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_TIMING_BEFORE,
59    MB_SEND_VOLAT_CALLBACK_TIMING_AFTER
60};
61</PRE>
62<h2>See Also</h2>
63<p><A href="MB_SetUserVolatData.html"><CODE>MB_SetUserVolatData</CODE></A><BR> <A href="MBGameInfo.html"><CODE>MBGameInfo</CODE></A></P>
64<H2>Revision History</H2>
65<P>
662009/04/10 Corrected a typo (changed &quot;timming&quot; to &quot;timing&quot;).<br />2005/01/18 Initial version.
67</P>
68<hr><p>CONFIDENTIAL</p></body>
69</html>
70