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<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/wpad.h&gt;
19
20#define WPAD_SYNC_EVT_START        0
21#define WPAD_SYNC_EVT_DONE         1
22
23typedef void (*WPADSyncDeviceCallback) ( s32 result, s32 num );
24
25WPADSyncDeviceCallback WPADSetSimpleSyncCallback( WPADSyncDeviceCallback callback );
26</pre></dd></dl>
27
28<h2>Arguments</h2>
29<TABLE class="arguments" border="1" >
30  <tr>
31<TH>callback</TH>
32<TD>Sets the callback to be called when simple registration has ended.</TD>
33  </tr>
34</TABLE>
35
36<h2>Return Values</h2>
37<p>A pointer to the previously set callback.</p>
38
39<H2>Description</H2>
40<P>Sets the callback to be called when simple registration has ended.</P>
41<p>
42<code>WPAD_SYNC_EVT_DONE</code> is passed to the callback function's <SPAN class="argument">result</SPAN> argument. <CODE>WPAD_SYNC_EVT_DONE</CODE> is passed to the callback function when simple pairing has completed. The number of Wii Remotes that could be registered is passed in <SPAN class="argument">num</SPAN>.
43</p>
44
45<h2>See Also</h2>
46<p class="reference">
47<A href="./WPADStartSimpleSync.html">WPADStartSimpleSync</A>,
48<A href="./WPADStopSimpleSync.html">WPADStopSimpleSync</A>
49</p>
50
51<H2>Revision History</H2>
52<P>
532007/07/10 2007/07/10 Made a change such that <CODE>WPAD_SYNC_EVT_BUSY</CODE> is no longer passed to the callback function.<br>2006/08/15 Initial version.<br>
54</P>
55<hr><p>CONFIDENTIAL</p></body>
56</html>