VirtualBox

Changeset 69035 in vbox for trunk/include/iprt/formats


Ignore:
Timestamp:
Oct 11, 2017 9:38:54 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
118314
Message:

UDF: Implemented directory listing. Works for root, other directories needs traversal and opendir impl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/formats/udf.h

    r69029 r69035  
    10331033
    10341034/** Get the pointer to the name field. */
    1035 #define UDFFILEIDDESC_2_NAME(a_pFid)        ((char *)(&(a_pFid)->abImplementationUse[(a_pFid)->cbImplementationUse]))
     1035#define UDFFILEIDDESC_2_NAME(a_pFid)        ((uint8_t const *)(&(a_pFid)->abImplementationUse[(a_pFid)->cbImplementationUse]))
    10361036/** Calculates the total size the size of a record.  */
    10371037#define UDFFILEIDDESC_CALC_SIZE_EX(cbImplementationUse, cbName) \
    1038     RT_ALIGN_Z(RT_UOFFSETOF(UDFFILEIDDESC, abImplementationUse) + cbImplementationUse + cbName, 4)
     1038    RT_ALIGN_32((uint32_t)RT_UOFFSETOF(UDFFILEIDDESC, abImplementationUse) + cbImplementationUse + cbName, 4)
    10391039/** Gets the actual size of a record. */
    1040 #define UDFFILEIDDESC_GET_SIZE(a_pFid)      UDFFILEIDDESC_CALC_SIZE_EX((a_pFid)->cbImplementationUse + (a_pFid)->cbName)
     1040#define UDFFILEIDDESC_GET_SIZE(a_pFid)      UDFFILEIDDESC_CALC_SIZE_EX((a_pFid)->cbImplementationUse, (a_pFid)->cbName)
    10411041
    10421042/** @name UDF_FILE_FLAGS_XXX
     
    10481048/** Deleted - Indicate that the file has been deleted.  Assoicated descriptors may still be valid, though. */
    10491049#define UDF_FILE_FLAGS_DELETED              UINT8_C(0x04)
    1050 /** Parent - Indicate the ICB field refers to the parent directory (or mabye
     1050/** Parent - Indicate the ICB field refers to the parent directory (or maybe
    10511051 * a file in case of streaming directory). */
    10521052#define UDF_FILE_FLAGS_PARENT               UINT8_C(0x08)
Note: See TracChangeset for help on using the changeset viewer.

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