# FS_ARCHIVE_PROC_*

## 定義

  `#include <nitro/fs.h>`
  `

      #define	FS_ARCHIVE_PROC_READFILE	(1 << FS_COMMAND_READFILE)
      #define	FS_ARCHIVE_PROC_WRITEFILE	(1 << FS_COMMAND_WRITEFILE)
      #define	FS_ARCHIVE_PROC_ASYNC		(FS_ARCHIVE_PROC_READFILE | FS_ARCHIVE_PROC_WRITEFILE)

      #define	FS_ARCHIVE_PROC_SEEKDIR		(1 << FS_COMMAND_SEEKDIR)
      #define	FS_ARCHIVE_PROC_READDIR		(1 << FS_COMMAND_READDIR)
      #define	FS_ARCHIVE_PROC_FINDPATH	(1 << FS_COMMAND_FINDPATH)
      #define	FS_ARCHIVE_PROC_GETPATH		(1 << FS_COMMAND_GETPATH)
      #define	FS_ARCHIVE_PROC_OPENFILEFAST	(1 << FS_COMMAND_OPENFILEFAST)
      #define	FS_ARCHIVE_PROC_OPENFILEDIRECT	(1 << FS_COMMAND_OPENFILEDIRECT)
      #define	FS_ARCHIVE_PROC_CLOSEFILE	(1 << FS_COMMAND_CLOSEFILE)
      #define	FS_ARCHIVE_PROC_SYNC		(FS_ARCHIVE_PROC_SEEKDIR | FS_ARCHIVE_PROC_READDIR |	\
      					 FS_ARCHIVE_PROC_FINDPATH | FS_ARCHIVE_PROC_GETPATH |	\
      					 FS_ARCHIVE_PROC_OPENFILEFAST | FS_ARCHIVE_PROC_OPENFILEDIRECT | FS_ARCHIVE_PROC_CLOSEFILE)

      #define	FS_ARCHIVE_PROC_ACTIVATE	(1 << FS_COMMAND_ACTIVATE)
      #define	FS_ARCHIVE_PROC_IDLE		(1 << FS_COMMAND_IDLE)
      #define	FS_ARCHIVE_PROC_STATUS		(FS_ARCHIVE_PROC_ACTIVATE | FS_ARCHIVE_PROC_IDLE)

      #define	FS_ARCHIVE_PROC_ALL		(~0)

  `

## 説明

`FS_SetArchiveProc()` でユーザプロシージャに指定するフラグビットの定義です。
これらは、それぞれ同名のコマンドを指定するための意味を持ちます。
FSCommandType列挙値への対応は以下のとおりです。

FS_ARCHIVE_PROC_ACTIVATE | FS_COMMAND_ACTIVATE
FS_ARCHIVE_PROC_IDLE | FS_COMMAND_IDLE
FS_ARCHIVE_PROC_STATUS | FS_COMMAND_STATUS_BEGIN以上、FS_COMMAND_STATUS_END未満の全て
FS_ARCHIVE_PROC_READFILE | FS_COMMAND_READFILE
FS_ARCHIVE_PROC_WRITEFILE | FS_COMMAND_WRITEFILE
FS_ARCHIVE_PROC_ASYNC | FS_COMMAND_ASYNC_BEGIN以上、FS_COMMAND_ASYNC_END未満の全て
FS_ARCHIVE_PROC_SEEKDIR | FS_COMMAND_SEEKDIR
FS_ARCHIVE_PROC_READDIR | FS_COMMAND_READDIR
FS_ARCHIVE_PROC_OPENFILEFAST | FS_COMMAND_OPENFILEFAST
FS_ARCHIVE_PROC_OPENFILEDIRECT | FS_COMMAND_OPENFILEDIRECT
FS_ARCHIVE_PROC_FINDPATH | FS_COMMAND_FINDPATH
FS_ARCHIVE_PROC_GETPATH | FS_COMMAND_GETPATH
FS_ARCHIVE_PROC_CLOSEFILE | FS_COMMAND_CLOSEFILE
FS_ARCHIVE_PROC_SYNC | FS_COMMAND_SYNC_BEGIN以上、FS_COMMAND_SYNC_END未満の全て
FS_ARCHIVE_PROC_ALL | コマンド全て

## 参照

`FSArchive FSCommandType FS_ARCHIVE_PROC_FUNC
FS_SetArchiveProc`

## 履歴

2004/07/12 コマンド追加
2004/06/30 初版