diff options
Diffstat (limited to 'firmware/export/fat.h')
-rw-r--r-- | firmware/export/fat.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 24c894ff35..f4f09a2d19 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h | |||
@@ -72,14 +72,14 @@ struct fat_dir | |||
72 | extern int fat_mount(int startsector); | 72 | extern int fat_mount(int startsector); |
73 | extern void fat_size(unsigned int* size, unsigned int* free); | 73 | extern void fat_size(unsigned int* size, unsigned int* free); |
74 | extern void fat_recalc_free(void); | 74 | extern void fat_recalc_free(void); |
75 | extern int fat_create_dir(char* name, | 75 | extern int fat_create_dir(const char* name, |
76 | struct fat_dir* newdir, | 76 | struct fat_dir* newdir, |
77 | struct fat_dir* dir); | 77 | struct fat_dir* dir); |
78 | extern int fat_startsector(void); | 78 | extern int fat_startsector(void); |
79 | extern int fat_open(unsigned int cluster, | 79 | extern int fat_open(unsigned int cluster, |
80 | struct fat_file* ent, | 80 | struct fat_file* ent, |
81 | struct fat_dir* dir); | 81 | const struct fat_dir* dir); |
82 | extern int fat_create_file(char* name, | 82 | extern int fat_create_file(const char* name, |
83 | struct fat_file* ent, | 83 | struct fat_file* ent, |
84 | struct fat_dir* dir); | 84 | struct fat_dir* dir); |
85 | extern int fat_readwrite(struct fat_file *ent, int sectorcount, | 85 | extern int fat_readwrite(struct fat_file *ent, int sectorcount, |
@@ -87,13 +87,13 @@ extern int fat_readwrite(struct fat_file *ent, int sectorcount, | |||
87 | extern int fat_closewrite(struct fat_file *ent, int size, int attr); | 87 | extern int fat_closewrite(struct fat_file *ent, int size, int attr); |
88 | extern int fat_seek(struct fat_file *ent, unsigned int sector ); | 88 | extern int fat_seek(struct fat_file *ent, unsigned int sector ); |
89 | extern int fat_remove(struct fat_file *ent); | 89 | extern int fat_remove(struct fat_file *ent); |
90 | extern int fat_truncate(struct fat_file *ent); | 90 | extern int fat_truncate(const struct fat_file *ent); |
91 | extern int fat_rename(struct fat_file* file, | 91 | extern int fat_rename(struct fat_file* file, |
92 | unsigned char* newname, | 92 | const unsigned char* newname, |
93 | int size, int attr); | 93 | int size, int attr); |
94 | 94 | ||
95 | extern int fat_opendir(struct fat_dir *ent, unsigned int currdir, | 95 | extern int fat_opendir(struct fat_dir *ent, unsigned int currdir, |
96 | struct fat_dir *parent_dir); | 96 | const struct fat_dir *parent_dir); |
97 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); | 97 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); |
98 | extern int fat_get_cluster_size(void); | 98 | extern int fat_get_cluster_size(void); |
99 | 99 | ||