diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
commit | 0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb (patch) | |
tree | 7fe6cbadea41f09765b631794b71d65fdbbbffbc /firmware/export/fat.h | |
parent | c76c568b351d37c485f78cd185b2d52d54fe7a34 (diff) | |
download | rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.gz rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.zip |
Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
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 extern int fat_mount(int startsector); extern void fat_size(unsigned int* size, unsigned int* free); extern void fat_recalc_free(void); -extern int fat_create_dir(char* name, +extern int fat_create_dir(const char* name, struct fat_dir* newdir, struct fat_dir* dir); extern int fat_startsector(void); extern int fat_open(unsigned int cluster, struct fat_file* ent, - struct fat_dir* dir); -extern int fat_create_file(char* name, + const struct fat_dir* dir); +extern int fat_create_file(const char* name, struct fat_file* ent, struct fat_dir* dir); extern int fat_readwrite(struct fat_file *ent, int sectorcount, @@ -87,13 +87,13 @@ extern int fat_readwrite(struct fat_file *ent, int sectorcount, extern int fat_closewrite(struct fat_file *ent, int size, int attr); extern int fat_seek(struct fat_file *ent, unsigned int sector ); extern int fat_remove(struct fat_file *ent); -extern int fat_truncate(struct fat_file *ent); +extern int fat_truncate(const struct fat_file *ent); extern int fat_rename(struct fat_file* file, - unsigned char* newname, + const unsigned char* newname, int size, int attr); extern int fat_opendir(struct fat_dir *ent, unsigned int currdir, - struct fat_dir *parent_dir); + const struct fat_dir *parent_dir); extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); extern int fat_get_cluster_size(void); |