VirtualBox

Changeset 46980 in vbox for trunk/include/iprt/manifest.h


Ignore:
Timestamp:
Jul 4, 2013 11:38:28 AM (11 years ago)
Author:
vboxsync
Message:

Deprecated the old manifest API. r=bird: IPRT does NOT use ugly C++ references, it pointers directly - no cloak and dagger pointers thank you. Please don't reformat if expressions into unreadability. RTDIGESTTYPE_UNKNOWN should be RTDIGESTTYPE_INVALID and there is actually no need to set output variables on failure, just check the status code.

File:
1 edited

Legend:

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

    r45227 r46980  
    6161typedef enum RTDIGESTTYPE
    6262{
    63     /** unknown digest */
    64     RTDIGESTTYPE_UNKNOWN,
    65     /** CRC32 checksum */
    66     RTDIGESTTYPE_CRC32 = 1,
    67     /** CRC64 checksum */
     63    /** Invalid digest value. */
     64    RTDIGESTTYPE_INVALID = 0,
     65    /** CRC32 checksum. */
     66    RTDIGESTTYPE_CRC32,
     67    /** CRC64 checksum. */
    6868    RTDIGESTTYPE_CRC64,
    69     /** MD5 checksum (unsafe!) */
     69    /** MD5 checksum (unsafe!). */
    7070    RTDIGESTTYPE_MD5,
    71     /** SHA1 checksum (unsafe!) */
     71    /** SHA1 checksum (unsafe!). */
    7272    RTDIGESTTYPE_SHA1,
    73     /** SHA256 checksum */
     73    /** SHA256 checksum. */
    7474    RTDIGESTTYPE_SHA256,
    75     /** SHA512 checksum */
    76     RTDIGESTTYPE_SHA512
     75    /** SHA512 checksum. */
     76    RTDIGESTTYPE_SHA512,
     77    /** Usual 32-bit type blowup. */
     78    RTDIGESTTYPE_32BIT_HACK = 0x7fffffff
    7779} RTDIGESTTYPE;
    7880/** @} */
     
    448450 *                               VERR_MANIFEST_DIGEST_MISMATCH error case
    449451 *                               (optional).
     452 * @deprecated Use the RTMANIFEST based API instead.
    450453 */
    451454RTR3DECL(int) RTManifestVerify(const char *pszManifestFile, PRTMANIFESTTEST paTests, size_t cTests, size_t *piFailed);
     
    465468 * @param   pfnProgressCallback  optional callback for the progress indication
    466469 * @param   pvUser               user defined pointer for the callback
     470 * @deprecated Use the RTMANIFEST based API instead.
    467471 */
    468472RTR3DECL(int) RTManifestVerifyFiles(const char *pszManifestFile, const char * const *papszFiles, size_t cFiles, size_t *piFailed,
     
    482486 * @param   pfnProgressCallback  optional callback for the progress indication
    483487 * @param   pvUser               user defined pointer for the callback
     488 * @deprecated Use the RTMANIFEST based API instead.
    484489 */
    485490RTR3DECL(int) RTManifestWriteFiles(const char *pszManifestFile, RTDIGESTTYPE enmDigestType,
     
    488493
    489494/**
    490  * Verify the type of digest in the manifest file in memory.
     495 * Queries the first digest type found in the given manifest.
    491496 *
    492497 * @returns iprt status code.
     
    494499 * @param   pvBuf                Pointer to memory buffer of the manifest file.
    495500 * @param   cbSize               Size of the memory buffer.
    496  *                               VERR_MANIFEST_DIGEST_MISMATCH error case
    497  *                               (optional).
    498  * @param   digestType           digest type
    499  */
    500 RTR3DECL(int) RTManifestVerifyDigestType(void *pvBuf, size_t cbSize, RTDIGESTTYPE &digestType);
     501 * @param   penmDigestType       Where to return the first digest type found in
     502 *                               the manifest.
     503 * @deprecated Use the RTMANIFEST based API instead.
     504 */
     505RTR3DECL(int) RTManifestVerifyDigestType(void const *pvBuf, size_t cbSize, RTDIGESTTYPE *penmDigestType);
    501506
    502507/**
     
    513518 *                               VERR_MANIFEST_DIGEST_MISMATCH error case
    514519 *                               (optional).
     520 * @deprecated Use the RTMANIFEST based API instead.
    515521 */
    516522RTR3DECL(int) RTManifestVerifyFilesBuf(void *pvBuf, size_t cbSize, PRTMANIFESTTEST paTests, size_t cTests, size_t *piFailed);
     
    528534 * @param   paFiles              Array of file names and digests.
    529535 * @param   cFiles               Number of entries in paFiles.
     536 * @deprecated Use the RTMANIFEST based API instead.
    530537 */
    531538RTR3DECL(int) RTManifestWriteFilesBuf(void **ppvBuf, size_t *pcbSize, RTDIGESTTYPE enmDigestType, PRTMANIFESTTEST paFiles, size_t cFiles);
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