VirtualBox

Changeset 1566 in vbox for trunk/src


Ignore:
Timestamp:
Mar 20, 2007 3:29:09 AM (18 years ago)
Author:
vboxsync
Message:

VBOXDDU_DECL & IN_VBOXDDU

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile

    r1565 r1566  
    6363#
    6464VBoxDDU_TEMPLATE         = VBOXR3
    65 VBoxDDU_SDKS.win         = WINPSDK DXSDK W2K3DDK VBOX_NTDLL
     65VBoxDDU_SDKS.win         = WINPSDK
     66VBoxDDU_DEFS             = IN_VBOXDDU
    6667VBoxDDU_SOURCES          = \
    6768        Storage/VDICore.cpp
  • trunk/src/VBox/Devices/Storage/VDICore.cpp

    r1565 r1566  
    946946 * @param   cbToRead        Number of bytes to read.
    947947 */
    948 IDER3DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead)
     948VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead)
    949949{
    950950    /* sanity check */
     
    12061206 * @param   cbToWrite       Number of bytes to write.
    12071207 */
    1208 IDER3DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite)
     1208VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite)
    12091209{
    12101210    /* sanity check */
     
    16051605 * @param   cbComment       The size of pszComment buffer. 0 is ok.
    16061606 */
    1607 IDER3DECL(int) VDICheckImage(const char *pszFilename, unsigned *puVersion, PVDIIMAGETYPE penmType,
    1608                              uint64_t *pcbSize, PRTUUID pUuid, PRTUUID pParentUuid,
    1609                              char *pszComment, unsigned cbComment)
     1607VBOXDDU_DECL(int) VDICheckImage(const char *pszFilename, unsigned *puVersion, PVDIIMAGETYPE penmType,
     1608                                uint64_t *pcbSize, PRTUUID pUuid, PRTUUID pParentUuid,
     1609                                char *pszComment, unsigned cbComment)
    16101610{
    16111611    LogFlow(("VDICheckImage:\n"));
     
    16671667 * @param   pszComment      New comment string (UTF-8). NULL is allowed to reset the comment.
    16681668 */
    1669 IDER3DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment)
     1669VBOXDDU_DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment)
    16701670{
    16711671    LogFlow(("VDISetImageComment:\n"));
     
    17411741 * @param   pvUser          User argument for the progress callback.
    17421742 */
    1743 IDER3DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize,
    1744                                   const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)
     1743VBOXDDU_DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize,
     1744                                     const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)
    17451745{
    17461746    LogFlow(("VDICreateBaseImage:\n"));
     
    17731773 * @param   pvUser          User argument for the progress callback.
    17741774 */
    1775 IDER3DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent,
    1776                                         const char *pszComment, PFNVMPROGRESS pfnProgress,
    1777                                         void *pvUser)
     1775VBOXDDU_DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent,
     1776                                           const char *pszComment, PFNVMPROGRESS pfnProgress,
     1777                                           void *pvUser)
    17781778{
    17791779    LogFlow(("VDICreateDifferenceImage:\n"));
     
    18091809 * @param   pszFilename     Name of the image file to check.
    18101810 */
    1811 IDER3DECL(int) VDIDeleteImage(const char *pszFilename)
     1811VBOXDDU_DECL(int) VDIDeleteImage(const char *pszFilename)
    18121812{
    18131813    LogFlow(("VDIDeleteImage:\n"));
     
    18391839 * @param   pvUser          User argument for the progress callback.
    18401840 */
    1841 IDER3DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename,
    1842                             const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)
     1841VBOXDDU_DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename,
     1842                               const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)
    18431843{
    18441844    LogFlow(("VDICopyImage:\n"));
     
    20002000 * @param   pvUser          User argument for the progress callback.
    20012001 */
    2002 IDER3DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)
     2002VBOXDDU_DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)
    20032003{
    20042004    LogFlow(("VDIShrinkImage:\n"));
     
    22182218 * @remark  Only used by vditool
    22192219 */
    2220 IDER3DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)
     2220VBOXDDU_DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)
    22212221{
    22222222    LogFlow(("VDIConvertImage:\n"));
     
    24172417 * @param   pParentModificationUuid Where to store parent modification UUID (can be NULL).
    24182418 */
    2419 IDER3DECL(int) VDIGetImageUUIDs(const char *pszFilename,
    2420                                 PRTUUID pUuid, PRTUUID pModificationUuid,
    2421                                 PRTUUID pParentUuid, PRTUUID pParentModificationUuid)
     2419VBOXDDU_DECL(int) VDIGetImageUUIDs(const char *pszFilename,
     2420                                   PRTUUID pUuid, PRTUUID pModificationUuid,
     2421                                   PRTUUID pParentUuid, PRTUUID pParentModificationUuid)
    24222422{
    24232423    LogFlow(("VDIGetImageUUIDs:\n"));
     
    24962496 * @param   pParentModificationUuid Optional parameter, new parent modification UUID of the image.
    24972497 */
    2498 IDER3DECL(int) VDISetImageUUIDs(const char *pszFilename,
    2499                                 PCRTUUID pUuid, PCRTUUID pModificationUuid,
    2500                                 PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid)
     2498VBOXDDU_DECL(int) VDISetImageUUIDs(const char *pszFilename,
     2499                                   PCRTUUID pUuid, PCRTUUID pModificationUuid,
     2500                                   PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid)
    25012501{
    25022502    LogFlow(("VDISetImageUUIDs:\n"));
     
    25642564 * @param   pvUser          User argument for the progress callback.
    25652565 */
    2566 IDER3DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo,
    2567                              PFNVMPROGRESS pfnProgress, void *pvUser)
     2566VBOXDDU_DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo,
     2567                                PFNVMPROGRESS pfnProgress, void *pvUser)
    25682568{
    25692569    LogFlow(("VDIMergeImage:\n"));
     
    27262726 * @returns NULL on failure, typically out of memory.
    27272727 */
    2728 IDER3DECL(PVDIDISK) VDIDiskCreate(void)
     2728VBOXDDU_DECL(PVDIDISK) VDIDiskCreate(void)
    27292729{
    27302730    PVDIDISK pDisk = (PVDIDISK)RTMemAllocZ(sizeof(VDIDISK));
     
    27402740 * @param   pDisk           Pointer to VDI HDD container.
    27412741 */
    2742 IDER3DECL(void) VDIDiskDestroy(PVDIDISK pDisk)
     2742VBOXDDU_DECL(void) VDIDiskDestroy(PVDIDISK pDisk)
    27432743{
    27442744    LogFlow(("VDIDiskDestroy: pDisk=%X\n", pDisk));
     
    27592759 * @returns Working buffer size in bytes.
    27602760 */
    2761 IDER3DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk)
     2761VBOXDDU_DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk)
    27622762{
    27632763    /* sanity check */
     
    27752775 * @returns true if no one VDI image is opened in HDD container.
    27762776 */
    2777 IDER3DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk)
     2777VBOXDDU_DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk)
    27782778{
    27792779    /* sanity check */
     
    27972797 * @returns 0 if no one VDI image is opened in HDD container.
    27982798 */
    2799 IDER3DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk)
     2799VBOXDDU_DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk)
    28002800{
    28012801    /* sanity check */
     
    28192819 * @returns 0 if no one VDI image is opened in HDD container.
    28202820 */
    2821 IDER3DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk)
     2821VBOXDDU_DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk)
    28222822{
    28232823    /* sanity check */
     
    28462846 * @param   pcSectors       Where to store the number of sectors. NULL is ok.
    28472847 */
    2848 IDER3DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors)
     2848VBOXDDU_DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors)
    28492849{
    28502850    /* sanity check */
     
    28922892 * @param   cSectors        Number of sectors.
    28932893 */
    2894 IDER3DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors)
     2894VBOXDDU_DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors)
    28952895{
    28962896    LogFlow(("VDIDiskSetGeometry: C/H/S = %u/%u/%u\n", cCylinders, cHeads, cSectors));
     
    29252925 * @param   penmTranslation Where to store the translation mode (see pdm.h).
    29262926 */
    2927 IDER3DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation)
     2927VBOXDDU_DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation)
    29282928{
    29292929    /* sanity check */
     
    29532953 * @param   enmTranslation  Translation mode (see pdm.h).
    29542954 */
    2955 IDER3DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation)
     2955VBOXDDU_DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation)
    29562956{
    29572957    LogFlow(("VDIDiskSetTranslation: enmTranslation=%d\n", enmTranslation));
     
    29802980 * @param   pDisk           Pointer to VDI HDD container.
    29812981 */
    2982 IDER3DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk)
     2982VBOXDDU_DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk)
    29832983{
    29842984    /* sanity check */
     
    30103010 * @param   puVersion       Where to store the image version.
    30113011 */
    3012 IDER3DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion)
     3012VBOXDDU_DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion)
    30133013{
    30143014    /* sanity check */
     
    30423042 * @param   cbFilename      Size of buffer pszFilename points to.
    30433043 */
    3044 IDER3DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename)
     3044VBOXDDU_DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename)
    30453045{
    30463046    /* sanity check */
     
    30853085 * @param   cbComment       The size of pszComment buffer. 0 is ok.
    30863086 */
    3087 IDER3DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment)
     3087VBOXDDU_DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment)
    30883088{
    30893089    /* sanity check */
     
    31273127 * @param   penmType        Where to store the image type.
    31283128 */
    3129 IDER3DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType)
     3129VBOXDDU_DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType)
    31303130{
    31313131    /* sanity check */
     
    31583158 * @param   pfFlags         Where to store the image flags.
    31593159 */
    3160 IDER3DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags)
     3160VBOXDDU_DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags)
    31613161{
    31623162    /* sanity check */
     
    31893189 * @param   pUuid           Where to store the image creation uuid.
    31903190 */
    3191 IDER3DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
     3191VBOXDDU_DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
    31923192{
    31933193    /* sanity check */
     
    32203220 * @param   pUuid           Where to store the image modification uuid.
    32213221 */
    3222 IDER3DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
     3222VBOXDDU_DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
    32233223{
    32243224    /* sanity check */
     
    32513251 * @param   pUuid           Where to store the image creation uuid.
    32523252 */
    3253 IDER3DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
     3253VBOXDDU_DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)
    32543254{
    32553255    /* sanity check */
     
    33713371 * @param   fOpen           Image file open mode, see VDI_OPEN_FLAGS_* constants.
    33723372 */
    3373 IDER3DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen)
     3373VBOXDDU_DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen)
    33743374{
    33753375    /* sanity check */
     
    34303430 * @param   pDisk           Pointer to VDI HDD container.
    34313431 */
    3432 IDER3DECL(void) VDIDiskCloseImage(PVDIDISK pDisk)
     3432VBOXDDU_DECL(void) VDIDiskCloseImage(PVDIDISK pDisk)
    34333433{
    34343434    /* sanity check */
     
    34683468 * @param   pDisk           Pointer to VDI HDD container.
    34693469 */
    3470 IDER3DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk)
     3470VBOXDDU_DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk)
    34713471{
    34723472    LogFlow(("VDIDiskCloseAllImages:\n"));
     
    35033503 * @remark  Only used by tstVDI.
    35043504 */
    3505 IDER3DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser)
     3505VBOXDDU_DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser)
    35063506{
    35073507    LogFlow(("VDIDiskCommitLastDiff:\n"));
     
    35713571 * @remark  Only used by tstVDI.
    35723572 */
    3573 IDER3DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename,
    3574                                                 const char *pszComment, PFNVMPROGRESS pfnProgress,
    3575                                                 void *pvUser)
     3573VBOXDDU_DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename,
     3574                                                   const char *pszComment, PFNVMPROGRESS pfnProgress,
     3575                                                   void *pvUser)
    35763576{
    35773577    LogFlow(("VDIDiskCreateOpenDifferenceImage:\n"));
     
    36773677 * @remark  Only used by tstVDI and vditool
    36783678 */
    3679 IDER3DECL(void) VDIDiskDumpImages(PVDIDISK pDisk)
     3679VBOXDDU_DECL(void) VDIDiskDumpImages(PVDIDISK pDisk)
    36803680{
    36813681    /* sanity check */
     
    36873687        vdiDumpImage(pImage);
    36883688}
     3689
  • trunk/src/VBox/Devices/Storage/VDICore.h

    r1565 r1566  
    521521__BEGIN_DECLS
    522522
    523 void vdiInitVDIDisk(PVDIDISK pDisk);
    524 void vdiFlushImage(PVDIIMAGEDESC pImage);
    525 int  vdiChangeImageMode(PVDIIMAGEDESC pImage, bool fReadOnly);
     523VBOXDDU_DECL(void) vdiInitVDIDisk(PVDIDISK pDisk);
     524VBOXDDU_DECL(void) vdiFlushImage(PVDIIMAGEDESC pImage);
     525VBOXDDU_DECL(int)  vdiChangeImageMode(PVDIIMAGEDESC pImage, bool fReadOnly);
    526526
    527527__END_DECLS
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