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 http-equiv="Content-Style-Type" content="text/css">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8<title>NANDDeleteAsync</title>
9</head>
10
11<body>
12
13<h1>NANDDeleteAsync</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
20
21s32 NANDDeleteAsync( const char *name, NANDCallback cb, NANDCommandBlock *block );
22</code></pre></dd></dl>
23
24<h2>Arguments</h2>
25<p>
26<TABLE border="1" >
27  <tr>
28<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><CODE><STRONG><EM>name</EM></STRONG></CODE></EM></STRONG></CODE></TD>
29<TD width="520">Specifies the file or directory name.</TD>
30  </tr>
31  <tr>
32<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>cb</CODE></EM></STRONG></EM></STRONG></CODE></TD>
33<TD width="520">Specifies the callback function to call when this function completes processing. </TD>
34  </tr>
35  <tr>
36<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>block</EM></STRONG></CODE></TD>
37<TD width="520">Specifies the command block structure to pass to the callback function.</TD>
38  </tr>
39</TABLE>
40</p>
41
42<h2>Return Values</h2>
43<p>
44Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally.
45<p>
46<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_OPENFD<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
47</p>
48</p>
49
50<H2>Description</H2>
51<p>
52Asynchronously deletes a file or directory. All files and directories contained in the directory to delete are deleted. Open files cannot be deleted. If the queue receiving the request is full in the library, this function call is refused and <code>NAND_RESULT_BUSY</code> is returned.
53</p>
54
55<h2>See Also</h2>
56<p>
57<code><a href="./NANDCreate.html">NANDCreate</a></code>, <code><a href="./NANDCreateAsync.html">NANDCreateAsync</a></code>, <code><a href="./NANDCreateDir.html">NANDCreateDir</a></code>, <code><a href="./NANDCreateDirAsync.html">NANDCreateDirAsync</a></code>, <code><a href="./NANDDelete.html">NANDDelete</a></code>
58</p>
59
60<H2>Revision History</H2>
61<p>06/16/2006 Initial version.</p>
62
63
64</body>
65</html>
66