- Timestamp:
- Oct 26, 2010 9:12:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/isofs.h
r32997 r33449 63 63 uint8_t minute; 64 64 uint8_t second; 65 int8_t 65 int8_t gmt_offset; 66 66 } RTISOFSDATESHORT, *PRTISOFSDATESHORT; 67 67 … … 81 81 typedef struct RTISOFSDIRRECORD 82 82 { 83 84 85 83 uint8_t record_length; 84 uint8_t extented_attr_length; 85 uint32_t extent_location; 86 86 uint32_t extent_location_big; 87 87 uint32_t extent_data_length; /* Number of bytes (file) / len (directory). */ 88 88 uint32_t extent_data_length_big; 89 89 RTISOFSDATESHORT date; 90 91 90 uint8_t flags; 91 uint8_t interleave_unit_size; 92 92 uint8_t interleave_gap_size; 93 93 uint16_t volume_sequence_number; 94 94 uint16_t volume_sequence_number_big; 95 95 uint8_t name_len; 96 96 /* Starting here there will be the actual directory entry name 97 97 * and a padding of 1 byte if name_len is odd. */ … … 101 101 typedef struct RTISOFSPRIVOLDESC 102 102 { 103 104 105 106 107 108 109 110 103 uint8_t type; 104 char name_id[6]; 105 uint8_t version; 106 char system_id[RTISOFS_MAX_SYSTEM_ID]; 107 char volume_id[RTISOFS_MAX_VOLUME_ID]; 108 uint8_t unused2[8]; 109 uint32_t volume_space_size; /* Number of sectors, Little Endian. */ 110 uint32_t volume_space_size_big; /* Number of sectors Big Endian. */ 111 111 uint8_t unused3[32]; 112 112 uint16_t volume_set_size; 113 113 uint16_t volume_set_size_big; 114 114 uint16_t volume_sequence_number; … … 116 116 uint16_t logical_block_size; /* 2048. */ 117 117 uint16_t logical_block_size_big; 118 119 118 uint32_t path_table_size; /* Size in bytes. */ 119 uint32_t path_table_size_big; /* Size in bytes. */ 120 120 uint32_t path_table_start_first; 121 121 uint32_t path_table_start_second; … … 172 172 #ifdef IN_RING3 173 173 /** 174 * 175 * 176 * @return int 177 * 178 * @param pszFileName 179 * @param pFile 174 * Opens an ISO file. 175 * 176 * The following limitations apply: 177 * - Fixed sector size (2048 bytes). 178 * - No extensions (Joliet, RockRidge etc.) support (yet). 179 * - Only primary volume descriptor (PVD) handled. 180 * 181 * @return IPRT status code. 182 * @param pFile Pointer to ISO handle. 183 * @param pszFileName Path to ISO file to open. 180 184 */ 181 185 RTR3DECL(int) RTIsoFsOpen(PRTISOFSFILE pFile, const char *pszFileName); 182 186 183 187 /** 184 * 185 * 186 * 187 * @param pFile 188 * Closes an ISO file. 189 * 190 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 188 191 */ 189 192 RTR3DECL(void) RTIsoFsClose(PRTISOFSFILE pFile); 190 193 191 194 /** 192 * 193 * 194 * @return int195 * 196 * @param pFile 197 * @param pszPath 198 * @param pcbOffset 199 * @param pcbLength 195 * Retrieves the offset + length (both in bytes) of a given file 196 * stored in the ISO. 197 * 198 * @return IPRT status code. 199 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 200 * @param pszPath Path of file within the ISO to retrieve information for. 201 * @param pcbOffset Pointer to store the file's absolute offset within the ISO. 202 * @param pcbLength Pointer to store the file's size. 200 203 */ 201 204 RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath, … … 203 206 204 207 /** 205 * 206 * 207 * @return int 208 * 209 * @param pFile 210 * @param pszSource 211 * @param pszDest 208 * Extracts a file from an ISO to the given destination. 209 * 210 * @return IPRT status code. 211 * @param pFile Pointer to open ISO file returned by RTIsoFsOpen(). 212 * @param pszPath Path of file within the ISO to extract. 213 * @param pszDest Where to store the extracted file. 212 214 */ 213 215 RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSource,
Note:
See TracChangeset
for help on using the changeset viewer.