VirtualBox

Changeset 33449 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2010 9:12:29 AM (14 years ago)
Author:
vboxsync
Message:

IPRT/isofs.h: Tabs, documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/isofs.h

    r32997 r33449  
    6363    uint8_t minute;
    6464    uint8_t second;
    65     int8_t      gmt_offset;
     65    int8_t  gmt_offset;
    6666} RTISOFSDATESHORT, *PRTISOFSDATESHORT;
    6767
     
    8181typedef struct RTISOFSDIRRECORD
    8282{
    83         uint8_t record_length;
    84         uint8_t extented_attr_length;
    85         uint32_t extent_location;
     83    uint8_t record_length;
     84    uint8_t extented_attr_length;
     85    uint32_t extent_location;
    8686    uint32_t extent_location_big;
    87         uint32_t extent_data_length; /* Number of bytes (file) / len (directory). */
     87    uint32_t extent_data_length; /* Number of bytes (file) / len (directory). */
    8888    uint32_t extent_data_length_big;
    8989    RTISOFSDATESHORT date;
    90         uint8_t flags;
    91         uint8_t interleave_unit_size;
     90    uint8_t flags;
     91    uint8_t interleave_unit_size;
    9292    uint8_t interleave_gap_size;
    93         uint16_t volume_sequence_number;
     93    uint16_t volume_sequence_number;
    9494    uint16_t volume_sequence_number_big;
    95         uint8_t name_len;
     95    uint8_t name_len;
    9696    /* Starting here there will be the actual directory entry name
    9797     * and a padding of 1 byte if name_len is odd. */
     
    101101typedef struct RTISOFSPRIVOLDESC
    102102{
    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. */
     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. */
    111111    uint8_t unused3[32];
    112         uint16_t volume_set_size;
     112    uint16_t volume_set_size;
    113113    uint16_t volume_set_size_big;
    114114    uint16_t volume_sequence_number;
     
    116116    uint16_t logical_block_size; /* 2048. */
    117117    uint16_t logical_block_size_big;
    118         uint32_t path_table_size; /* Size in bytes. */
    119         uint32_t path_table_size_big; /* Size in bytes. */
     118    uint32_t path_table_size; /* Size in bytes. */
     119    uint32_t path_table_size_big; /* Size in bytes. */
    120120    uint32_t path_table_start_first;
    121121    uint32_t path_table_start_second;
     
    172172#ifdef IN_RING3
    173173/**
    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.
    180184 */
    181185RTR3DECL(int) RTIsoFsOpen(PRTISOFSFILE pFile, const char *pszFileName);
    182186
    183187/**
    184  *
    185  *
    186  *
    187  * @param   pFile
     188 * Closes an ISO file.
     189 *
     190 * @param   pFile       Pointer to open ISO file returned by RTIsoFsOpen().
    188191 */
    189192RTR3DECL(void) RTIsoFsClose(PRTISOFSFILE pFile);
    190193
    191194/**
    192  *
    193  *
    194  * @return  int
    195  *
    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.
    200203 */
    201204RTR3DECL(int) RTIsoFsGetFileInfo(PRTISOFSFILE pFile, const char *pszPath,
     
    203206
    204207/**
    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.
    212214 */
    213215RTR3DECL(int) RTIsoFsExtractFile(PRTISOFSFILE pFile, const char *pszSource,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette