Miles Sound System SDK 7.2a

AIL_file_async_status_callback

The function AIL_file_async_status_callback specifies a user-replaceable callback handler to poll for completion of an asynchronous read.

S32 AILCALLBACK AIL_file_async_status_callback(
  void * async,
  S32 wait,
  U32 *bytes_read
);

In Parameters

async
specifies a pointer to the user structure allocated by the AIL_file_async_read_callback handler.
wait
will be nonzero if the caller expects the function to wait until the asynchronous read is complete.

Out Parameters

bytes_read
specifies an address to which the number of bytes read so far should be stored.

Returns

After updating *bytes_read, this function should return 1 if the asynchronous read operation is complete, or 0 if it is still in progress. If an error condition is detected, 0 should be stored in *bytes_read and 1 should be returned. Asynchronous reads are used on Wii, PS2 and Macintosh by default.


Group: Memory and File Services
Related Functions: AIL_file_async_read_callback, AIL_file_async_status_callback, AIL_file_close_callback, AIL_file_open_callback, AIL_file_seek_callback, AIL_set_file_async_callbacks
Related Basic Types: S32, U32, void *

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.