1<html> 2 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 6 7<title>MPSetIndicationConfig</title> 8</head> 9 10<body> 11<h1>MPSetIndicationConfig</h1> 12 13<h2>C Specification</h2> 14<p> 15<dl> 16 <dd><pre><code>#include <revolution/mp.h></code></pre> 17 </dd> 18 <dd><pre><code>typedef void (*MPIndicationCallback)( s32 type, MPIndicationInfo *info );</code></pre></dd> 19 <dd><pre><code>static inline void MPSetIndicationConfig ( <a href="./MPConfig.html">MPConfig</a>* <i><b>config</b></i>, MPIndicationCallback <i><b>callback</b></i> );</code></pre> 20 </dd> 21</dl> 22</p> 23 24<h2>Arguments</h2> 25<p> 26<table border="1"> 27 <tr> 28<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>config</em></strong></code></td> 29<td width="520">MP communications settings</td> 30 </tr> 31 <tr> 32<td valign="top" width="120" bgcolor="#ffffe8"><code><strong><em>callback</em></strong></code></td> 33<td width="520">Callback for indication notification</td> 34 </tr> 35</table> 36</p> 37 38<h2>Return Values</h2> 39 40<P>None.</P> 41 42<h2>Description</h2> 43 44<p> 45Sets the indication notification callback for <code>MPConfig</code>. This inline function assigns values to particular member variables in <code>MPConfig</code>.<br>Settings made with this function must be made before calling <code>MPStartup</code> function. 46</p> 47 48<p> 49Only fatal error notifications notified as <code>MP_INDICATION_TYPE_FATAL_ERROR</code> are defined as indication notifications. Detection of fatal errors and acquisition of error types can be managed by calling the <code>MPGetFatalError</code> function when the MP function has returned <code>MP_RESULT_FATAL_ERROR</code>. For this reason, it is not always necessary to set a callback for indication notification. 50</p> 51 52<h2>See Also</h2> 53<p> 54<code><a href="./MPStartup.html">MPStartup()</a></code>, <code><a href="./MPSetPortConfig.html">MPSetPortConfig()</a></code>, <code><a href="./MPConfig.html">MPConfig</a></code> 55</p> 56 57<h2>Revision History</h2> 58 59<p> 602006/09/04 Added descriptions.<br>2006/06/29 Initial version. 61</p> 62 63<hr><p>CONFIDENTIAL</p></body> 64</html> 65