Changeset 67840 in vbox for trunk/include/iprt
- Timestamp:
- Jul 6, 2017 4:28:35 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116776
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/iso9660.h
r67838 r67840 928 928 typedef ISO9660SUSPHDR const *PCISO9660SUSPHDR; 929 929 930 930 931 /** 931 932 * SUSP continuation entry (CE). … … 942 943 ISO9660U32 cbData; 943 944 } ISO9660SUSPCE; 944 AssertCompileSize(ISO9660SUSPCE, 28);945 945 /** Pointer to a SUSP continuation entry. */ 946 946 typedef ISO9660SUSPCE *PISO9660SUSPCE; … … 951 951 #define ISO9660SUSPCE_LEN 28 /**< SUSP continutation entry length. */ 952 952 #define ISO9660SUSPCE_VER 1 /**< SUSP continutation entry version number. */ 953 AssertCompileSize(ISO9660SUSPCE, ISO9660SUSPCE_LEN); 954 953 955 954 956 /** … … 970 972 #define ISO9660SUSPPD_VER 1 /**< SUSP padding entry version number. */ 971 973 974 972 975 /** 973 976 * SUSP system use protocol entry (SP) … … 988 991 uint8_t cbSkip; 989 992 } ISO9660SUSPSP; 990 AssertCompileSize(ISO9660SUSPSP, 7);991 993 /** Pointer to a SUSP entry. */ 992 994 typedef ISO9660SUSPSP *PISO9660SUSPSP; … … 999 1001 #define ISO9660SUSPSP_CHECK1 UINT8_C(0xbe) /**< SUSP system use protocol entry check byte 1. */ 1000 1002 #define ISO9660SUSPSP_CHECK2 UINT8_C(0xef) /**< SUSP system use protocol entry check byte 2. */ 1003 AssertCompileSize(ISO9660SUSPSP, ISO9660SUSPSP_LEN); 1004 1001 1005 1002 1006 /** … … 1011 1015 ISO9660SUSPHDR Hdr; 1012 1016 } ISO9660SUSPST; 1013 AssertCompileSize(ISO9660SUSPST, 4);1014 1017 /** Pointer to a SUSP padding entry. */ 1015 1018 typedef ISO9660SUSPST *PISO9660SUSPST; … … 1020 1023 #define ISO9660SUSPST_VER 1 /**< SUSP system use protocol entry version number. */ 1021 1024 #define ISO9660SUSPST_LEN 4 /**< SUSP system use protocol entry length (fixed). */ 1025 AssertCompileSize(ISO9660SUSPST, ISO9660SUSPST_LEN); 1026 1022 1027 1023 1028 /** … … 1043 1048 char achPayload[RT_FLEXIBLE_ARRAY_IN_NESTED_UNION]; 1044 1049 } ISO9660SUSPER; 1045 AssertCompileMemberOffset(ISO9660SUSPER, achPayload, 8);1046 1050 /** Pointer to a SUSP padding entry. */ 1047 1051 typedef ISO9660SUSPER *PISO9660SUSPER; … … 1051 1055 #define ISO9660SUSPER_SIG2 'R' /**< SUSP extension record entry signature byte 2. */ 1052 1056 #define ISO9660SUSPER_VER 1 /**< SUSP extension record entry version number. */ 1057 #define ISO9660SUSPER_OFF_PAYLOAD 8 /**< SUSP extension record entry payload member offset. */ 1058 AssertCompileMemberOffset(ISO9660SUSPER, achPayload, ISO9660SUSPER_OFF_PAYLOAD); 1053 1059 1054 1060 /** … … 1064 1070 uint8_t iFirstExtension; 1065 1071 } ISO9660SUSPES; 1066 AssertCompileSize(ISO9660SUSPES, 5);1067 1072 /** Pointer to a SUSP padding entry. */ 1068 1073 typedef ISO9660SUSPES *PISO9660SUSPES; … … 1073 1078 #define ISO9660SUSPES_VER 1 /**< SUSP extension sequence entry version number. */ 1074 1079 #define ISO9660SUSPES_LEN 5 /**< SUSP extension sequence entry length (fixed). */ 1080 AssertCompileSize(ISO9660SUSPES, ISO9660SUSPES_LEN); 1075 1081 1076 1082 … … 1084 1090 * The record must be constructed using ISO9660_RRIP_ID, ISO9660_RRIP_DESC 1085 1091 * and ISO9660_RRIP_SRC. */ 1086 #define ISO9660_RRIP_ER_LEN ((uint8_t)( RT_OFFSETOF(ISO9660SUSPER, achPayload)\1092 #define ISO9660_RRIP_ER_LEN ((uint8_t)( ISO9660SUSPER_OFF_PAYLOAD \ 1087 1093 + sizeof(ISO9660_RRIP_ID) - 1 \ 1088 1094 + sizeof(ISO9660_RRIP_DESC) - 1 \ … … 1098 1104 * The record must be constructed using ISO9660_RRIP_1_12_ID, 1099 1105 * ISO9660_RRIP_1_12_DESC and ISO9660_RRIP_1_12_SRC. */ 1100 #define ISO9660_RRIP_1_12_ER_LEN ((uint8_t)( RT_OFFSETOF(ISO9660SUSPER, achPayload)\1106 #define ISO9660_RRIP_1_12_ER_LEN ((uint8_t)( ISO9660SUSPER_OFF_PAYLOAD \ 1101 1107 + sizeof(ISO9660_RRIP_1_12_ID) - 1 \ 1102 1108 + sizeof(ISO9660_RRIP_1_12_DESC) - 1 \ … … 1115 1121 uint8_t fFlags; 1116 1122 } ISO9660RRIPRR; 1117 AssertCompileSize(ISO9660RRIPRR, 5);1118 1123 /** Pointer to a RRIP RR entry. */ 1119 1124 typedef ISO9660RRIPRR *PISO9660RRIPRR; … … 1124 1129 #define ISO9660RRIPRR_VER 1 /**< RRIP RR entry version number. */ 1125 1130 #define ISO9660RRIPRR_LEN 5 /**< RRIP RR entry length (fixed). */ 1131 AssertCompileSize(ISO9660RRIPRR, ISO9660RRIPRR_LEN); 1126 1132 1127 1133 /** @name ISO9660RRIP_RR_F_XXX - Indicates which RRIP entries are present. … … 1156 1162 ISO9660U32 INode; 1157 1163 } ISO9660RRIPPX; 1158 AssertCompileSize(ISO9660RRIPPX, 44);1159 1164 /** Pointer to a RRIP posix attribute entry. */ 1160 1165 typedef ISO9660RRIPPX *PISO9660RRIPPX; … … 1165 1170 #define ISO9660RRIPPX_VER 1 /**< RRIP posix attribute entry version number. */ 1166 1171 #define ISO9660RRIPPX_LEN 44 /**< RRIP posix attribute entry length (fixed). */ 1172 AssertCompileSize(ISO9660RRIPPX, ISO9660RRIPPX_LEN); 1167 1173 1168 1174 … … 1235 1241 ISO9660U32 Minor; 1236 1242 } ISO9660RRIPPN; 1237 AssertCompileSize(ISO9660RRIPPN, 20);1238 1243 /** Pointer to a RRIP posix attribute entry. */ 1239 1244 typedef ISO9660RRIPPN *PISO9660RRIPPN; … … 1244 1249 #define ISO9660RRIPPN_VER 1 /**< RRIP posix device number entry version number. */ 1245 1250 #define ISO9660RRIPPN_LEN 20 /**< RRIP posix device number entry length (fixed). */ 1251 AssertCompileSize(ISO9660RRIPPN, ISO9660RRIPPN_LEN); 1246 1252 1247 1253 /** … … 1348 1354 ISO9660U32 offExtend; 1349 1355 } ISO9660RRIPCL; 1350 AssertCompileSize(ISO9660RRIPCL, 12);1351 1356 /** Pointer to a RRIP child link entry. */ 1352 1357 typedef ISO9660RRIPCL *PISO9660RRIPCL; … … 1357 1362 #define ISO9660RRIPCL_VER 1 /**< RRIP child link entry version number. */ 1358 1363 #define ISO9660RRIPCL_LEN 12 /**< RRIP child link entry length. */ 1364 AssertCompileSize(ISO9660RRIPCL, ISO9660RRIPCL_LEN); 1359 1365 1360 1366 … … 1377 1383 ISO9660U32 offExtend; 1378 1384 } ISO9660RRIPPL; 1379 AssertCompileSize(ISO9660RRIPPL, 12);1380 1385 /** Pointer to a RRIP parent link entry. */ 1381 1386 typedef ISO9660RRIPPL *PISO9660RRIPPL; … … 1386 1391 #define ISO9660RRIPPL_VER 1 /**< RRIP parent link entry version number. */ 1387 1392 #define ISO9660RRIPPL_LEN 12 /**< RRIP parent link entry length. */ 1393 AssertCompileSize(ISO9660RRIPPL, ISO9660RRIPPL_LEN); 1388 1394 1389 1395 … … 1401 1407 ISO9660SUSPHDR Hdr; 1402 1408 } ISO9660RRIPRE; 1403 AssertCompileSize(ISO9660RRIPRE, 4);1404 1409 /** Pointer to a RRIP parent link entry. */ 1405 1410 typedef ISO9660RRIPRE *PISO9660RRIPRE; … … 1410 1415 #define ISO9660RRIPRE_VER 1 /**< RRIP relocated entry version number. */ 1411 1416 #define ISO9660RRIPRE_LEN 4 /**< RRIP relocated entry length. */ 1417 AssertCompileSize(ISO9660RRIPRE, ISO9660RRIPRE_LEN); 1412 1418 1413 1419 … … 1429 1435 } ISO9660RRIPSF; 1430 1436 #pragma pack() 1431 AssertCompileSize(ISO9660RRIPSF, 21);1432 1437 /** Pointer to a RRIP symbolic link entry. */ 1433 1438 typedef ISO9660RRIPSF *PISO9660RRIPSF; … … 1438 1443 #define ISO9660RRIPSF_VER 1 /**< RRIP spare file entry version number. */ 1439 1444 #define ISO9660RRIPSF_LEN 21 /**< RRIP spare file entry length. */ 1445 AssertCompileSize(ISO9660RRIPSF, ISO9660RRIPSF_LEN); 1440 1446 1441 1447 /** @name ISO9660RRIP_SF_TAB_F_XXX - Sparse table format. … … 1465 1471 ISO9660SUSPER ER; /**< SUSP extension record entry. */ 1466 1472 ISO9660SUSPES ES; /**< SUSP extension sequence entry. */ 1473 ISO9660RRIPRR RR; /**< RRIP optimization entry. */ 1467 1474 ISO9660RRIPPX PX; /**< RRIP posix attribute entry. */ 1468 1475 ISO9660RRIPTF TF; /**< RRIP timestamp entry. */
Note:
See TracChangeset
for help on using the changeset viewer.