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>NANDCreateDirAsync</title> 9</head> 10 11<body> 12 13<h1>NANDCreateDirAsync</h1> 14 15<h2>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/nand.h> 18 19#define NAND_PERM_OTHER_READ 0x01 20#define NAND_PERM_OTHER_WRITE 0x02 21#define NAND_PERM_GROUP_READ 0x04 22#define NAND_PERM_GROUP_WRITE 0x08 23#define NAND_PERM_OWNER_READ 0x10 24#define NAND_PERM_OWNER_WRITE 0x20 25 26typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block ); 27 28s32 NANDCreateDirAsync( const char *path, u8 perm, u8 attr, NANDCallback cb, NANDCommandBlock *block ); 29</code></pre></dd></dl> 30 31<h2>Arguments</h2> 32<p> 33<TABLE border="1" > 34 <tr> 35<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>path</CODE></EM></STRONG></EM></STRONG></CODE></TD> 36<TD width="520">Specifies the directory name. </TD> 37 </tr> 38 <tr> 39<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>perm</CODE></EM></STRONG></EM></STRONG></CODE></TD> 40<TD width="520">Directory permissions. Specify by taking the logical sum of <code>NAND_PERM_*</code>.</TD> 41 </tr> 42 <tr> 43<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>attr</CODE></EM></STRONG></EM></STRONG></CODE></TD> 44<TD width="520">Specifies the directory attributes.</TD> 45 </tr> 46 <tr> 47<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM><STRONG><EM><CODE>cb</CODE></EM></STRONG></EM></STRONG></CODE></TD> 48<TD width="520">Specifies the callback function to call when this function completes processing. </TD> 49 </tr> 50 <tr> 51<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>block</EM></STRONG></CODE></TD> 52<TD width="520">Specifies the command block structure to pass to the callback function.</TD> 53 </tr> 54</TABLE> 55</p> 56 57<h2>Return Values</h2> 58<p> 59Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally. 60<p> 61<code>NAND_RESULT_OK<br> NAND_RESULT_ACCESS<br> NAND_RESULT_ALLOC_FAILED<br> NAND_RESULT_BUSY<br> NAND_RESULT_CORRUPT<br> NAND_RESULT_EXISTS<br> NAND_RESULT_INVALID<br> NAND_RESULT_MAXFILES<br> NAND_RESULT_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code> 62</p> 63</p> 64 65<H2>Description</H2> 66<p> 67Asynchronously creates a new directory. If the queue receiving the request is full in the library, this function call is refused and <code>NAND_RESULT_BUSY</code> is returned. The created directory is assigned the specified permissions and attributes. 68</p> 69 70<h2>See Also</h2> 71<p> 72<code><a href="./NANDCreateDir.html">NANDCreateDir</a></code>, <code><a href="./NANDDelete.html">NANDDelete</a></code>, <code><a href="./NANDDeleteAsync.html">NANDDeleteAsync</a></code> 73</p> 74 75<H2>Revision History</H2> 76<p>06/16/2006 Initial version.</p> 77 78 79</body> 80</html> 81