VirtualBox

Changeset 9738 in vbox for trunk/include


Ignore:
Timestamp:
Jun 16, 2008 10:38:49 PM (17 years ago)
Author:
vboxsync
Message:

Some UUID cleanup; added RTUuidCompareStr(PCRTUUID, const char *).

Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/Guid.h

    r9332 r9738  
    103103    }
    104104
    105     bool isEmpty() const { return ::RTUuidIsNull (&uuid) != 0; }
     105    bool isEmpty() const { return ::RTUuidIsNull (&uuid); }
    106106    operator bool() const { return !isEmpty(); }
    107107
     
    173173    static bool isEmpty (const GUID &guid)
    174174    {
    175         return ::RTUuidIsNull ((PRTUUID) &guid) != 0;
     175        return ::RTUuidIsNull ((PRTUUID) &guid);
    176176    }
    177177
  • trunk/include/iprt/uuid.h

    r8245 r9738  
    6363 * @param   pUuid           uuid to check.
    6464 */
    65 RTDECL(int)  RTUuidIsNull(PCRTUUID pUuid);
     65RTDECL(bool)  RTUuidIsNull(PCRTUUID pUuid);
    6666
    6767/**
     
    7575
    7676/**
     77 * Compares a UUID value with a UUID string.
     78 *
     79 * @returns 0 if eq, < 0 or > 0.
     80 * @param   pUuid1          First value to compare.
     81 * @param   pszString2      The 2nd UUID in string form.
     82 */
     83RTDECL(int)  RTUuidCompareStr(PCRTUUID pUuid1, const char *pszString);
     84
     85/**
    7786 * Converts binary UUID to its string representation.
    7887 *
     
    8291 * @param   cchString       pszString buffer length, must be >= RTUUID_STR_LENGTH.
    8392 */
    84 RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, unsigned cchString);
     93RTDECL(int)  RTUuidToStr(PCRTUUID pUuid, char *pszString, size_t cchString);
    8594
    8695/**
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