From 70702af1370e44e32fb2c3c507e4759a187b4fe5 Mon Sep 17 00:00:00 2001 From: Leo C Date: Thu, 8 Sep 2016 19:15:27 +0200 Subject: Import fatfs R0.12b --- fatfs/doc/en/sdir.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'fatfs/doc/en/sdir.html') diff --git a/fatfs/doc/en/sdir.html b/fatfs/doc/en/sdir.html index 7eba555..a01a716 100644 --- a/fatfs/doc/en/sdir.html +++ b/fatfs/doc/en/sdir.html @@ -13,23 +13,21 @@
The DIR structure is used for the work area to read a directory by f_oepndir()/f_readdir() function. Application program must not modify any member in this structure.
+The DIR structure is used for the work area to read a directory by f_oepndir, f_readdir, f_findfirst and f_findnext function. Application program must not modify any member in this structure, or any data on the FAT volume can be collapsed.
typedef struct { - FATFS* fs; /* Pointer to the owner file system object */ - WORD id; /* Owner file system mount ID */ - WORD index; /* Index of directory entry to start to search next */ - DWORD sclust; /* Table start cluster (0:Root directory) */ + _FDID obj; /* Owner file sytem object and object identifier */ + DWORD dptr; /* Current read/write offset */ DWORD clust; /* Current cluster */ DWORD sect; /* Current sector */ BYTE* dir; /* Pointer to the current SFN entry in the win[] */ BYTE* fn; /* Pointer to the SFN buffer (in/out) {file[8],ext[3],status[1]} */ -#if _FS_LOCK - UINT lockid; /* Sub-directory lock ID (0:Root directory) */ -#endif #if _USE_LFN - WCHAR* lfn; /* Pointer to the LFN buffer (in/out) */ - WORD lfn_idx; /* Index of the LFN entris (0xFFFF:No LFN) */ + DWORD blk_ofs; /* Offset of the entry block (0xFFFFFFFF:Invalid) */ + WCHAR* lfn; /* Pointer to the LFN working buffer (in/out) */ +#endif +#if _USE_FIND + const TCHAR* pat; /* Ponter to the matching pattern */ #endif } DIR;-- cgit v1.2.3