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>WPADSetClearDeviceCallback</title>
10</head>
11
12<body>
13
14<h1>WPADSetClearDeviceCallback</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_CLEAR_EVT_START        0
23#define WPAD_CLEAR_EVT_DONE         1
24
25typedef void (*WPADClearDeviceCallback) ( s32 result );
26
27WPADClearDeviceCallback *WPADSetClearDeviceCallback( WPADClearDeviceCallback 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 called when the synchro button is pressed for more than 10 seconds and when full deletion is completed.</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 called when the synchro button is pressed for more than 10 seconds and when full deletion is completed. If no callback has been set, <A href="./WPADStartClearDevice.html"><code>WPADStartClearDevice</code></a> is automatically called.</P>
42<p>
43One of the <code>WPAD_CLEAR_EVT_*</code> set is passed as the <code>result</code> argument for the callback function.
44</p>
45
46<table border="1">
47<tr>
48	<td><code>WPAD_CLEAR_EVT_START</code></td><td>The synchro button on the Wii console was pressed for more than 10 seconds.</td>
49</tr>
50<tr>
51	<td><code>WPAD_CLEAR_EVT_DONE</code></td><td>Full deletion has ended.</td>
52</tr>
53</table>
54
55<h2>See Also</h2>
56<p>
57<A href="./toc.html" target="contents">WPAD Functions</A><br> <A href="./WPADStartClearDevice.html"><CODE>WPADStartClearDevice</CODE></A><br>
58</p>
59
60<H2>Revision History</H2>
61<P>
622006/06/19 Initial version.<BR>
63</P>
64<hr>
65<P>CONFIDENTIAL</p>
66</BODY>
67</HTML>