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>NANDGetTypeAsync</title>
9</head>
10
11<body>
12
13<h1>NANDGetTypeAsync</h1>
14
15<h2>C Specification</h2>
16<dl><dd><pre><code>
17#include &lt;revolution/nand.h&gt;
18
19#define NAND_TYPE_FILE         0x01
20#define NAND_TYPE_DIR          0x02
21
22typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
23
24s32 NANDGetTypeAsync( const char *path, u8 *type, NANDCallback cb, NANDCommandBlock *block );
25</code></pre></dd></dl>
26
27<h2>Arguments</h2>
28<p>
29<TABLE border="1" >
30  <tr>
31<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><code><EM><STRONG>path</STRONG></EM></code></EM></STRONG></CODE></TD>
32<TD width="520">Specifies the bus name to be checked.</TD>
33  </tr>
34  <tr>
35<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>type</EM></STRONG></CODE></TD>
36<TD width="520">Pointer to a u8 type variable used to store the obtained type (NAND_TYPE_FILE or NAND_TYPE_DIR).</TD>
37  </tr>
38  <tr>
39<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>cb</EM></STRONG></CODE></TD>
40<TD width="520">Callback function to call when this function completes processing.</TD>
41  </tr>
42  <tr>
43<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>block</EM></STRONG></CODE></TD>
44<TD width="520">Command block structure to be passed to the callback function.</TD>
45  </tr>
46</TABLE>
47</p>
48
49
50<h2>Return Values</h2>
51<p>
52Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally.
53<p>
54<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_INVALID<br> NAND_RESULT_NOEXISTS<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code>
55</p>
56</p>
57
58<H2>Description</H2>
59<p>
60Checks whether the specified path name represents a file or a directory.
61</p>
62
63<h2>See Also</h2>
64<p>
65<code><a href="./NANDGetType.html">NANDGetType</a></code>
66</p>
67
68<H2>Revision History</H2>
69<p>
702006/08/15 Initial version.<br>
71</p>
72
73<hr>
74<P>CONFIDENTIAL</p>
75</BODY>
76</HTML>
77