VirtualBox

Changeset 69035 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Oct 11, 2017 9:38:54 AM (7 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r69029 r69035  
    30493049/** File set descriptor has a next extent member. */
    30503050#define VERR_ISOFS_FSD_NEXT_EXTENT                      (-25333)
    3051 /** The ICB for a directory is too big. */
    3052 #define VERR_ISOFS_DIR_ICB_TOO_BIG                      (-25334)
    3053 /** The ICB for a directory is too small. */
    3054 #define VERR_ISOFS_DIR_ICB_TOO_SMALL                    (-25335)
     3051/** The ICB for is too big. */
     3052#define VERR_ISOFS_ICB_TOO_BIG                          (-25334)
     3053/** The ICB for is too small. */
     3054#define VERR_ISOFS_ICB_TOO_SMALL                        (-25335)
    30553055/** No direct ICB entries found. */
    30563056#define VERR_ISOFS_NO_DIRECT_ICB_ENTRIES                (-25336)
     
    30603060#define VERR_ISOFS_TOO_DEEP_ICB_RECURSION               (-25338)
    30613061/** ICB is too small to contain anything useful.   */
    3062 #define VERR_ISOFS_ICB_TOO_SMALL                        (-25339)
     3062#define VERR_ISOFS_ICB_ENTRY_TOO_SMALL                  (-25339)
    30633063/** Unsupported tag encountered in ICB. */
    30643064#define VERR_ISOFS_UNSUPPORTED_ICB                      (-25340)
     
    30743074#define VERR_ISOFS_UNKNOWN_FILE_TYPE                    (-25345)
    30753075
     3076/** Not implemented for UDF. */
     3077#define VERR_ISOFS_UDF_NOT_IMPLEMENTED                  (-25390)
    30763078/** Internal processing error \#1.  */
    30773079#define VERR_ISOFS_IPE_1                                (-25391)
  • 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.

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