summaryrefslogtreecommitdiff
path: root/firmware/export/fat.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/fat.h')
-rw-r--r--firmware/export/fat.h12
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
72extern int fat_mount(int startsector); 72extern int fat_mount(int startsector);
73extern void fat_size(unsigned int* size, unsigned int* free); 73extern void fat_size(unsigned int* size, unsigned int* free);
74extern void fat_recalc_free(void); 74extern void fat_recalc_free(void);
75extern int fat_create_dir(char* name, 75extern 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);
78extern int fat_startsector(void); 78extern int fat_startsector(void);
79extern int fat_open(unsigned int cluster, 79extern 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);
82extern int fat_create_file(char* name, 82extern 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);
85extern int fat_readwrite(struct fat_file *ent, int sectorcount, 85extern int fat_readwrite(struct fat_file *ent, int sectorcount,
@@ -87,13 +87,13 @@ extern int fat_readwrite(struct fat_file *ent, int sectorcount,
87extern int fat_closewrite(struct fat_file *ent, int size, int attr); 87extern int fat_closewrite(struct fat_file *ent, int size, int attr);
88extern int fat_seek(struct fat_file *ent, unsigned int sector ); 88extern int fat_seek(struct fat_file *ent, unsigned int sector );
89extern int fat_remove(struct fat_file *ent); 89extern int fat_remove(struct fat_file *ent);
90extern int fat_truncate(struct fat_file *ent); 90extern int fat_truncate(const struct fat_file *ent);
91extern int fat_rename(struct fat_file* file, 91extern 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
95extern int fat_opendir(struct fat_dir *ent, unsigned int currdir, 95extern int fat_opendir(struct fat_dir *ent, unsigned int currdir,
96 struct fat_dir *parent_dir); 96 const struct fat_dir *parent_dir);
97extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); 97extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry);
98extern int fat_get_cluster_size(void); 98extern int fat_get_cluster_size(void);
99 99