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>NANDGetType</title>
9</head>
10
11<body>
12
13<h1>NANDGetType</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
22s32 NANDGetType( const char *path, u8 *type );
23</code></pre></dd></dl>
24
25<h2>Arguments</h2>
26<p>
27<TABLE border="1" >
28  <tr>
29<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><code><EM><STRONG>path</STRONG></EM></code></EM></STRONG></CODE></TD>
30<TD width="520">Specifies the bus name to be checked.</TD>
31  </tr>
32  <tr>
33<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>type</EM></STRONG></CODE></TD>
34<TD width="520">Pointer to a u8 type variable used to store the obtained type (NAND_TYPE_FILE or NAND_TYPE_DIR).</TD>
35  </tr>
36</TABLE>
37</p>
38
39
40<h2>Return Values</h2>
41<p>
42Returns one of the following codes:
43<p>
44<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>
45</p>
46</p>
47
48<H2>Description</H2>
49<p>
50Checks whether the specified path name represents a file or a directory.
51</p>
52
53<p>
54This function may put the current thread to sleep. For precautions when calling similar functions, refer to <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>.
55</p>
56
57<h2>See Also</h2>
58<p>
59<code><a href="./NANDGetTypeAsync.html">NANDGetTypeAsync</a></code>, <a href="../os/Interrupt/intro.html">Interrupts and Callback Functions</a>
60</p>
61
62<H2>Revision History</H2>
63<p>
642007/09/25 Added information on the sleep status of threads.<br>2006/11/30 Added <CODE>NAND_RESULT_ALLOC_FAILED</CODE> and <CODE>NAND_RESULT_BUSY</CODE> codes.<br>2006/08/15 Initial version.<br>
65</p>
66
67<hr><p>CONFIDENTIAL</p></body>
68</html>
69