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="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>WPADSetSimpleSyncCallback</title>
10</head>
11
12<body>
13
14<h1>WPADSetSimpleSyncCallback</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><code>#include &lt;revolution/wpad.h&gt;
21
22#define WPAD_SYNC_EVT_BUSY        -1
23#define WPAD_SYNC_EVT_START        0
24#define WPAD_SYNC_EVT_DONE         1
25
26typedef void (*WPADSyncDeviceCallback) ( s32 result, s32 num );
27
28WPADSyncDeviceCallback WPADSetSimpleSyncCallback( WPADSyncDeviceCallback callback )</code></pre>
29  </dd>
30</dl>
31
32<h2>Arguments</h2>
33<TABLE border="1">
34  <tr>
35<TD><code><b><i>callback</i></b></code></TD>
36<TD>Sets the callback to be called when simple registration has ended.</TD>
37    </tr>
38</TABLE>
39<h2>Return Values</h2>
40<p>A pointer to the previously set callback.</p>
41<H2>Description</H2>
42<P>Sets the callback to be called when simple registration has ended.</P>
43<p>
44One of the <code>WPAD_SYNC_EVT_*</code> set is passed as the <code>result</code> argument for the callback function.
45</p>
46
47<table border="1">
48<tr>
49	<td><code>WPAD_SYNC_EVT_BUSY</code></td><td>Other processes (including registration or simple registration) are currently running.</td>
50</tr>
51<tr>
52	<td><code>WPAD_SYNC_EVT_DONE</code></td><td>Simple registration has ended. The number of the Wii Remote registered is passed to <code>num</code>.</td>
53</tr>
54</table>
55
56<h2>See Also</h2>
57<p>
58<A href="./toc.html" target="contents"><CODE>WPAD Functions</CODE></A><br> <A href="./WPADStartSimpleSync.html"><CODE>WPADStartSimpleSync</CODE></A><br> <A href="./WPADStopSimpleSync.html"><CODE>WPADStopSimpleSync</CODE></A><br>
59</p>
60
61<H2>Revision History</H2>
62<P>
6308/15/2006 Initial version.
64</P>
65<hr>
66<P>CONFIDENTIAL</p>
67</BODY>
68</HTML>