diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-08-17 12:18:22 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-08-17 12:18:22 -0400 |
commit | a56f1ca1ed63b93eb61fd5319f47347b3eb1e364 (patch) | |
tree | 62a253ba44b23c1867cef59fee40b40092719ee1 /firmware/export/fat.h | |
parent | c13f21a4d5c27c638c9f0dedf6d7b1f9bbb4d682 (diff) | |
download | rockbox-a56f1ca1ed63b93eb61fd5319f47347b3eb1e364.tar.gz rockbox-a56f1ca1ed63b93eb61fd5319f47347b3eb1e364.zip |
Cleanup MV/MD macros a little.
When using variadic macros there's no need for IF_MD2/IF_MV2 to deal
with function parameters. IF_MD/IF_MV are enough.
Throw in IF_MD_DRV/ID_MV_VOL that return the parameter if MD/MV, or 0
if not.
Change-Id: I7605e6039f3be19cb47110c84dcb3c5516f2c3eb
Diffstat (limited to 'firmware/export/fat.h')
-rw-r--r-- | firmware/export/fat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/fat.h b/firmware/export/fat.h index 15511076e2..a0d52acc35 100644 --- a/firmware/export/fat.h +++ b/firmware/export/fat.h | |||
@@ -101,16 +101,16 @@ extern void fat_unlock(void); | |||
101 | 101 | ||
102 | extern void fat_init(void); | 102 | extern void fat_init(void); |
103 | extern int fat_get_bytes_per_sector(IF_MV_NONVOID(int volume)); | 103 | extern int fat_get_bytes_per_sector(IF_MV_NONVOID(int volume)); |
104 | extern int fat_mount(IF_MV2(int volume,) IF_MD2(int drive,) long startsector); | 104 | extern int fat_mount(IF_MV(int volume,) IF_MD(int drive,) long startsector); |
105 | extern int fat_unmount(int volume, bool flush); | 105 | extern int fat_unmount(int volume, bool flush); |
106 | extern void fat_size(IF_MV2(int volume,) /* public for info */ | 106 | extern void fat_size(IF_MV(int volume,) /* public for info */ |
107 | unsigned long* size, | 107 | unsigned long* size, |
108 | unsigned long* free); | 108 | unsigned long* free); |
109 | extern void fat_recalc_free(IF_MV_NONVOID(int volume)); /* public for debug info screen */ | 109 | extern void fat_recalc_free(IF_MV_NONVOID(int volume)); /* public for debug info screen */ |
110 | extern int fat_create_dir(const char* name, | 110 | extern int fat_create_dir(const char* name, |
111 | struct fat_dir* newdir, | 111 | struct fat_dir* newdir, |
112 | struct fat_dir* dir); | 112 | struct fat_dir* dir); |
113 | extern int fat_open(IF_MV2(int volume,) | 113 | extern int fat_open(IF_MV(int volume,) |
114 | long cluster, | 114 | long cluster, |
115 | struct fat_file* ent, | 115 | struct fat_file* ent, |
116 | const struct fat_dir* dir); | 116 | const struct fat_dir* dir); |
@@ -128,7 +128,7 @@ extern int fat_rename(struct fat_file* file, | |||
128 | const unsigned char* newname, | 128 | const unsigned char* newname, |
129 | long size, int attr); | 129 | long size, int attr); |
130 | 130 | ||
131 | extern int fat_opendir(IF_MV2(int volume,) | 131 | extern int fat_opendir(IF_MV(int volume,) |
132 | struct fat_dir *ent, unsigned long startcluster, | 132 | struct fat_dir *ent, unsigned long startcluster, |
133 | const struct fat_dir *parent_dir); | 133 | const struct fat_dir *parent_dir); |
134 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); | 134 | extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); |