/*---------------------------------------------------------------------------*
  Project:  NitroSDK - FS - libraries
  File:     command.h

  Copyright 2003-2004 Nintendo.  All rights reserved.

  These coded instructions, statements, and computer programs contain
  proprietary information of Nintendo of America Inc. and/or Nintendo
  Company Ltd., and are protected by Federal copyright law.  They may
  not be disclosed to third parties or copied or duplicated in any form,
  in whole or in part, without the prior written consent of Nintendo.

  $Log: command.h,v $
  Revision 1.2  2004/07/23 08:30:26  yosizaki
  fix command operation.

  Revision 1.1  2004/07/08 13:40:41  yosizaki
  (none)

  $NoKeywords: $
 *---------------------------------------------------------------------------*/


#if	!defined(NITRO_FS_COMMAND_H_)
#define NITRO_FS_COMMAND_H_

#include <nitro/misc.h>
#include <nitro/types.h>
#include <nitro/fs/file.h>


#ifdef __cplusplus
extern "C" {
#endif


extern	FSDirPos	current_dir_pos;


BOOL	FSi_SendCommand(FSFile *p_file, FSCommandType command);
FSFile*	FSi_NextCommand(FSArchive *p_arc);
void	FSi_ExecuteAsyncCommand(FSFile *p_file);
BOOL	FSi_ExecuteSyncCommand(FSFile *p_file);
FSResult	FSi_TranslateCommand(FSFile *p_file, FSCommandType command);
void	FSi_ReleaseCommand(FSFile *p_file, FSResult ret);


#ifdef __cplusplus
} /* extern "C" */
#endif


#endif	/* NITRO_FS_COMMAND_H_ */
