VirtualBox

Changeset 57388 in vbox for trunk/src/VBox/Storage/QED.cpp


Ignore:
Timestamp:
Aug 17, 2015 2:20:55 PM (9 years ago)
Author:
vboxsync
Message:

DECLCALLBACK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/QED.cpp

    r57358 r57388  
    15341534
    15351535/** @copydoc VBOXHDDBACKEND::pfnCheckIfValid */
    1536 static int qedCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
    1537                            PVDINTERFACE pVDIfsImage, VDTYPE *penmType)
     1536static DECLCALLBACK(int) qedCheckIfValid(const char *pszFilename, PVDINTERFACE pVDIfsDisk,
     1537                                         PVDINTERFACE pVDIfsImage, VDTYPE *penmType)
    15381538{
    15391539    LogFlowFunc(("pszFilename=\"%s\" pVDIfsDisk=%#p pVDIfsImage=%#p\n", pszFilename, pVDIfsDisk, pVDIfsImage));
     
    15901590
    15911591/** @copydoc VBOXHDDBACKEND::pfnOpen */
    1592 static int qedOpen(const char *pszFilename, unsigned uOpenFlags,
    1593                    PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage,
    1594                    VDTYPE enmType, void **ppBackendData)
     1592static DECLCALLBACK(int) qedOpen(const char *pszFilename, unsigned uOpenFlags,
     1593                                 PVDINTERFACE pVDIfsDisk, PVDINTERFACE pVDIfsImage,
     1594                                 VDTYPE enmType, void **ppBackendData)
    15951595{
    15961596    LogFlowFunc(("pszFilename=\"%s\" uOpenFlags=%#x pVDIfsDisk=%#p pVDIfsImage=%#p enmType=%u ppBackendData=%#p\n", pszFilename, uOpenFlags, pVDIfsDisk, pVDIfsImage, enmType, ppBackendData));
     
    16391639
    16401640/** @copydoc VBOXHDDBACKEND::pfnCreate */
    1641 static 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)
     1641static 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)
    16491649{
    16501650    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",
     
    17251725
    17261726/** @copydoc VBOXHDDBACKEND::pfnRename */
    1727 static int qedRename(void *pBackendData, const char *pszFilename)
     1727static DECLCALLBACK(int) qedRename(void *pBackendData, const char *pszFilename)
    17281728{
    17291729    LogFlowFunc(("pBackendData=%#p pszFilename=%#p\n", pBackendData, pszFilename));
     
    17711771
    17721772/** @copydoc VBOXHDDBACKEND::pfnClose */
    1773 static int qedClose(void *pBackendData, bool fDelete)
     1773static DECLCALLBACK(int) qedClose(void *pBackendData, bool fDelete)
    17741774{
    17751775    LogFlowFunc(("pBackendData=%#p fDelete=%d\n", pBackendData, fDelete));
     
    17841784}
    17851785
    1786 static int qedRead(void *pBackendData, uint64_t uOffset, size_t cbToRead,
    1787                    PVDIOCTX pIoCtx, size_t *pcbActuallyRead)
     1786static DECLCALLBACK(int) qedRead(void *pBackendData, uint64_t uOffset, size_t cbToRead,
     1787                                 PVDIOCTX pIoCtx, size_t *pcbActuallyRead)
    17881788{
    17891789    LogFlowFunc(("pBackendData=%#p uOffset=%llu pIoCtx=%#p cbToRead=%zu pcbActuallyRead=%#p\n",
     
    18351835}
    18361836
    1837 static 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)
     1837static 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)
    18401840{
    18411841    LogFlowFunc(("pBackendData=%#p uOffset=%llu pIoCtx=%#p cbToWrite=%zu pcbWriteProcess=%#p pcbPreRead=%#p pcbPostRead=%#p\n",
     
    20182018}
    20192019
    2020 static int qedFlush(void *pBackendData, PVDIOCTX pIoCtx)
     2020static DECLCALLBACK(int) qedFlush(void *pBackendData, PVDIOCTX pIoCtx)
    20212021{
    20222022    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    20362036
    20372037/** @copydoc VBOXHDDBACKEND::pfnGetVersion */
    2038 static unsigned qedGetVersion(void *pBackendData)
     2038static DECLCALLBACK(unsigned) qedGetVersion(void *pBackendData)
    20392039{
    20402040    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    20502050
    20512051/** @copydoc VBOXHDDBACKEND::pfnGetSectorSize */
    2052 static uint32_t qedGetSectorSize(void *pBackendData)
     2052static DECLCALLBACK(uint32_t) qedGetSectorSize(void *pBackendData)
    20532053{
    20542054    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    20662066
    20672067/** @copydoc VBOXHDDBACKEND::pfnGetSize */
    2068 static uint64_t qedGetSize(void *pBackendData)
     2068static DECLCALLBACK(uint64_t) qedGetSize(void *pBackendData)
    20692069{
    20702070    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    20822082
    20832083/** @copydoc VBOXHDDBACKEND::pfnGetFileSize */
    2084 static uint64_t qedGetFileSize(void *pBackendData)
     2084static DECLCALLBACK(uint64_t) qedGetFileSize(void *pBackendData)
    20852085{
    20862086    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    21062106
    21072107/** @copydoc VBOXHDDBACKEND::pfnGetPCHSGeometry */
    2108 static int qedGetPCHSGeometry(void *pBackendData,
    2109                               PVDGEOMETRY pPCHSGeometry)
     2108static DECLCALLBACK(int) qedGetPCHSGeometry(void *pBackendData,
     2109                                            PVDGEOMETRY pPCHSGeometry)
    21102110{
    21112111    LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p\n", pBackendData, pPCHSGeometry));
     
    21332133
    21342134/** @copydoc VBOXHDDBACKEND::pfnSetPCHSGeometry */
    2135 static int qedSetPCHSGeometry(void *pBackendData,
    2136                               PCVDGEOMETRY pPCHSGeometry)
     2135static DECLCALLBACK(int) qedSetPCHSGeometry(void *pBackendData,
     2136                                            PCVDGEOMETRY pPCHSGeometry)
    21372137{
    21382138    LogFlowFunc(("pBackendData=%#p pPCHSGeometry=%#p PCHS=%u/%u/%u\n", pBackendData, pPCHSGeometry, pPCHSGeometry->cCylinders, pPCHSGeometry->cHeads, pPCHSGeometry->cSectors));
     
    21622162
    21632163/** @copydoc VBOXHDDBACKEND::pfnGetLCHSGeometry */
    2164 static int qedGetLCHSGeometry(void *pBackendData,
    2165                               PVDGEOMETRY pLCHSGeometry)
     2164static DECLCALLBACK(int) qedGetLCHSGeometry(void *pBackendData,
     2165                                            PVDGEOMETRY pLCHSGeometry)
    21662166{
    21672167     LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p\n", pBackendData, pLCHSGeometry));
     
    21892189
    21902190/** @copydoc VBOXHDDBACKEND::pfnSetLCHSGeometry */
    2191 static int qedSetLCHSGeometry(void *pBackendData,
    2192                                PCVDGEOMETRY pLCHSGeometry)
     2191static DECLCALLBACK(int) qedSetLCHSGeometry(void *pBackendData,
     2192                                            PCVDGEOMETRY pLCHSGeometry)
    21932193{
    21942194    LogFlowFunc(("pBackendData=%#p pLCHSGeometry=%#p LCHS=%u/%u/%u\n", pBackendData, pLCHSGeometry, pLCHSGeometry->cCylinders, pLCHSGeometry->cHeads, pLCHSGeometry->cSectors));
     
    22182218
    22192219/** @copydoc VBOXHDDBACKEND::pfnGetImageFlags */
    2220 static unsigned qedGetImageFlags(void *pBackendData)
     2220static DECLCALLBACK(unsigned) qedGetImageFlags(void *pBackendData)
    22212221{
    22222222    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    22362236
    22372237/** @copydoc VBOXHDDBACKEND::pfnGetOpenFlags */
    2238 static unsigned qedGetOpenFlags(void *pBackendData)
     2238static DECLCALLBACK(unsigned) qedGetOpenFlags(void *pBackendData)
    22392239{
    22402240    LogFlowFunc(("pBackendData=%#p\n", pBackendData));
     
    22542254
    22552255/** @copydoc VBOXHDDBACKEND::pfnSetOpenFlags */
    2256 static int qedSetOpenFlags(void *pBackendData, unsigned uOpenFlags)
     2256static DECLCALLBACK(int) qedSetOpenFlags(void *pBackendData, unsigned uOpenFlags)
    22572257{
    22582258    LogFlowFunc(("pBackendData=%#p\n uOpenFlags=%#x", pBackendData, uOpenFlags));
     
    22802280
    22812281/** @copydoc VBOXHDDBACKEND::pfnGetComment */
    2282 static int qedGetComment(void *pBackendData, char *pszComment,
    2283                           size_t cbComment)
     2282static DECLCALLBACK(int) qedGetComment(void *pBackendData, char *pszComment,
     2283                                       size_t cbComment)
    22842284{
    22852285    LogFlowFunc(("pBackendData=%#p pszComment=%#p cbComment=%zu\n", pBackendData, pszComment, cbComment));
     
    22992299
    23002300/** @copydoc VBOXHDDBACKEND::pfnSetComment */
    2301 static int qedSetComment(void *pBackendData, const char *pszComment)
     2301static DECLCALLBACK(int) qedSetComment(void *pBackendData, const char *pszComment)
    23022302{
    23032303    LogFlowFunc(("pBackendData=%#p pszComment=\"%s\"\n", pBackendData, pszComment));
     
    23222322
    23232323/** @copydoc VBOXHDDBACKEND::pfnGetUuid */
    2324 static int qedGetUuid(void *pBackendData, PRTUUID pUuid)
     2324static DECLCALLBACK(int) qedGetUuid(void *pBackendData, PRTUUID pUuid)
    23252325{
    23262326    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
     
    23402340
    23412341/** @copydoc VBOXHDDBACKEND::pfnSetUuid */
    2342 static int qedSetUuid(void *pBackendData, PCRTUUID pUuid)
     2342static DECLCALLBACK(int) qedSetUuid(void *pBackendData, PCRTUUID pUuid)
    23432343{
    23442344    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
     
    23642364
    23652365/** @copydoc VBOXHDDBACKEND::pfnGetModificationUuid */
    2366 static int qedGetModificationUuid(void *pBackendData, PRTUUID pUuid)
     2366static DECLCALLBACK(int) qedGetModificationUuid(void *pBackendData, PRTUUID pUuid)
    23672367{
    23682368    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
     
    23822382
    23832383/** @copydoc VBOXHDDBACKEND::pfnSetModificationUuid */
    2384 static int qedSetModificationUuid(void *pBackendData, PCRTUUID pUuid)
     2384static DECLCALLBACK(int) qedSetModificationUuid(void *pBackendData, PCRTUUID pUuid)
    23852385{
    23862386    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
     
    24052405
    24062406/** @copydoc VBOXHDDBACKEND::pfnGetParentUuid */
    2407 static int qedGetParentUuid(void *pBackendData, PRTUUID pUuid)
     2407static DECLCALLBACK(int) qedGetParentUuid(void *pBackendData, PRTUUID pUuid)
    24082408{
    24092409    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
     
    24232423
    24242424/** @copydoc VBOXHDDBACKEND::pfnSetParentUuid */
    2425 static int qedSetParentUuid(void *pBackendData, PCRTUUID pUuid)
     2425static DECLCALLBACK(int) qedSetParentUuid(void *pBackendData, PCRTUUID pUuid)
    24262426{
    24272427    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
     
    24462446
    24472447/** @copydoc VBOXHDDBACKEND::pfnGetParentModificationUuid */
    2448 static int qedGetParentModificationUuid(void *pBackendData, PRTUUID pUuid)
     2448static DECLCALLBACK(int) qedGetParentModificationUuid(void *pBackendData, PRTUUID pUuid)
    24492449{
    24502450    LogFlowFunc(("pBackendData=%#p pUuid=%#p\n", pBackendData, pUuid));
     
    24642464
    24652465/** @copydoc VBOXHDDBACKEND::pfnSetParentModificationUuid */
    2466 static int qedSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid)
     2466static DECLCALLBACK(int) qedSetParentModificationUuid(void *pBackendData, PCRTUUID pUuid)
    24672467{
    24682468    LogFlowFunc(("pBackendData=%#p Uuid=%RTuuid\n", pBackendData, pUuid));
     
    24872487
    24882488/** @copydoc VBOXHDDBACKEND::pfnDump */
    2489 static void qedDump(void *pBackendData)
     2489static DECLCALLBACK(void) qedDump(void *pBackendData)
    24902490{
    24912491    PQEDIMAGE pImage = (PQEDIMAGE)pBackendData;
     
    25022502
    25032503/** @copydoc VBOXHDDBACKEND::pfnGetParentFilename */
    2504 static int qedGetParentFilename(void *pBackendData, char **ppszParentFilename)
     2504static DECLCALLBACK(int) qedGetParentFilename(void *pBackendData, char **ppszParentFilename)
    25052505{
    25062506    int rc = VINF_SUCCESS;
     
    25212521
    25222522/** @copydoc VBOXHDDBACKEND::pfnSetParentFilename */
    2523 static int qedSetParentFilename(void *pBackendData, const char *pszParentFilename)
     2523static DECLCALLBACK(int) qedSetParentFilename(void *pBackendData, const char *pszParentFilename)
    25242524{
    25252525    int rc = VINF_SUCCESS;
     
    25712571
    25722572/** @copydoc VBOXHDDBACKEND::pfnResize */
    2573 static 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)
     2573static 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)
    25782578{
    25792579    PQEDIMAGE pImage = (PQEDIMAGE)pBackendData;
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