Changeset 1566 in vbox for trunk/src/VBox
- Timestamp:
- Mar 20, 2007 3:29:09 AM (18 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile
r1565 r1566 63 63 # 64 64 VBoxDDU_TEMPLATE = VBOXR3 65 VBoxDDU_SDKS.win = WINPSDK DXSDK W2K3DDK VBOX_NTDLL 65 VBoxDDU_SDKS.win = WINPSDK 66 VBoxDDU_DEFS = IN_VBOXDDU 66 67 VBoxDDU_SOURCES = \ 67 68 Storage/VDICore.cpp -
trunk/src/VBox/Devices/Storage/VDICore.cpp
r1565 r1566 946 946 * @param cbToRead Number of bytes to read. 947 947 */ 948 IDER3DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead)948 VBOXDDU_DECL(int) VDIDiskRead(PVDIDISK pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead) 949 949 { 950 950 /* sanity check */ … … 1206 1206 * @param cbToWrite Number of bytes to write. 1207 1207 */ 1208 IDER3DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite)1208 VBOXDDU_DECL(int) VDIDiskWrite(PVDIDISK pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite) 1209 1209 { 1210 1210 /* sanity check */ … … 1605 1605 * @param cbComment The size of pszComment buffer. 0 is ok. 1606 1606 */ 1607 IDER3DECL(int) VDICheckImage(const char *pszFilename, unsigned *puVersion, PVDIIMAGETYPE penmType,1608 uint64_t *pcbSize, PRTUUID pUuid, PRTUUID pParentUuid,1609 char *pszComment, unsigned cbComment)1607 VBOXDDU_DECL(int) VDICheckImage(const char *pszFilename, unsigned *puVersion, PVDIIMAGETYPE penmType, 1608 uint64_t *pcbSize, PRTUUID pUuid, PRTUUID pParentUuid, 1609 char *pszComment, unsigned cbComment) 1610 1610 { 1611 1611 LogFlow(("VDICheckImage:\n")); … … 1667 1667 * @param pszComment New comment string (UTF-8). NULL is allowed to reset the comment. 1668 1668 */ 1669 IDER3DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment)1669 VBOXDDU_DECL(int) VDISetImageComment(const char *pszFilename, const char *pszComment) 1670 1670 { 1671 1671 LogFlow(("VDISetImageComment:\n")); … … 1741 1741 * @param pvUser User argument for the progress callback. 1742 1742 */ 1743 IDER3DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize,1744 const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)1743 VBOXDDU_DECL(int) VDICreateBaseImage(const char *pszFilename, VDIIMAGETYPE enmType, uint64_t cbSize, 1744 const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser) 1745 1745 { 1746 1746 LogFlow(("VDICreateBaseImage:\n")); … … 1773 1773 * @param pvUser User argument for the progress callback. 1774 1774 */ 1775 IDER3DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent,1776 const char *pszComment, PFNVMPROGRESS pfnProgress,1777 void *pvUser)1775 VBOXDDU_DECL(int) VDICreateDifferenceImage(const char *pszFilename, const char *pszParent, 1776 const char *pszComment, PFNVMPROGRESS pfnProgress, 1777 void *pvUser) 1778 1778 { 1779 1779 LogFlow(("VDICreateDifferenceImage:\n")); … … 1809 1809 * @param pszFilename Name of the image file to check. 1810 1810 */ 1811 IDER3DECL(int) VDIDeleteImage(const char *pszFilename)1811 VBOXDDU_DECL(int) VDIDeleteImage(const char *pszFilename) 1812 1812 { 1813 1813 LogFlow(("VDIDeleteImage:\n")); … … 1839 1839 * @param pvUser User argument for the progress callback. 1840 1840 */ 1841 IDER3DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename,1842 const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser)1841 VBOXDDU_DECL(int) VDICopyImage(const char *pszDstFilename, const char *pszSrcFilename, 1842 const char *pszComment, PFNVMPROGRESS pfnProgress, void *pvUser) 1843 1843 { 1844 1844 LogFlow(("VDICopyImage:\n")); … … 2000 2000 * @param pvUser User argument for the progress callback. 2001 2001 */ 2002 IDER3DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)2002 VBOXDDU_DECL(int) VDIShrinkImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser) 2003 2003 { 2004 2004 LogFlow(("VDIShrinkImage:\n")); … … 2218 2218 * @remark Only used by vditool 2219 2219 */ 2220 IDER3DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser)2220 VBOXDDU_DECL(int) VDIConvertImage(const char *pszFilename, PFNVMPROGRESS pfnProgress, void *pvUser) 2221 2221 { 2222 2222 LogFlow(("VDIConvertImage:\n")); … … 2417 2417 * @param pParentModificationUuid Where to store parent modification UUID (can be NULL). 2418 2418 */ 2419 IDER3DECL(int) VDIGetImageUUIDs(const char *pszFilename,2420 PRTUUID pUuid, PRTUUID pModificationUuid,2421 PRTUUID pParentUuid, PRTUUID pParentModificationUuid)2419 VBOXDDU_DECL(int) VDIGetImageUUIDs(const char *pszFilename, 2420 PRTUUID pUuid, PRTUUID pModificationUuid, 2421 PRTUUID pParentUuid, PRTUUID pParentModificationUuid) 2422 2422 { 2423 2423 LogFlow(("VDIGetImageUUIDs:\n")); … … 2496 2496 * @param pParentModificationUuid Optional parameter, new parent modification UUID of the image. 2497 2497 */ 2498 IDER3DECL(int) VDISetImageUUIDs(const char *pszFilename,2499 PCRTUUID pUuid, PCRTUUID pModificationUuid,2500 PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid)2498 VBOXDDU_DECL(int) VDISetImageUUIDs(const char *pszFilename, 2499 PCRTUUID pUuid, PCRTUUID pModificationUuid, 2500 PCRTUUID pParentUuid, PCRTUUID pParentModificationUuid) 2501 2501 { 2502 2502 LogFlow(("VDISetImageUUIDs:\n")); … … 2564 2564 * @param pvUser User argument for the progress callback. 2565 2565 */ 2566 IDER3DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo,2567 PFNVMPROGRESS pfnProgress, void *pvUser)2566 VBOXDDU_DECL(int) VDIMergeImage(const char *pszFilenameFrom, const char *pszFilenameTo, 2567 PFNVMPROGRESS pfnProgress, void *pvUser) 2568 2568 { 2569 2569 LogFlow(("VDIMergeImage:\n")); … … 2726 2726 * @returns NULL on failure, typically out of memory. 2727 2727 */ 2728 IDER3DECL(PVDIDISK) VDIDiskCreate(void)2728 VBOXDDU_DECL(PVDIDISK) VDIDiskCreate(void) 2729 2729 { 2730 2730 PVDIDISK pDisk = (PVDIDISK)RTMemAllocZ(sizeof(VDIDISK)); … … 2740 2740 * @param pDisk Pointer to VDI HDD container. 2741 2741 */ 2742 IDER3DECL(void) VDIDiskDestroy(PVDIDISK pDisk)2742 VBOXDDU_DECL(void) VDIDiskDestroy(PVDIDISK pDisk) 2743 2743 { 2744 2744 LogFlow(("VDIDiskDestroy: pDisk=%X\n", pDisk)); … … 2759 2759 * @returns Working buffer size in bytes. 2760 2760 */ 2761 IDER3DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk)2761 VBOXDDU_DECL(unsigned) VDIDiskGetBufferSize(PVDIDISK pDisk) 2762 2762 { 2763 2763 /* sanity check */ … … 2775 2775 * @returns true if no one VDI image is opened in HDD container. 2776 2776 */ 2777 IDER3DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk)2777 VBOXDDU_DECL(bool) VDIDiskIsReadOnly(PVDIDISK pDisk) 2778 2778 { 2779 2779 /* sanity check */ … … 2797 2797 * @returns 0 if no one VDI image is opened in HDD container. 2798 2798 */ 2799 IDER3DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk)2799 VBOXDDU_DECL(uint64_t) VDIDiskGetSize(PVDIDISK pDisk) 2800 2800 { 2801 2801 /* sanity check */ … … 2819 2819 * @returns 0 if no one VDI image is opened in HDD container. 2820 2820 */ 2821 IDER3DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk)2821 VBOXDDU_DECL(unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk) 2822 2822 { 2823 2823 /* sanity check */ … … 2846 2846 * @param pcSectors Where to store the number of sectors. NULL is ok. 2847 2847 */ 2848 IDER3DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors)2848 VBOXDDU_DECL(int) VDIDiskGetGeometry(PVDIDISK pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors) 2849 2849 { 2850 2850 /* sanity check */ … … 2892 2892 * @param cSectors Number of sectors. 2893 2893 */ 2894 IDER3DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors)2894 VBOXDDU_DECL(int) VDIDiskSetGeometry(PVDIDISK pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors) 2895 2895 { 2896 2896 LogFlow(("VDIDiskSetGeometry: C/H/S = %u/%u/%u\n", cCylinders, cHeads, cSectors)); … … 2925 2925 * @param penmTranslation Where to store the translation mode (see pdm.h). 2926 2926 */ 2927 IDER3DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation)2927 VBOXDDU_DECL(int) VDIDiskGetTranslation(PVDIDISK pDisk, PPDMBIOSTRANSLATION penmTranslation) 2928 2928 { 2929 2929 /* sanity check */ … … 2953 2953 * @param enmTranslation Translation mode (see pdm.h). 2954 2954 */ 2955 IDER3DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation)2955 VBOXDDU_DECL(int) VDIDiskSetTranslation(PVDIDISK pDisk, PDMBIOSTRANSLATION enmTranslation) 2956 2956 { 2957 2957 LogFlow(("VDIDiskSetTranslation: enmTranslation=%d\n", enmTranslation)); … … 2980 2980 * @param pDisk Pointer to VDI HDD container. 2981 2981 */ 2982 IDER3DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk)2982 VBOXDDU_DECL(int) VDIDiskGetImagesCount(PVDIDISK pDisk) 2983 2983 { 2984 2984 /* sanity check */ … … 3010 3010 * @param puVersion Where to store the image version. 3011 3011 */ 3012 IDER3DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion)3012 VBOXDDU_DECL(int) VDIDiskGetImageVersion(PVDIDISK pDisk, int nImage, unsigned *puVersion) 3013 3013 { 3014 3014 /* sanity check */ … … 3042 3042 * @param cbFilename Size of buffer pszFilename points to. 3043 3043 */ 3044 IDER3DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename)3044 VBOXDDU_DECL(int) VDIDiskGetImageFilename(PVDIDISK pDisk, int nImage, char *pszFilename, unsigned cbFilename) 3045 3045 { 3046 3046 /* sanity check */ … … 3085 3085 * @param cbComment The size of pszComment buffer. 0 is ok. 3086 3086 */ 3087 IDER3DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment)3087 VBOXDDU_DECL(int) VDIDiskGetImageComment(PVDIDISK pDisk, int nImage, char *pszComment, unsigned cbComment) 3088 3088 { 3089 3089 /* sanity check */ … … 3127 3127 * @param penmType Where to store the image type. 3128 3128 */ 3129 IDER3DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType)3129 VBOXDDU_DECL(int) VDIDiskGetImageType(PVDIDISK pDisk, int nImage, PVDIIMAGETYPE penmType) 3130 3130 { 3131 3131 /* sanity check */ … … 3158 3158 * @param pfFlags Where to store the image flags. 3159 3159 */ 3160 IDER3DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags)3160 VBOXDDU_DECL(int) VDIDiskGetImageFlags(PVDIDISK pDisk, int nImage, unsigned *pfFlags) 3161 3161 { 3162 3162 /* sanity check */ … … 3189 3189 * @param pUuid Where to store the image creation uuid. 3190 3190 */ 3191 IDER3DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)3191 VBOXDDU_DECL(int) VDIDiskGetImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid) 3192 3192 { 3193 3193 /* sanity check */ … … 3220 3220 * @param pUuid Where to store the image modification uuid. 3221 3221 */ 3222 IDER3DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)3222 VBOXDDU_DECL(int) VDIDiskGetImageModificationUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid) 3223 3223 { 3224 3224 /* sanity check */ … … 3251 3251 * @param pUuid Where to store the image creation uuid. 3252 3252 */ 3253 IDER3DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid)3253 VBOXDDU_DECL(int) VDIDiskGetParentImageUuid(PVDIDISK pDisk, int nImage, PRTUUID pUuid) 3254 3254 { 3255 3255 /* sanity check */ … … 3371 3371 * @param fOpen Image file open mode, see VDI_OPEN_FLAGS_* constants. 3372 3372 */ 3373 IDER3DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen)3373 VBOXDDU_DECL(int) VDIDiskOpenImage(PVDIDISK pDisk, const char *pszFilename, unsigned fOpen) 3374 3374 { 3375 3375 /* sanity check */ … … 3430 3430 * @param pDisk Pointer to VDI HDD container. 3431 3431 */ 3432 IDER3DECL(void) VDIDiskCloseImage(PVDIDISK pDisk)3432 VBOXDDU_DECL(void) VDIDiskCloseImage(PVDIDISK pDisk) 3433 3433 { 3434 3434 /* sanity check */ … … 3468 3468 * @param pDisk Pointer to VDI HDD container. 3469 3469 */ 3470 IDER3DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk)3470 VBOXDDU_DECL(void) VDIDiskCloseAllImages(PVDIDISK pDisk) 3471 3471 { 3472 3472 LogFlow(("VDIDiskCloseAllImages:\n")); … … 3503 3503 * @remark Only used by tstVDI. 3504 3504 */ 3505 IDER3DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser)3505 VBOXDDU_DECL(int) VDIDiskCommitLastDiff(PVDIDISK pDisk, PFNVMPROGRESS pfnProgress, void *pvUser) 3506 3506 { 3507 3507 LogFlow(("VDIDiskCommitLastDiff:\n")); … … 3571 3571 * @remark Only used by tstVDI. 3572 3572 */ 3573 IDER3DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename,3574 const char *pszComment, PFNVMPROGRESS pfnProgress,3575 void *pvUser)3573 VBOXDDU_DECL(int) VDIDiskCreateOpenDifferenceImage(PVDIDISK pDisk, const char *pszFilename, 3574 const char *pszComment, PFNVMPROGRESS pfnProgress, 3575 void *pvUser) 3576 3576 { 3577 3577 LogFlow(("VDIDiskCreateOpenDifferenceImage:\n")); … … 3677 3677 * @remark Only used by tstVDI and vditool 3678 3678 */ 3679 IDER3DECL(void) VDIDiskDumpImages(PVDIDISK pDisk)3679 VBOXDDU_DECL(void) VDIDiskDumpImages(PVDIDISK pDisk) 3680 3680 { 3681 3681 /* sanity check */ … … 3687 3687 vdiDumpImage(pImage); 3688 3688 } 3689 -
trunk/src/VBox/Devices/Storage/VDICore.h
r1565 r1566 521 521 __BEGIN_DECLS 522 522 523 voidvdiInitVDIDisk(PVDIDISK pDisk);524 voidvdiFlushImage(PVDIIMAGEDESC pImage);525 intvdiChangeImageMode(PVDIIMAGEDESC pImage, bool fReadOnly);523 VBOXDDU_DECL(void) vdiInitVDIDisk(PVDIDISK pDisk); 524 VBOXDDU_DECL(void) vdiFlushImage(PVDIIMAGEDESC pImage); 525 VBOXDDU_DECL(int) vdiChangeImageMode(PVDIIMAGEDESC pImage, bool fReadOnly); 526 526 527 527 __END_DECLS
Note:
See TracChangeset
for help on using the changeset viewer.