Changeset 27678a0 in mainline
- Timestamp:
- 2011-07-14T12:16:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 73b1218
- Parents:
- 944aa24
- Location:
- uspace/srv/fs/exfat
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/exfat/exfat_directory.c
r944aa24 r27678a0 157 157 } 158 158 159 int exfat_directory_find(exfat_directory_t *di, exfat_dentry_clsf_t type, exfat_dentry_t **d) 160 { 161 do { 162 if (exfat_directory_get(di, d) == EOK) { 163 if (exfat_classify_dentry(*d) == type) 164 return EOK; 165 } else 166 return ENOENT; 167 } while (exfat_directory_next(di) == EOK); 168 169 return ENOENT; 170 } 171 172 int exfat_directory_find_continue(exfat_directory_t *di, exfat_dentry_clsf_t type, exfat_dentry_t **d) 173 { 174 int rc; 175 rc = exfat_directory_next(di); 176 if (rc != EOK) 177 return rc; 178 return exfat_directory_find(di, type, d); 179 } 159 180 160 181 /** -
uspace/srv/fs/exfat/exfat_directory.h
r944aa24 r27678a0 58 58 extern int exfat_directory_seek(exfat_directory_t *di, aoff64_t pos); 59 59 extern int exfat_directory_get(exfat_directory_t *di, exfat_dentry_t **de); 60 extern int exfat_directory_find(exfat_directory_t *di, 61 exfat_dentry_clsf_t type, exfat_dentry_t **d); 62 extern int exfat_directory_find_continue(exfat_directory_t *di, 63 exfat_dentry_clsf_t type, exfat_dentry_t **d); 60 64 61 65 extern int exfat_directory_expand(exfat_directory_t *di);
Note:
See TracChangeset
for help on using the changeset viewer.