freemyipod r298 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r297‎ | r298 | r299 >
Date:19:23, 1 December 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Get rid of the SECTOR_SIZE constant in apps.
Modified paths:
  • /embios/trunk/dir.h (modified) (history)
  • /embios/trunk/fat.h (modified) (history)

Diff [purge]

Index: embios/trunk/fat.h
@@ -19,6 +19,7 @@
2020 *
2121 ****************************************************************************/
2222
 23+#ifndef IN_APPLICATION_CODE
2324 #ifndef FAT_H
2425 #define FAT_H
2526
@@ -133,3 +134,4 @@
134135 extern void fat_release_sector_buffer(void);
135136
136137 #endif
 138+#endif
Index: embios/trunk/dir.h
@@ -42,6 +42,9 @@
4343 unsigned short wrttime; /* Last write time */
4444 };
4545
 46+#ifdef IN_APPLICATION_CODE
 47+#define DIR void
 48+#else
4649 #include "fat.h"
4750
4851 typedef struct {
@@ -54,6 +57,7 @@
5558 int volumecounter; /* running counter for faked volume entries */
5659 #endif
5760 } DIR;
 61+#endif
5862
5963 #ifdef HAVE_HOTSWAP
6064 char *get_volume_name(int volume);