VirtualBox

Changeset 1566

Show
Ignore:
Timestamp:
03/20/07 04:29:09 (2 years ago)
Author:
vboxsync
Message:

VBOXDDU_DECL & IN_VBOXDDU

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/VBoxHDD.h

    r1 r1566  
    121121 * @param   pvUser          User argument for the progress callback. 
    122122 */ 
    123 IDER3DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize, const char *pszComment, 
    124                                   PFNVMPROGRESS pfnProgress, void *pvUser); 
     123VBOXDDU_DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize, const char *pszComment, 
     124                                     PFNVMPROGRESS pfnProgress, void *pvUser); 
    125125 
    126126/** 
     
    134134 * @param   pvUser          User argument for the progress callback. 
    135135 */ 
    136 IDER3DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent, const char *pszComment, 
    137                                         PFNVMPROGRESS pfnProgress, void *pvUser); 
     136VBOXDDU_DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent, const char *pszComment, 
     137                                           PFNVMPROGRESS pfnProgress, void *pvUser); 
    138138 
    139139/** 
     
    150150 * @param   cbComment       The size of pszComment buffer. 0 is ok. 
    151151 */ 
    152 IDER3DECL(int) VDICheckImage(const char *pszFilename, 
    153                              unsigned *puVersion, 
    154                              PVDIIMAGETYPE penmType, 
    155                              uint64_t *pcbSize, 
    156                              PRTUUID pUuid, 
    157                              PRTUUID pParentUuid, 
    158                              char *pszComment, 
    159                              unsigned cbComment); 
     152VBOXDDU_DECL(int) VDICheckImage(const char *pszFilename, 
     153                                unsigned *puVersion, 
     154                                PVDIIMAGETYPE penmType, 
     155                                uint64_t *pcbSize, 
     156                                PRTUUID pUuid, 
     157                                PRTUUID pParentUuid, 
     158                                char *pszComment, 
     159                                unsigned cbComment); 
    160160 
    161161/** 
     
    166166 * @param   pszComment      New comment string (UTF-8). NULL is allowed to reset the comment. 
    167167 */ 
    168 IDER3DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment); 
     168VBOXDDU_DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment); 
    169169 
    170170/** 
     
    174174 * @param   pszFilename     Name of the image file to check. 
    175175 */ 
    176 IDER3DECL(int) VDIDeleteImage(const char *pszFilename); 
     176VBOXDDU_DECL(int) VDIDeleteImage(const char *pszFilename); 
    177177 
    178178/** 
     
    187187 * @param   pvUser          User argument for the progress callback. 
    188188 */ 
    189 IDER3DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename, const char *pszComment, 
    190                             PFNVMPROGRESS pfnProgress, void *pvUser); 
     189VBOXDDU_DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename, const char *pszComment, 
     190                               PFNVMPROGRESS pfnProgress, void *pvUser); 
    191191 
    192192/** 
     
    198198 * @param   pvUser          User argument for the progress callback. 
    199199 */ 
    200 IDER3DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser); 
     200VBOXDDU_DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser); 
    201201 
    202202/** 
     
    208208 * @param   pvUser          User argument for the progress callback. 
    209209 */ 
    210 IDER3DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser); 
     210VBOXDDU_DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser); 
    211211 
    212212/** 
     
    220220 * @param   pParentModificationUuid Where to store parent modification UUID (can be NULL). 
    221221 */ 
    222 IDER3DECL(int) VDIGetImageUUIDs(const char *pszFilename, 
    223                                 PRTUUID pUuid, PRTUUID pModificationUuid, 
    224                                 PRTUUID pParentUuid, PRTUUID pParentModificationUuid); 
     222VBOXDDU_DECL(int) VDIGetImageUUIDs(const char *pszFilename, 
     223                                   PRTUUID pUuid, PRTUUID pModificationUuid, 
     224                                   PRTUUID pParentUuid, PRTUUID pParentModificationUuid); 
    225225 
    226226 
     
    235235 * @param   pParentModificationUuid Optional parameter, new parent modification UUID of the image. 
    236236 */ 
    237 IDER3DECL(int) VDISetImageUUIDs(const char *pszFilename, 
    238                                 PCRTUUID pUuid, PCRTUUID pModificationUuid, 
    239                                 PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid); 
     237VBOXDDU_DECL(int) VDISetImageUUIDs(const char *pszFilename, 
     238                                   PCRTUUID pUuid, PCRTUUID pModificationUuid, 
     239                                   PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid); 
    240240 
    241241/** 
     
    248248 * @param   pvUser          User argument for the progress callback. 
    249249 */ 
    250 IDER3DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo, 
    251                              PFNVMPROGRESS pfnProgress, void *pvUser); 
     250VBOXDDU_DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo, 
     251                                PFNVMPROGRESS pfnProgress, void *pvUser); 
    252252 
    253253 
     
    259259 * @returns NULL on failure, typically out of memory. 
    260260 */ 
    261 IDER3DECL(PVDIDISK) VDIDiskCreate(void); 
     261VBOXDDU_DECL(PVDIDISK) VDIDiskCreate(void); 
    262262 
    263263/** 
     
    266266 * @param   pDisk           Pointer to VDI HDD container. 
    267267 */ 
    268 IDER3DECL(void) VDIDiskDestroy(PVDIDISK pDisk); 
     268VBOXDDU_DECL(void) VDIDiskDestroy(PVDIDISK pDisk); 
    269269 
    270270/** 
     
    286286 * @param   fOpen           Image file open mode, see VDI_OPEN_FLAGS_* constants. 
    287287 */ 
    288 IDER3DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen); 
     288VBOXDDU_DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen); 
    289289 
    290290/** 
     
    299299 * @param   pvUser          User argument for the progress callback. 
    300300 */ 
    301 IDER3DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename, const char *pszComment, 
    302                                                 PFNVMPROGRESS pfnProgress, void *pvUser); 
     301VBOXDDU_DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename, const char *pszComment, 
     302                                                   PFNVMPROGRESS pfnProgress, void *pvUser); 
    303303 
    304304/** 
     
    310310 * @param   pDisk           Pointer to VDI HDD container. 
    311311 */ 
    312 IDER3DECL(void) VDIDiskCloseImage(PVDIDISK pDisk); 
     312VBOXDDU_DECL(void) VDIDiskCloseImage(PVDIDISK pDisk); 
    313313 
    314314/** 
     
    317317 * @param   pDisk           Pointer to VDI HDD container. 
    318318 */ 
    319 IDER3DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk); 
     319VBOXDDU_DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk); 
    320320 
    321321/** 
     
    335335 * @param   pvUser          User argument for the progress callback. 
    336336 */ 
    337 IDER3DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser); 
     337VBOXDDU_DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser); 
    338338 
    339339/** 
     
    343343 * @returns true if no one VDI image is opened in HDD container. 
    344344 */ 
    345 IDER3DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk); 
     345VBOXDDU_DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk); 
    346346 
    347347/** 
     
    351351 * @returns 0 if no one VDI image is opened in HDD container. 
    352352 */ 
    353 IDER3DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk); 
     353VBOXDDU_DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk); 
    354354 
    355355/** 
     
    359359 * @returns 0 if no one VDI image is opened in HDD container. 
    360360 */ 
    361 IDER3DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk); 
     361VBOXDDU_DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk); 
    362362 
    363363/** 
     
    366366 * @returns Working buffer size in bytes. 
    367367 */ 
    368 IDER3DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk); 
     368VBOXDDU_DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk); 
    369369 
    370370/** 
     
    379379 * @param   pcSectors       Where to store the number of sectors. NULL is ok. 
    380380 */ 
    381 IDER3DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors); 
     381VBOXDDU_DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors); 
    382382 
    383383/** 
     
    393393 * @param   cSectors        Number of sectors. 
    394394 */ 
    395 IDER3DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors); 
     395VBOXDDU_DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors); 
    396396 
    397397/** 
     
    403403 * @param   penmTranslation Where to store the translation mode (see pdm.h). 
    404404 */ 
    405 IDER3DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation); 
     405VBOXDDU_DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation); 
    406406 
    407407/** 
     
    415415 * @param   enmTranslation  Translation mode (see pdm.h). 
    416416 */ 
    417 IDER3DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation); 
     417VBOXDDU_DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation); 
    418418 
    419419/** 
     
    423423 * @param   pDisk           Pointer to VDI HDD container. 
    424424 */ 
    425 IDER3DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk); 
     425VBOXDDU_DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk); 
    426426 
    427427/** 
     
    434434 * @param   puVersion       Where to store the image version. 
    435435 */ 
    436 IDER3DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion); 
     436VBOXDDU_DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion); 
    437437 
    438438/** 
     
    445445 * @param   penmType        Where to store the image type. 
    446446 */ 
    447 IDER3DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType); 
     447VBOXDDU_DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType); 
    448448 
    449449/** 
     
    456456 * @param   pfFlags         Where to store the image flags. 
    457457 */ 
    458 IDER3DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags); 
     458VBOXDDU_DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags); 
    459459 
    460460/** 
     
    469469 * @param   cbFilename      Size of buffer pszFilename points to. 
    470470 */ 
    471 IDER3DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename); 
     471VBOXDDU_DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename); 
    472472 
    473473/** 
     
    482482 * @param   cbComment       The size of pszComment buffer. 0 is ok. 
    483483 */ 
    484 IDER3DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment); 
     484VBOXDDU_DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment); 
    485485 
    486486/** 
     
    493493 * @param   pUuid           Where to store the image creation uuid. 
    494494 */ 
    495 IDER3DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
     495VBOXDDU_DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
    496496 
    497497/** 
     
    504504 * @param   pUuid           Where to store the image modification uuid. 
    505505 */ 
    506 IDER3DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
     506VBOXDDU_DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
    507507 
    508508/** 
     
    515515 * @param   pUuid           Where to store the image creation uuid. 
    516516 */ 
    517 IDER3DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
     517VBOXDDU_DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid); 
    518518 
    519519/** 
     
    526526 * @param   cbToRead        Number of bytes to read. 
    527527 */ 
    528 IDER3DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead); 
     528VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead); 
    529529 
    530530/** 
     
    537537 * @param   cbToWrite       Number of bytes to write. 
    538538 */ 
    539 IDER3DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite); 
     539VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite); 
    540540 
    541541 
     
    546546 * @param   pDisk           Pointer to VDI HDD container. 
    547547 */ 
    548 IDER3DECL(void) VDIDiskDumpImages(PVDIDISK pDisk); 
     548VBOXDDU_DECL(void) VDIDiskDumpImages(PVDIDISK pDisk); 
    549549 
    550550__END_DECLS 
  • trunk/include/VBox/cdefs.h

    r1 r1566  
    12741274 
    12751275 
     1276/** @def IN_VBOXDDU 
     1277 * Used to indicate whether we're inside the VBoxDDU shared object. 
     1278 */ 
     1279/** @def VBOXDDU_DECL(type) 
     1280 * VBoxDDU export or import (ring-3). 
     1281 * @param   type    The return type of the function declaration. 
     1282 */ 
     1283#ifdef IN_VBOXDDU 
     1284# define VBOXDDU_DECL(type) DECLEXPORT(type) VBOXCALL 
     1285#else 
     1286# define VBOXDDU_DECL(type) DECLIMPORT(type) VBOXCALL 
     1287#endif 
     1288 
     1289 
    12761290 
    12771291/** @def IN_REM_R0 
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy