VirtualBox

Changeset 77970 in vbox


Ignore:
Timestamp:
Apr 1, 2019 1:35:07 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/dvm: s/offEnd/offLast - see coding guidelines on 'end' vs 'last'.

Location:
trunk/src/VBox/Runtime
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/dvm/dvm.cpp

    r77256 r77970  
    663663}
    664664
    665 RTDECL(int) RTDvmVolumeQueryRange(RTDVMVOLUME hVol, uint64_t *poffStart, uint64_t *poffEnd)
     665RTDECL(int) RTDvmVolumeQueryRange(RTDVMVOLUME hVol, uint64_t *poffStart, uint64_t *poffLast)
    666666{
    667667    PRTDVMVOLUMEINTERNAL pThis = hVol;
     
    669669    AssertReturn(pThis->u32Magic == RTDVMVOLUME_MAGIC, VERR_INVALID_HANDLE);
    670670    AssertPtrReturn(poffStart, VERR_INVALID_POINTER);
    671     AssertPtrReturn(poffEnd, VERR_INVALID_POINTER);
    672 
    673     return pThis->pVolMgr->pDvmFmtOps->pfnVolumeQueryRange(pThis->hVolFmt, poffStart, poffEnd);
     671    AssertPtrReturn(poffLast, VERR_INVALID_POINTER);
     672
     673    return pThis->pVolMgr->pDvmFmtOps->pfnVolumeQueryRange(pThis->hVolFmt, poffStart, poffLast);
    674674}
    675675
  • trunk/src/VBox/Runtime/common/dvm/dvmbsdlabel.cpp

    r77256 r77970  
    483483}
    484484
    485 static DECLCALLBACK(int) rtDvmFmtBsdLblVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffEnd)
     485static DECLCALLBACK(int) rtDvmFmtBsdLblVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast)
    486486{
    487487    PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt;
    488488    *poffStart = pVol->offStart;
    489     *poffEnd   = pVol->offStart + pVol->cbVolume - 1;
     489    *poffLast  = pVol->offStart + pVol->cbVolume - 1;
    490490    return VINF_SUCCESS;
    491491}
  • trunk/src/VBox/Runtime/common/dvm/dvmgpt.cpp

    r77256 r77970  
    497497}
    498498
    499 static DECLCALLBACK(int) rtDvmFmtGptVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffEnd)
     499static DECLCALLBACK(int) rtDvmFmtGptVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast)
    500500{
    501501    PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt;
    502502    *poffStart = pVol->offStart;
    503     *poffEnd   = pVol->offStart + pVol->cbVolume - 1;
     503    *poffLast  = pVol->offStart + pVol->cbVolume - 1;
    504504    return VINF_SUCCESS;
    505505}
  • trunk/src/VBox/Runtime/common/dvm/dvmmbr.cpp

    r77256 r77970  
    648648}
    649649
    650 static DECLCALLBACK(int) rtDvmFmtMbrVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffEnd)
     650static DECLCALLBACK(int) rtDvmFmtMbrVolumeQueryRange(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast)
    651651{
    652652    PRTDVMVOLUMEFMTINTERNAL pVol = hVolFmt;
    653653    *poffStart = pVol->pEntry->offPart;
    654     *poffEnd   = pVol->pEntry->offPart + pVol->pEntry->cbPart - 1;
     654    *poffLast  = pVol->pEntry->offPart + pVol->pEntry->cbPart - 1;
    655655    return VINF_SUCCESS;
    656656}
  • trunk/src/VBox/Runtime/include/internal/dvm.h

    r77256 r77970  
    220220     * @returns IPRT status code.
    221221     * @param   hVolFmt         The format specific volume handle.
    222      * @param   poffStart       Where to store the start offset in bytes on the underlying medium.
    223      * @param   poffEnd         Where to store the end offset in bytes on the underlying medium (inclusive).
    224      */
    225     DECLCALLBACKMEMBER(int, pfnVolumeQueryRange)(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffEnd);
     222     * @param   poffStart       Where to store the start byte offset on the
     223     *                          underlying medium.
     224     * @param   poffLast        Where to store the last byte offset on the
     225     *                          underlying medium (inclusive).
     226     */
     227    DECLCALLBACKMEMBER(int, pfnVolumeQueryRange)(RTDVMVOLUMEFMT hVolFmt, uint64_t *poffStart, uint64_t *poffLast);
    226228
    227229    /**
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