Changeset 7194a60 in mainline for uspace/srv/fs/fat/fat_dentry.h
- Timestamp:
- 2011-06-27T16:40:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5dfb1948
- Parents:
- 2e839dda
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_dentry.h
r2e839dda r7194a60 56 56 #define FAT_LCASE_LOWER_EXT 0x10 57 57 58 #define FAT_PAD ' ' 58 #define FAT_PAD ' ' 59 #define FAT_LFN_PAD 0xffff 60 #define FAT_SFN_CHAR '_' 59 61 60 62 #define FAT_DENTRY_UNUSED 0x00 … … 76 78 #define FAT_LFN_CHKSUM(d) (d->lfn.check_sum) 77 79 78 #define FAT_LFN_NAME_SIZE 2 5580 #define FAT_LFN_NAME_SIZE 260 79 81 #define FAT_LFN_MAX_COUNT 20 80 82 #define FAT_LFN_PART1_SIZE 5 … … 130 132 131 133 extern int fat_dentry_namecmp(char *, const char *); 132 extern bool fat_dentry_name_verify(const char *);133 134 extern void fat_dentry_name_get(const fat_dentry_t *, char *); 134 135 extern void fat_dentry_name_set(fat_dentry_t *, const char *); … … 138 139 extern size_t fat_lfn_str_nlength(const uint16_t *, size_t); 139 140 extern size_t fat_lfn_size(const fat_dentry_t *); 140 extern size_t fat_lfn_copy_part(const uint16_t *, size_t, uint16_t *, size_t *); 141 extern size_t fat_lfn_copy_entry(const fat_dentry_t *, uint16_t *, size_t *); 141 extern size_t fat_lfn_get_part(const uint16_t *, size_t, wchar_t *, size_t *); 142 extern size_t fat_lfn_get_entry(const fat_dentry_t *, wchar_t *, size_t *); 143 extern size_t fat_lfn_set_part(const wchar_t *, size_t *, size_t, uint16_t *, size_t); 144 extern size_t fat_lfn_set_entry(const wchar_t *, size_t *, size_t, fat_dentry_t *); 142 145 143 extern int utf16_to_str(char *, size_t, const uint16_t *);144 extern int str_to_utf16(uint16_t *, size_t, const char *); 145 extern bool fat_ lfn_valid_char(uint16_t);146 extern bool fat_ lfn_valid_str(const uint16_t *);147 extern size_t utf16_length(const uint16_t *);148 extern bool fat_dentry_is_sfn(const uint16_t *);146 extern void wstr_to_ascii(char *dst, const wchar_t *src, size_t count, uint8_t pad); 147 148 extern bool fat_sfn_valid_char(wchar_t); 149 extern bool fat_sfn_valid(const wchar_t *); 150 extern bool fat_lfn_valid(const wchar_t *wstr); 151 extern bool fat_dentry_is_sfn(const wchar_t *); 149 152 150 153
Note:
See TracChangeset
for help on using the changeset viewer.