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 http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>MPCallbackInfo</title>
9</head>
10
11<body>
12
13<h1>MPCallbackInfo</h1>
14
15<h2>Definitions</h2>
16<dl><dd>
17<pre><code>
18#include &lt;revolution/mp.h&gt;
19
20typedef struct MPCallbackInfo
21{
22    s32 type;
23    s32 result;
24    u32 port;
25    void *userData;
26
27    ...
28} MPCallbackInfo;
29</code></pre>
30</dd></dl>
31
32<H2>Description</H2>
33<p>
34<CODE>MPCallbackInfo</CODE> is a structure that is passed as an argument to the callback function. Its size is 64 bytes.
35</p>
36<TABLE border="1">
37  <TBODY>
38      <tr>
39<th><strong>Member</strong></th>
40<th><strong>Description</strong></th>
41      </tr>
42    <TR>
43<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>type</strong></em></td>
44<TD width="520">Stores the type of factor that generated the callback function.</TD>
45    </TR>
46    <TR>
47<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>result</strong></em></td>
48<TD width="520">Stores the result value of the factor that generated the callback function.</TD>
49    </TR>
50    <TR>
51<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>port</strong></em></td>
52<TD width="520">Stores the <CODE>port</CODE> number if the factor that generated the callback function is different for each <CODE>port</CODE>.</TD>
53    </TR>
54    <TR>
55<td valign="top" width="120" bgcolor="#ffffe8"><em><strong>userData</strong></em></td>
56<TD width="520">Stores the pointer to user data set to the argument when the asynchronous function is called.</TD>
57    </TR>
58  </TBODY>
59</TABLE>
60
61<h2>See Also</h2>
62<p>
63<code><a href="./MPSendAsync.html">MPSendAsync()</a></code>, <code><a href="./MPUpdateBeaconAsync.html">MPUpdateBeaconAsync()</a></code>, <code><a href="./MPCallback.html">MPCallback</a></code>, <code><a href="./MPPortCallback.html">MPPortCallback</a></code>
64</p>
65
66<H2>Revision History</H2>
67<p>
682007/11/28 Added to the See Also section.<br>2007/10/03 Initial version.
69</p>
70
71<hr><p>CONFIDENTIAL</p></body>
72</html>
73