#include <cafe/fs.h> FSCmdBlock* FSGetCurrentCmdBlock(FSClient *client);
|client||Pointer of client buffer.|
Pointer to command block.
NULL if no command is in flight or specified client is invalid.
Get current command block that is being processed.
If you call this function in state change callback, this will return currently blocking command which was in flight when state change happened.
If you call this function in command completion callback, this will return the next command block in the queue which would be already in flight.
2013/05/08 Automated cleanup pass.
2012/09/03 Initial version.