Changeset 57388 in vbox for trunk/src/VBox/Storage/QED.cpp
- Timestamp:
- Aug 17, 2015 2:20:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Storage/QED.cpp
r57358 r57388 1534 1534 1535 1535 /** @copydoc VBOXHDDBACKEND::pfnCheckIfValid */ 1536 static intqedCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk,1537 PVDINTERFACE pVDIfsImage, VDTYPE *penmType)1536 static DECLCALLBACK(int) qedCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk, 1537 PVDINTERFACE pVDIfsImage, VDTYPE *penmType) 1538 1538 { 1539 1539 LogFlowFunc(("pszFilename=\"%s\" pVDIfsDisk=%#p pVDIfsImage=%#p\n", pszFilename, pVDIfsDisk, pVDIfsImage)); … … 1590 1590 1591 1591 /** @copydoc VBOXHDDBACKEND::pfnOpen */ 1592 static intqedOpen(const char *pszFilename, unsigned uOpenFlags,1593 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage,1594 VDTYPE enmType, void **ppBackendData)1592 static DECLCALLBACK(int) qedOpen(const char *pszFilename, unsigned uOpenFlags, 1593 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1594 VDTYPE enmType, void **ppBackendData) 1595 1595 { 1596 1596 LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData)); … … 1639 1639 1640 1640 /** @copydoc VBOXHDDBACKEND::pfnCreate */ 1641 static intqedCreate(const char *pszFilename, uint64_t cbSize,1642 unsigned uImageFlags, const char *pszComment,1643 PCVDGEOMETRY pPCHSGeometry, PCVDGEOMETRY pLCHSGeometry,1644 PCRTUUID pUuid, unsigned uOpenFlags,1645 unsigned uPercentStart, unsigned uPercentSpan,1646 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage,1647 PVDINTERFACE pVDIfsOperation, VDTYPE enmType,1648 void **ppBackendData)1641 static DECLCALLBACK(int) qedCreate(const char *pszFilename, uint64_t cbSize, 1642 unsigned uImageFlags, const char *pszComment, 1643 PCVDGEOMETRY pPCHSGeometry, PCVDGEOMETRY pLCHSGeometry, 1644 PCRTUUID pUuid, unsigned uOpenFlags, 1645 unsigned uPercentStart, unsigned uPercentSpan, 1646 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 1647 PVDINTERFACE pVDIfsOperation, VDTYPE enmType, 1648 void **ppBackendData) 1649 1649 { 1650 1650 LogFlowFunc(("pszFilename=\"%s\" cbSize=%llu uImageFlags=%#x pszComment=\"%s\" pPCHSGeometry=%#p pLCHSGeometry=%#p Uuid=%RTuuid uOpenFlags=%#x uPercentStart=%u uPercentSpan=%u pVDIfsDisk=%#p pVDIfsImage=%#p pVDIfsOperation=%#p enmType=%d ppBackendData=%#p", … … 1725 1725 1726 1726 /** @copydoc VBOXHDDBACKEND::pfnRename */ 1727 static intqedRename(void *pBackendData, const char *pszFilename)1727 static DECLCALLBACK(int) qedRename(void *pBackendData, const char *pszFilename) 1728 1728 { 1729 1729 LogFlowFunc(("pBackendData=%#p pszFilename=%#p\n", pBackendData, pszFilename)); … … 1771 1771 1772 1772 /** @copydoc VBOXHDDBACKEND::pfnClose */ 1773 static intqedClose(void *pBackendData, bool fDelete)1773 static DECLCALLBACK(int) qedClose(void *pBackendData, bool fDelete) 1774 1774 { 1775 1775 LogFlowFunc(("pBackendData=%#p fDelete=%d\n", pBackendData, fDelete)); … … 1784 1784 } 1785 1785 1786 static intqedRead(void *pBackendData, uint64_t uOffset, size_t cbToRead,1787 PVDIOCTX pIoCtx, size_t *pcbActuallyRead)1786 static DECLCALLBACK(int) qedRead(void *pBackendData, uint64_t uOffset, size_t cbToRead, 1787 PVDIOCTX pIoCtx, size_t *pcbActuallyRead) 1788 1788 { 1789 1789 LogFlowFunc(("pBackendData=%#p uOffset=%llu pIoCtx=%#p cbToRead=%zu pcbActuallyRead=%#p\n", … … 1835 1835 } 1836 1836 1837 static intqedWrite(void *pBackendData, uint64_t uOffset, size_t cbToWrite,1838 PVDIOCTX pIoCtx, size_t *pcbWriteProcess, size_t *pcbPreRead,1839 size_t *pcbPostRead, unsigned fWrite)1837 static DECLCALLBACK(int) qedWrite(void *pBackendData, uint64_t uOffset, size_t cbToWrite, 1838 PVDIOCTX pIoCtx, size_t *pcbWriteProcess, size_t *pcbPreRead, 1839 size_t *pcbPostRead, unsigned fWrite) 1840 1840 { 1841 1841 LogFlowFunc(("pBackendData=%#p uOffset=%llu pIoCtx=%#p cbToWrite=%zu pcbWriteProcess=%#p pcbPreRead=%#p pcbPostRead=%#p\n", … … 2018 2018 } 2019 2019 2020 static intqedFlush(void *pBackendData, PVDIOCTX pIoCtx)2020 static DECLCALLBACK(int) qedFlush(void *pBackendData, PVDIOCTX pIoCtx) 2021 2021 { 2022 2022 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2036 2036 2037 2037 /** @copydoc VBOXHDDBACKEND::pfnGetVersion */ 2038 static unsignedqedGetVersion(void *pBackendData)2038 static DECLCALLBACK(unsigned) qedGetVersion(void *pBackendData) 2039 2039 { 2040 2040 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2050 2050 2051 2051 /** @copydoc VBOXHDDBACKEND::pfnGetSectorSize */ 2052 static uint32_tqedGetSectorSize(void *pBackendData)2052 static DECLCALLBACK(uint32_t) qedGetSectorSize(void *pBackendData) 2053 2053 { 2054 2054 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2066 2066 2067 2067 /** @copydoc VBOXHDDBACKEND::pfnGetSize */ 2068 static uint64_tqedGetSize(void *pBackendData)2068 static DECLCALLBACK(uint64_t) qedGetSize(void *pBackendData) 2069 2069 { 2070 2070 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2082 2082 2083 2083 /** @copydoc VBOXHDDBACKEND::pfnGetFileSize */ 2084 static uint64_tqedGetFileSize(void *pBackendData)2084 static DECLCALLBACK(uint64_t) qedGetFileSize(void *pBackendData) 2085 2085 { 2086 2086 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2106 2106 2107 2107 /** @copydoc VBOXHDDBACKEND::pfnGetPCHSGeometry */ 2108 static intqedGetPCHSGeometry(void *pBackendData,2109 PVDGEOMETRY pPCHSGeometry)2108 static DECLCALLBACK(int) qedGetPCHSGeometry(void *pBackendData, 2109 PVDGEOMETRY pPCHSGeometry) 2110 2110 { 2111 2111 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p\n", pBackendData, pPCHSGeometry)); … … 2133 2133 2134 2134 /** @copydoc VBOXHDDBACKEND::pfnSetPCHSGeometry */ 2135 static intqedSetPCHSGeometry(void *pBackendData,2136 PCVDGEOMETRY pPCHSGeometry)2135 static DECLCALLBACK(int) qedSetPCHSGeometry(void *pBackendData, 2136 PCVDGEOMETRY pPCHSGeometry) 2137 2137 { 2138 2138 LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors)); … … 2162 2162 2163 2163 /** @copydoc VBOXHDDBACKEND::pfnGetLCHSGeometry */ 2164 static intqedGetLCHSGeometry(void *pBackendData,2165 PVDGEOMETRY pLCHSGeometry)2164 static DECLCALLBACK(int) qedGetLCHSGeometry(void *pBackendData, 2165 PVDGEOMETRY pLCHSGeometry) 2166 2166 { 2167 2167 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p\n", pBackendData, pLCHSGeometry)); … … 2189 2189 2190 2190 /** @copydoc VBOXHDDBACKEND::pfnSetLCHSGeometry */ 2191 static intqedSetLCHSGeometry(void *pBackendData,2192 PCVDGEOMETRY pLCHSGeometry)2191 static DECLCALLBACK(int) qedSetLCHSGeometry(void *pBackendData, 2192 PCVDGEOMETRY pLCHSGeometry) 2193 2193 { 2194 2194 LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors)); … … 2218 2218 2219 2219 /** @copydoc VBOXHDDBACKEND::pfnGetImageFlags */ 2220 static unsignedqedGetImageFlags(void *pBackendData)2220 static DECLCALLBACK(unsigned) qedGetImageFlags(void *pBackendData) 2221 2221 { 2222 2222 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2236 2236 2237 2237 /** @copydoc VBOXHDDBACKEND::pfnGetOpenFlags */ 2238 static unsignedqedGetOpenFlags(void *pBackendData)2238 static DECLCALLBACK(unsigned) qedGetOpenFlags(void *pBackendData) 2239 2239 { 2240 2240 LogFlowFunc(("pBackendData=%#p\n", pBackendData)); … … 2254 2254 2255 2255 /** @copydoc VBOXHDDBACKEND::pfnSetOpenFlags */ 2256 static intqedSetOpenFlags(void *pBackendData, unsigned uOpenFlags)2256 static DECLCALLBACK(int) qedSetOpenFlags(void *pBackendData, unsigned uOpenFlags) 2257 2257 { 2258 2258 LogFlowFunc(("pBackendData=%#p\n uOpenFlags=%#x", pBackendData, uOpenFlags)); … … 2280 2280 2281 2281 /** @copydoc VBOXHDDBACKEND::pfnGetComment */ 2282 static intqedGetComment(void *pBackendData, char *pszComment,2283 size_t cbComment)2282 static DECLCALLBACK(int) qedGetComment(void *pBackendData, char *pszComment, 2283 size_t cbComment) 2284 2284 { 2285 2285 LogFlowFunc(("pBackendData=%#p pszComment=%#p cbComment=%zu\n", pBackendData, pszComment, cbComment)); … … 2299 2299 2300 2300 /** @copydoc VBOXHDDBACKEND::pfnSetComment */ 2301 static intqedSetComment(void *pBackendData, const char *pszComment)2301 static DECLCALLBACK(int) qedSetComment(void *pBackendData, const char *pszComment) 2302 2302 { 2303 2303 LogFlowFunc(("pBackendData=%#p pszComment=\"%s\"\n", pBackendData, pszComment)); … … 2322 2322 2323 2323 /** @copydoc VBOXHDDBACKEND::pfnGetUuid */ 2324 static intqedGetUuid(void *pBackendData, PRTUUID pUuid)2324 static DECLCALLBACK(int) qedGetUuid(void *pBackendData, PRTUUID pUuid) 2325 2325 { 2326 2326 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); … … 2340 2340 2341 2341 /** @copydoc VBOXHDDBACKEND::pfnSetUuid */ 2342 static intqedSetUuid(void *pBackendData, PCRTUUID pUuid)2342 static DECLCALLBACK(int) qedSetUuid(void *pBackendData, PCRTUUID pUuid) 2343 2343 { 2344 2344 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); … … 2364 2364 2365 2365 /** @copydoc VBOXHDDBACKEND::pfnGetModificationUuid */ 2366 static intqedGetModificationUuid(void *pBackendData, PRTUUID pUuid)2366 static DECLCALLBACK(int) qedGetModificationUuid(void *pBackendData, PRTUUID pUuid) 2367 2367 { 2368 2368 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); … … 2382 2382 2383 2383 /** @copydoc VBOXHDDBACKEND::pfnSetModificationUuid */ 2384 static intqedSetModificationUuid(void *pBackendData, PCRTUUID pUuid)2384 static DECLCALLBACK(int) qedSetModificationUuid(void *pBackendData, PCRTUUID pUuid) 2385 2385 { 2386 2386 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); … … 2405 2405 2406 2406 /** @copydoc VBOXHDDBACKEND::pfnGetParentUuid */ 2407 static intqedGetParentUuid(void *pBackendData, PRTUUID pUuid)2407 static DECLCALLBACK(int) qedGetParentUuid(void *pBackendData, PRTUUID pUuid) 2408 2408 { 2409 2409 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); … … 2423 2423 2424 2424 /** @copydoc VBOXHDDBACKEND::pfnSetParentUuid */ 2425 static intqedSetParentUuid(void *pBackendData, PCRTUUID pUuid)2425 static DECLCALLBACK(int) qedSetParentUuid(void *pBackendData, PCRTUUID pUuid) 2426 2426 { 2427 2427 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); … … 2446 2446 2447 2447 /** @copydoc VBOXHDDBACKEND::pfnGetParentModificationUuid */ 2448 static intqedGetParentModificationUuid(void *pBackendData, PRTUUID pUuid)2448 static DECLCALLBACK(int) qedGetParentModificationUuid(void *pBackendData, PRTUUID pUuid) 2449 2449 { 2450 2450 LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid)); … … 2464 2464 2465 2465 /** @copydoc VBOXHDDBACKEND::pfnSetParentModificationUuid */ 2466 static intqedSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid)2466 static DECLCALLBACK(int) qedSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid) 2467 2467 { 2468 2468 LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid)); … … 2487 2487 2488 2488 /** @copydoc VBOXHDDBACKEND::pfnDump */ 2489 static voidqedDump(void *pBackendData)2489 static DECLCALLBACK(void) qedDump(void *pBackendData) 2490 2490 { 2491 2491 PQEDIMAGE pImage = (PQEDIMAGE)pBackendData; … … 2502 2502 2503 2503 /** @copydoc VBOXHDDBACKEND::pfnGetParentFilename */ 2504 static intqedGetParentFilename(void *pBackendData, char **ppszParentFilename)2504 static DECLCALLBACK(int) qedGetParentFilename(void *pBackendData, char **ppszParentFilename) 2505 2505 { 2506 2506 int rc = VINF_SUCCESS; … … 2521 2521 2522 2522 /** @copydoc VBOXHDDBACKEND::pfnSetParentFilename */ 2523 static intqedSetParentFilename(void *pBackendData, const char *pszParentFilename)2523 static DECLCALLBACK(int) qedSetParentFilename(void *pBackendData, const char *pszParentFilename) 2524 2524 { 2525 2525 int rc = VINF_SUCCESS; … … 2571 2571 2572 2572 /** @copydoc VBOXHDDBACKEND::pfnResize */ 2573 static intqedResize(void *pBackendData, uint64_t cbSize,2574 PCVDGEOMETRY pPCHSGeometry, PCVDGEOMETRY pLCHSGeometry,2575 unsigned uPercentStart, unsigned uPercentSpan,2576 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage,2577 PVDINTERFACE pVDIfsOperation)2573 static DECLCALLBACK(int) qedResize(void *pBackendData, uint64_t cbSize, 2574 PCVDGEOMETRY pPCHSGeometry, PCVDGEOMETRY pLCHSGeometry, 2575 unsigned uPercentStart, unsigned uPercentSpan, 2576 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage, 2577 PVDINTERFACE pVDIfsOperation) 2578 2578 { 2579 2579 PQEDIMAGE pImage = (PQEDIMAGE)pBackendData;
Note:
See TracChangeset
for help on using the changeset viewer.