#include <revolution/nand.h>
typedef void (*NANDCallback)( s32 result, NANDCommandBlock *block );
s32 NANDSimpleSafeCancelAsync( NANDFileInfo *info, NANDCallback cb, NANDCommandBlock *block );
info |
Pointer to a NANDFileInfo structure. |
cb |
Callback function to call when this function completes processing. |
block |
Command block structure to be passed to the callback function. |
When the request begins normally, returns NAND_RESULT_OK. As long as resources are released normally, NAND_RESULT_OK is passed to the specified callback function.
NAND_RESULT_OK
NAND_RESULT_ALLOC_FAILED
NAND_RESULT_BUSY
NAND_RESULT_CORRUPT
NAND_RESULT_INVALID
NAND_RESULT_UNKNOWN
NAND_RESULT_FATAL_ERROR
This asynchronous function will try to release resources (temporary files and file descriptors) used by the NANDSimpleSafe functions. Call this function if any of the NANDSimpleSafe functions end in an error, or if the error codes NAND_RESULT_AUTHENTICATION and NAND_RESULT_ECC_CRIT are issued in response to a read/write operation on a file opened using a NANDSimpleSafe function.
It is not necessary to apply NANDSimpleSafeClose[Async] to the NANDFileInfo structure passed to this function.
The callback function specified with this function may receive NAND_RESULT_ALLOC_FAILED or NAND_RESULT_BUSY.
NANDSimpleSafeCancel, NANDSimpleSafeOpen, NANDSimpleSafeOpenAsync, NANDSimpleSafeClose, NANDSimpleSafeCloseAsync
2007/05/09 Initial version.