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>Syntax</h2>
16<dl><dd><pre class="construction">
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</pre></dd></dl>
26
27<h2>Arguments</h2>
28<p>
29<TABLE class="arguments" border="1" >
30  <tr>
31<TH><code><EM><STRONG>path</STRONG></EM></code></TH>
32<TD>Specifies the bus name to be checked.</TD>
33  </tr>
34  <tr>
35<TH>type</TH>
36<TD>Pointer to a u8 variable that will store the obtained type (<CODE>NAND_TYPE_FILE</CODE> or <CODE>NAND_TYPE_DIR</CODE>).</TD>
37  </tr>
38  <tr>
39<TH>cb</TH>
40<TD>Callback function to call when this function completes processing.</TD>
41  </tr>
42  <tr>
43<TH>block</TH>
44<TD>Command block structure to be passed to the callback function.</TD>
45  </tr>
46</TABLE>
47</p>
48
49<h2>Return Values</h2>
50<p>
51The result codes that may be returned by <code>NANDGetTypeAsync</code> are listed below. Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally.
52<p>
53<code>
54NAND_RESULT_OK<br>
55NAND_RESULT_ACCESS<br>
56NAND_RESULT_ALLOC_FAILED<br>
57NAND_RESULT_BUSY<br>
58NAND_RESULT_INVALID<br>
59NAND_RESULT_FATAL_ERROR<br>
60</code>
61</p>
62<p>
63The result codes that may be passed to the callback function are listed below.
64</p>
65<p>
66<code>
67NAND_RESULT_OK<br>
68NAND_RESULT_ACCESS<br>
69NAND_RESULT_INVALID<br>
70NAND_RESULT_NOEXISTS<br>
71NAND_RESULT_UNKNOWN<br>
72NAND_RESULT_FATAL_ERROR<br>
73</code>
74</p>
75</p>
76
77<H2>Description</H2>
78<p>
79Checks whether the specified path name represents a file or a directory.
80</p>
81
82<h2>See Also</h2>
83<p class="reference">
84<a href="./NANDGetType.html">NANDGetType</a>
85</p>
86
87<H2>Revision History</H2>
88<p>
892008/08/01 Revised the result codes that are passed to the callback function.<br>2008/05/13 Described the result codes passed to the callback function.<br>2006/08/15 Initial version.<BR>
90</p>
91
92<hr><p>CONFIDENTIAL</p></body>
93</html>
94