equal
deleted
inserted
replaced
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
17 #ifndef __FAT_DEFINES_HEADER__ |
17 #ifndef __FAT_DEFINES_HEADER__ |
18 #define __FAT_DEFINES_HEADER__ |
18 #define __FAT_DEFINES_HEADER__ |
|
19 #include <time.h> |
19 #include <e32std.h> |
20 #include <e32std.h> |
20 struct TFATBootSector { |
21 struct TFATBootSector { |
21 TUint8 BS_jmpBoot[3]; |
22 TUint8 BS_jmpBoot[3]; |
22 TUint8 BS_OEMName[8]; |
23 TUint8 BS_OEMName[8]; |
23 TUint8 BPB_BytsPerSec[2]; |
24 TUint8 BPB_BytsPerSec[2]; |
128 char iDriveVolumeLabel[12]; |
129 char iDriveVolumeLabel[12]; |
129 TInt64 iImageSize ; |
130 TInt64 iImageSize ; |
130 TUint16 iDriveSectorSize; |
131 TUint16 iDriveSectorSize; |
131 TUint32 iDriveClusterSize; |
132 TUint32 iDriveClusterSize; |
132 TUint8 iDriveNoOfFATs; |
133 TUint8 iDriveNoOfFATs; |
|
134 TUint32 iVolumeId; |
133 ConfigurableFatAttributes():iImageSize(0),iDriveSectorSize(512),iDriveClusterSize(0),iDriveNoOfFATs(2){ |
135 ConfigurableFatAttributes():iImageSize(0),iDriveSectorSize(512),iDriveClusterSize(0),iDriveNoOfFATs(2){ |
134 memcpy(iDriveVolumeLabel,"NO NAME \0",12); |
136 memcpy(iDriveVolumeLabel,"NO NAME \0",12); |
|
137 time_t rawtime; |
|
138 time(&rawtime); |
|
139 iVolumeId = (TUint32)rawtime; |
135 } |
140 } |
136 }; |
141 }; |
137 #endif |
142 #endif |