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 <revolution/wpad.h> 21 22#define WPAD_SYNC_EVT_START 0 23#define WPAD_SYNC_EVT_DONE 1 24 25typedef void (*WPADSyncDeviceCallback) ( s32 result, s32 num ); 26 27WPADSyncDeviceCallback WPADSetSimpleSyncCallback( WPADSyncDeviceCallback callback )</code></pre> 28 </dd> 29</dl> 30 31<h2>Arguments</h2> 32<TABLE border="1"> 33 <tr> 34<TD width="120" bgcolor="#ffffe8"><code><b><i>callback</i></b></code></TD> 35<TD>Sets the callback to be called when simple registration has ended.</TD> 36 </tr> 37</TABLE> 38<h2>Return Values</h2> 39<p>A pointer to the previously set callback.</p> 40<H2>Description</H2> 41<P>Sets the callback to be called when simple registration has ended.</P> 42<p> 43<code>WPAD_SYNC_EVT_DONE</code> will be passed to the <code>result</code> argument of the callback function. <CODE>WPAD_SYNC_EVT_DONE</CODE> will be passed to the callback function when the simple pairing process has completed, and the number of registered Wii Remotes will be passed to <code>num</code>. 44</p> 45 46<h2>See Also</h2> 47<p> 48<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADStartSimpleSync.html"><CODE>WPADStartSimpleSync</CODE></A>, <A href="./WPADStopSimpleSync.html"><CODE>WPADStopSimpleSync</CODE></A><br> 49</p> 50 51<H2>Revision History</H2> 52<P> 532007/07/10 Changed such that <CODE>WPAD_SYNC_EVT_BUSY</CODE> will no longer be passed to the callback function.<br> 542006/08/15 Initial version.<br></P> 55 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML>