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>NANDSafeCloseAsync</title> 9</head> 10 11<body> 12 13<h1>NANDSafeCloseAsync</h1> 14 15<h2>C Specification</h2> 16<dl><dd><pre><code> 17#include <revolution/nand.h> 18 19typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block ); 20 21s32 NANDSafeCloseAsync( NANDFileInfo *info, 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>info</EM></STRONG></CODE></TD> 29<TD width="520">Pointer to the NANDFileInfo structure (opened by NANDSafeOpen[Async]).</TD> 30 </tr> 31 <tr> 32<TD valign="top" width="120" bgcolor="#ffffe8"><CODE><STRONG><EM>cb</EM></STRONG></CODE></TD> 33<TD width="520">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">Command block structure to be passed to the callback function.</TD> 38 </tr> 39</TABLE> 40</p> 41 42 43<h2>Return Values</h2> 44<p> 45Returns <CODE>NAND_RESULT_OK</CODE> when the request begins normally. 46<p> 47<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_UNKNOWN<br> NAND_RESULT_FATAL_ERROR<br></code> 48</p> 49</p> 50 51<H2>Description</H2> 52<p> 53Asynchronously closes a file. Files closed using this function must have been opened using <code><a href="./NANDSafeOpen.html">NANDSafeOpen</a></code> or <code><a href="./NANDSafeOpenAsync.html">NANDSafeOpenAsync</a></code>. <code>NAND_RESULT_BUSY</code> is returned and this function call is denied when the queue for accepting requests inside the library is full. 54</p> 55 56<h2>See Also</h2> 57<p> 58<code><a href="./NANDSafeOpen.html">NANDSafeOpen</a></code>, <code><a href="./NANDSafeOpenAsync.html">NANDSafeOpenAsync</a></code>, <code><a href="./NANDSafeClose.html">NANDSafeClose</a></code> 59</p> 60 61<H2>Revision History</H2> 62<p>08/15/2006 Initial version.</p> 63 64<hr> 65<P>CONFIDENTIAL</p> 66</BODY> 67</HTML> 68