Changeset 2118 in vbox
- Timestamp:
- Apr 17, 2007 8:36:00 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 20438
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD-new.h
r1949 r2118 20 20 */ 21 21 22 #ifndef __VBox_V BoxHDDNew_h__23 #define __VBox_V BoxHDDNew_h__22 #ifndef __VBox_VD_h__ 23 #define __VBox_VD_h__ 24 24 25 25 #include <VBox/cdefs.h> … … 33 33 #endif 34 34 35 /** @defgroup grp_v box_hddVBox HDD Container35 /** @defgroup grp_vd VBox HDD Container 36 36 * @{ 37 37 */ … … 54 54 /** @name VBox HDD container image types 55 55 * @{ */ 56 typedef enum V BOXHDDIMAGETYPE56 typedef enum VDIMAGETYPE 57 57 { 58 58 /** Normal dynamically growing base image file. */ 59 V BOXHDD_IMAGE_TYPE_NORMAL= 1,59 VD_IMAGE_TYPE_NORMAL = 1, 60 60 /** Preallocated base image file of a fixed size. */ 61 V BOXHDD_IMAGE_TYPE_FIXED,61 VD_IMAGE_TYPE_FIXED, 62 62 /** Dynamically growing image file for undo/commit changes support. */ 63 V BOXHDD_IMAGE_TYPE_UNDO,63 VD_IMAGE_TYPE_UNDO, 64 64 /** Dynamically growing image file for differencing support. */ 65 V BOXHDD_IMAGE_TYPE_DIFF,65 VD_IMAGE_TYPE_DIFF, 66 66 67 67 /** First valid image type value. */ 68 V BOXHDD_IMAGE_TYPE_FIRST = VBOXHDD_IMAGE_TYPE_NORMAL,68 VD_IMAGE_TYPE_FIRST = VD_IMAGE_TYPE_NORMAL, 69 69 /** Last valid image type value. */ 70 V BOXHDD_IMAGE_TYPE_LAST = VBOXHDD_IMAGE_TYPE_DIFF71 } V BOXHDDIMAGETYPE;70 VD_IMAGE_TYPE_LAST = VD_IMAGE_TYPE_DIFF 71 } VDIMAGETYPE; 72 72 /** Pointer to VBox HDD container image type. */ 73 typedef V BOXHDDIMAGETYPE *PVBOXHDDIMAGETYPE;73 typedef VDIMAGETYPE *PVDIMAGETYPE; 74 74 /** @} */ 75 75 … … 78 78 */ 79 79 /** No flags. */ 80 #define V BOXHDD_IMAGE_FLAGS_NONE(0)80 #define VD_IMAGE_FLAGS_NONE (0) 81 81 /** VMDK: Split image into 2GB extents. */ 82 #define V BOXHDD_VMDK_IMAGE_FLAGS_SPLIT_2G(0x0001)82 #define VD_VMDK_IMAGE_FLAGS_SPLIT_2G (0x0001) 83 83 /** VMDK: Split image into 2GB extents. */ 84 #define V BOXHDD_VMDK_IMAGE_FLAGS_RAWDISK(0x0002)84 #define VD_VMDK_IMAGE_FLAGS_RAWDISK (0x0002) 85 85 /** VDI: Fill new blocks with zeroes while expanding image file. */ 86 #define V BOXHDD_VDI_IMAGE_FLAGS_ZERO_EXPAND(0x0100)86 #define VD_VDI_IMAGE_FLAGS_ZERO_EXPAND (0x0100) 87 87 88 88 /** Mask of valid image flags for VMDK. */ 89 #define V BOXHDD_VMDK_IMAGE_FLAGS_MASK (VBOXHDD_IMAGE_FLAGS_NONE | VBOXHDD_VMDK_IMAGE_FLAGS_SPLIT_2G | VBOXHDD_VMDK_IMAGE_FLAGS_RAWDISK)89 #define VD_VMDK_IMAGE_FLAGS_MASK (VD_IMAGE_FLAGS_NONE | VD_VMDK_IMAGE_FLAGS_SPLIT_2G | VD_VMDK_IMAGE_FLAGS_RAWDISK) 90 90 91 91 /** Mask of valid image flags for VDI. */ 92 #define V BOXHDD_VDI_IMAGE_FLAGS_MASK (VBOXHDD_IMAGE_FLAGS_NONE | VBOXHDD_VDI_IMAGE_FLAGS_ZERO_EXPAND)92 #define VD_VDI_IMAGE_FLAGS_MASK (VD_IMAGE_FLAGS_NONE | VD_VDI_IMAGE_FLAGS_ZERO_EXPAND) 93 93 94 94 /** Default image flags. */ 95 #define V BOXHDD_IMAGE_FLAGS_DEFAULT (VBOXHDD_IMAGE_FLAGS_NONE)95 #define VD_IMAGE_FLAGS_DEFAULT (VD_IMAGE_FLAGS_NONE) 96 96 /** @} */ 97 97 … … 100 100 */ 101 101 /** Try to open image in read/write exclusive access mode if possible, or in read-only elsewhere. */ 102 #define V BOXHDD_OPEN_FLAGS_NORMAL(0)102 #define VD_OPEN_FLAGS_NORMAL (0) 103 103 /** Open image in read-only mode with sharing access with others. */ 104 #define VBOXHDD_OPEN_FLAGS_READONLY (1) 105 /** Honor zero block writes instead of ignoring them whenever possible. */ 106 #define VBOXHDD_OPEN_FLAGS_HONOR_ZEROES (2) 104 #define VD_OPEN_FLAGS_READONLY (1) 105 /** Honor zero block writes instead of ignoring them whenever possible. 106 * This is not supported by all formats. It is silently ignored in this case. */ 107 #define VD_OPEN_FLAGS_HONOR_ZEROES (2) 107 108 /** Mask of valid flags. */ 108 #define V BOXHDD_OPEN_FLAGS_MASK (VBOXHDD_OPEN_FLAGS_NORMAL | VBOXHDD_OPEN_FLAGS_READONLY | VBOXHDD_OPEN_FLAGS_HONOR_ZEROES)109 #define VD_OPEN_FLAGS_MASK (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES) 109 110 /** @}*/ 110 111 … … 121 122 * No image files are opened. 122 123 * 123 * @returns Pointer to newly created empty HDD container. 124 * @returns NULL on failure, typically out of memory. 124 * @returns VBox status code. 125 125 * @param pszBackend Name of the image file backend to use. 126 */ 127 VBOXDDU_DECL(PVBOXHDD) VBOXHDDCreate(const char *pszBackend); 126 * @param ppDisk Where to store the reference to the VBox HDD container. 127 */ 128 VBOXDDU_DECL(int) VDCreate(const char *pszBackend, PVBOXHDD *ppDisk); 128 129 129 130 /** … … 133 134 * @param pDisk Pointer to VBox HDD container. 134 135 */ 135 VBOXDDU_DECL(void) V BOXHDDDestroy(PVBOXHDD pDisk);136 VBOXDDU_DECL(void) VDDestroy(PVBOXHDD pDisk); 136 137 137 138 /** … … 146 147 * 147 148 * Note that the image is opened in read-only mode if a read/write open is not possible. 148 * Use V BOXHDDIsReadOnly to check open mode.149 * Use VDIsReadOnly to check open mode. 149 150 * 150 151 * @returns VBox status code. 151 152 * @param pDisk Pointer to VBox HDD container. 152 153 * @param pszFilename Name of the image file to open. 153 * @param uOpenFlags Image file open mode, see V BOXHDD_OPEN_FLAGS_* constants.154 */ 155 VBOXDDU_DECL(int) V BOXHDDOpenImage(PVBOXHDD pDisk, const char *pszFilename, unsigned uOpenFlags);154 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 155 */ 156 VBOXDDU_DECL(int) VDOpen(PVBOXHDD pDisk, const char *pszFilename, unsigned uOpenFlags); 156 157 157 158 /** … … 165 166 * @param uImageFlags Flags specifying special image features. 166 167 * @param pszComment Pointer to image comment. NULL is ok. 167 * @param uOpenFlags Image file open mode, see V BOXHDD_OPEN_FLAGS_* constants.168 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 168 169 * @param pfnProgress Progress callback. Optional. NULL if not to be used. 169 170 * @param pvUser User argument for the progress callback. 170 171 */ 171 VBOXDDU_DECL(int) V BOXHDDCreateBaseImage(PVBOXHDD pDisk, const char *pszFilename,172 VBOXHDDIMAGETYPE enmType, uint64_t cbSize,173 174 175 172 VBOXDDU_DECL(int) VDCreateBase(PVBOXHDD pDisk, const char *pszFilename, 173 VDIMAGETYPE enmType, uint64_t cbSize, 174 unsigned uImageFlags, const char *pszComment, 175 unsigned uOpenFlags, 176 PFNVMPROGRESS pfnProgress, void *pvUser); 176 177 177 178 /** 178 179 * Creates and opens a new differencing image file in HDD container. 179 * See comments for V BOXHDDOpenImagefunction about differencing images.180 * See comments for VDOpen function about differencing images. 180 181 * 181 182 * @returns VBox status code. … … 184 185 * @param uImageFlags Flags specifying special image features. 185 186 * @param pszComment Pointer to image comment. NULL is ok. 186 * @param uOpenFlags Image file open mode, see V BOXHDD_OPEN_FLAGS_* constants.187 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 187 188 * @param pfnProgress Progress callback. Optional. NULL if not to be used. 188 189 * @param pvUser User argument for the progress callback. 189 190 */ 190 VBOXDDU_DECL(int) V BOXHDDCreateDifferenceImage(PVBOXHDD pDisk, const char *pszFilename,191 192 193 191 VBOXDDU_DECL(int) VDCreateDiff(PVBOXHDD pDisk, const char *pszFilename, 192 unsigned uImageFlags, const char *pszComment, 193 unsigned uOpenFlags, 194 PFNVMPROGRESS pfnProgress, void *pvUser); 194 195 195 196 /** … … 205 206 * @param pvUser User argument for the progress callback. 206 207 */ 207 VBOXDDU_DECL(int) V BOXHDDMergeImage(PVBOXHDD pDisk, unsigned nImageFrom, unsigned nImageTo,208 208 VBOXDDU_DECL(int) VDMerge(PVBOXHDD pDisk, unsigned nImageFrom, unsigned nImageTo, 209 PFNVMPROGRESS pfnProgress, void *pvUser); 209 210 210 211 /** … … 214 215 * backend for the destination VBox HDD container may be different from the 215 216 * source container. 217 * If both the source and destination reference the same VBox HDD container, 218 * then the image is moved (by copying/deleting) to the new location. 219 * The source container is unchanged if the move operation fails, otherwise 220 * the image at the new location is opened in the same way as the old one was. 216 221 * 217 222 * @returns VBox status code. … … 222 227 * @param pvUser User argument for the progress callback. 223 228 */ 224 VBOXDDU_DECL(int) V BOXHDDCopyImage(PVBOXHDD pDiskFrom, unsigned nImage, PVBOXHDD pDiskTo,225 229 VBOXDDU_DECL(int) VDCopy(PVBOXHDD pDiskFrom, unsigned nImage, PVBOXHDD pDiskTo, 230 PFNVMPROGRESS pfnProgress, void *pvUser); 226 231 227 232 /** … … 231 236 * 232 237 * @returns VBox status code. 238 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 233 239 * @param pDisk Pointer to VBox HDD container. 234 240 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 237 243 * @param pvUser User argument for the progress callback. 238 244 */ 239 VBOXDDU_DECL(int) V BOXHDDCompactImage(PVBOXHDD pDisk, unsigned nImage,240 241 245 VBOXDDU_DECL(int) VDCompact(PVBOXHDD pDisk, unsigned nImage, 246 bool fDefragment, 247 PFNVMPROGRESS pfnProgress, void *pvUser); 242 248 243 249 /** … … 246 252 * 247 253 * @returns VBox status code. 254 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 248 255 * @param pDisk Pointer to VBox HDD container. 249 256 * @param nImage Image number, counts from 0. 0 is always base image of container. … … 252 259 * @param pvUser User argument for the progress callback. 253 260 */ 254 VBOXDDU_DECL(int) V BOXHDDResizeImage(PVBOXHDD pDisk, unsigned nImage, uint64_t cbSize,255 261 VBOXDDU_DECL(int) VDResize(PVBOXHDD pDisk, unsigned nImage, uint64_t cbSize, 262 PFNVMPROGRESS pfnProgress, void *pvUser); 256 263 257 264 /** … … 264 271 * @param fDelete If true, delete the image from the host disk. 265 272 */ 266 VBOXDDU_DECL(void) V BOXHDDCloseImage(PVBOXHDD pDisk, bool fDelete);273 VBOXDDU_DECL(void) VDClose(PVBOXHDD pDisk, bool fDelete); 267 274 268 275 /** … … 271 278 * @param pDisk Pointer to VBox HDD container. 272 279 */ 273 VBOXDDU_DECL(void) V BOXHDDCloseAllImages(PVBOXHDD pDisk);280 VBOXDDU_DECL(void) VDCloseAll(PVBOXHDD pDisk); 274 281 275 282 /** … … 277 284 * 278 285 * @returns VBox status code. 279 * @param pDisk Pointer to VBox HDD container. 280 * @param offStart Offset of first reading byte from start of disk. 286 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 287 * @param pDisk Pointer to VBox HDD container. 288 * @param off Offset of first reading byte from start of disk. 281 289 * @param pvBuf Pointer to buffer for reading data. 282 * @param cb ToReadNumber of bytes to read.283 */ 284 VBOXDDU_DECL(int) V BOXHDDRead(PVBOXHDD pDisk, uint64_t offStart, void *pvBuf, unsigned cbToRead);290 * @param cbRead Number of bytes to read. 291 */ 292 VBOXDDU_DECL(int) VDRead(PVBOXHDD pDisk, uint64_t off, void *pvBuf, unsigned cbRead); 285 293 286 294 /** … … 288 296 * 289 297 * @returns VBox status code. 290 * @param pDisk Pointer to VBox HDD container. 291 * @param offStart Offset of first writing byte from start of disk. 292 * @param pvBuf Pointer to buffer of writing data. 293 * @param cbToWrite Number of bytes to write. 294 */ 295 VBOXDDU_DECL(int) VBOXHDDWrite(PVBOXHDD pDisk, uint64_t offStart, const void *pvBuf, unsigned cbToWrite); 298 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 299 * @param pDisk Pointer to VBox HDD container. 300 * @param off Offset of first writing byte from start of disk. 301 * @param pvBuf Pointer to buffer for writing data. 302 * @param cbWrite Number of bytes to write. 303 */ 304 VBOXDDU_DECL(int) VDWrite(PVBOXHDD pDisk, uint64_t off, const void *pvBuf, unsigned cbWrite); 296 305 297 306 /** … … 299 308 * 300 309 * @returns VBox status code. 301 * @param pDisk Pointer to VBox HDD container. 302 */ 303 VBOXDDU_DECL(int) VBOXHDDFlush(PVBOXHDD pDisk); 310 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 311 * @param pDisk Pointer to VBox HDD container. 312 */ 313 VBOXDDU_DECL(int) VDFlush(PVBOXHDD pDisk); 304 314 305 315 /** 306 316 * Get number of opened images in HDD container. 307 317 * 308 * @returns Number of opened images for HDD container. 0 if no images ha sbeen opened.309 * @param pDisk Pointer to VBox HDD container. 310 */ 311 VBOXDDU_DECL( int) VBOXHDDGetImagesCount(PVBOXHDD pDisk);318 * @returns Number of opened images for HDD container. 0 if no images have been opened. 319 * @param pDisk Pointer to VBox HDD container. 320 */ 321 VBOXDDU_DECL(unsigned) VDGetCount(PVBOXHDD pDisk); 312 322 313 323 /** … … 318 328 * @param pDisk Pointer to VBox HDD container. 319 329 */ 320 VBOXDDU_DECL(bool) V BOXHDDIsReadOnly(PVBOXHDD pDisk);330 VBOXDDU_DECL(bool) VDIsReadOnly(PVBOXHDD pDisk); 321 331 322 332 /** … … 327 337 * @param pDisk Pointer to VBox HDD container. 328 338 */ 329 VBOXDDU_DECL(uint64_t) V BOXHDDGetSize(PVBOXHDD pDisk);339 VBOXDDU_DECL(uint64_t) VDGetSize(PVBOXHDD pDisk); 330 340 331 341 /** … … 336 346 * @param pDisk Pointer to VBox HDD container. 337 347 */ 338 VBOXDDU_DECL(unsigned) VBOXHDDGetBlockSize(PVBOXHDD pDisk); 339 340 /** 341 * Get optimal buffer size for working with the VBox HDD container. 342 * The working buffer size is an integral multiple of the block size. 343 * 344 * @returns Virtual disk working buffer size in bytes. 345 * @param pDisk Pointer to VBox HDD container. 346 */ 347 VBOXDDU_DECL(unsigned) VBOXHDDGetBufferSize(PVBOXHDD pDisk); 348 VBOXDDU_DECL(unsigned) VDGetBlockSize(PVBOXHDD pDisk); 348 349 349 350 /** … … 358 359 * @param pcSectors Where to store the number of sectors. NULL is ok. 359 360 */ 360 VBOXDDU_DECL(int) VBOXHDDGetGeometry(PVBOXHDD pDisk, unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors); 361 VBOXDDU_DECL(int) VDGetGeometry(PVBOXHDD pDisk, 362 unsigned *pcCylinders, unsigned *pcHeads, unsigned *pcSectors); 361 363 362 364 /** … … 372 374 * @param cSectors Number of sectors. 373 375 */ 374 VBOXDDU_DECL(int) VBOXHDDSetGeometry(PVBOXHDD pDisk, unsigned cCylinders, unsigned cHeads, unsigned cSectors); 376 VBOXDDU_DECL(int) VDSetGeometry(PVBOXHDD pDisk, 377 unsigned cCylinders, unsigned cHeads, unsigned cSectors); 375 378 376 379 /** … … 379 382 * @returns VBox status code. 380 383 * @returns VERR_VDI_NOT_OPENED if no image is opened in HDD container. 384 * @returns VERR_VDI_GEOMETRY_NOT_SET if no geometry present in the HDD container. 381 385 * @param pDisk Pointer to VBox HDD container. 382 386 * @param penmTranslation Where to store the translation mode (see pdm.h). 383 387 */ 384 VBOXDDU_DECL(int) V BOXHDDGetTranslation(PVBOXHDD pDisk, PPDMBIOSTRANSLATION penmTranslation);388 VBOXDDU_DECL(int) VDGetTranslation(PVBOXHDD pDisk, PPDMBIOSTRANSLATION penmTranslation); 385 389 386 390 /** … … 394 398 * @param enmTranslation Translation mode (see pdm.h). 395 399 */ 396 VBOXDDU_DECL(int) V BOXHDDSetTranslation(PVBOXHDD pDisk, PDMBIOSTRANSLATION enmTranslation);397 398 /** 399 * Get version of openedimage in HDD container.400 VBOXDDU_DECL(int) VDSetTranslation(PVBOXHDD pDisk, PDMBIOSTRANSLATION enmTranslation); 401 402 /** 403 * Get version of image in HDD container. 400 404 * 401 405 * @returns VBox status code. … … 405 409 * @param puVersion Where to store the image version. 406 410 */ 407 VBOXDDU_DECL(int) V BOXHDDGetImageVersion(PVBOXHDD pDisk, unsigned nImage, unsigned *puVersion);408 409 /** 410 * Get type of openedimage in HDD container.411 VBOXDDU_DECL(int) VDGetVersion(PVBOXHDD pDisk, unsigned nImage, unsigned *puVersion); 412 413 /** 414 * Get type of image in HDD container. 411 415 * 412 416 * @returns VBox status code. … … 416 420 * @param penmType Where to store the image type. 417 421 */ 418 VBOXDDU_DECL(int) V BOXHDDGetImageType(PVBOXHDD pDisk, unsigned nImage, PVBOXHDDIMAGETYPE penmType);419 420 /** 421 * Get flags of openedimage in HDD container.422 VBOXDDU_DECL(int) VDGetImageType(PVBOXHDD pDisk, unsigned nImage, PVDIMAGETYPE penmType); 423 424 /** 425 * Get flags of image in HDD container. 422 426 * 423 427 * @returns VBox status code. … … 427 431 * @param puImageFlags Where to store the image flags. 428 432 */ 429 VBOXDDU_DECL(int) V BOXHDDGetImageFlags(PVBOXHDD pDisk, unsigned nImage, unsigned *puImageFlags);433 VBOXDDU_DECL(int) VDGetImageFlags(PVBOXHDD pDisk, unsigned nImage, unsigned *puImageFlags); 430 434 431 435 /** … … 437 441 * @param puOpenFlags Where to store the image open flags. 438 442 */ 439 VBOXDDU_DECL(int) V BOXHDDGetOpenFlags(PVBOXHDD pDisk, unsigned *puOpenFlags);443 VBOXDDU_DECL(int) VDGetOpenFlags(PVBOXHDD pDisk, unsigned *puOpenFlags); 440 444 441 445 /** … … 447 451 * @returns VERR_VDI_IMAGE_NOT_FOUND if image with specified number was not opened. 448 452 * @param pDisk Pointer to VBox HDD container. 449 * @param uOpenFlags Image file open mode, see V BOXHDD_OPEN_FLAGS_* constants.450 */ 451 VBOXDDU_DECL(int) V BOXHDDSetOpenFlags(PVBOXHDD pDisk, unsigned uOpenFlags);452 453 /** 454 * Get base filename of openedimage in HDD container. Some image formats use453 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 454 */ 455 VBOXDDU_DECL(int) VDSetOpenFlags(PVBOXHDD pDisk, unsigned uOpenFlags); 456 457 /** 458 * Get base filename of image in HDD container. Some image formats use 455 459 * other filenames as well, so don't use this for anything but for informational 456 460 * purposes. … … 464 468 * @param cbFilename Size of buffer pszFilename points to. 465 469 */ 466 VBOXDDU_DECL(int) V BOXHDDGetImageFilename(PVBOXHDD pDisk, unsigned nImage, char *pszFilename, unsigned cbFilename);467 468 /** 469 * Get the comment line of openedimage in HDD container.470 VBOXDDU_DECL(int) VDGetFilename(PVBOXHDD pDisk, unsigned nImage, char *pszFilename, unsigned cbFilename); 471 472 /** 473 * Get the comment line of image in HDD container. 470 474 * 471 475 * @returns VBox status code. … … 477 481 * @param cbComment The size of pszComment buffer. 0 is ok. 478 482 */ 479 VBOXDDU_DECL(int) V BOXHDDGetImageComment(PVBOXHDD pDisk, unsigned nImage, char *pszComment, unsigned cbComment);480 481 /** 482 * Changes the comment line of openedimage in HDD container.483 VBOXDDU_DECL(int) VDGetComment(PVBOXHDD pDisk, unsigned nImage, char *pszComment, unsigned cbComment); 484 485 /** 486 * Changes the comment line of image in HDD container. 483 487 * 484 488 * @returns VBox status code. … … 488 492 * @param pszComment New comment string (UTF-8). NULL is allowed to reset the comment. 489 493 */ 490 VBOXDDU_DECL(int) V BOXHDDSetImageComment(PVBOXHDD pDisk, unsigned nImage, const char *pszComment);491 492 /** 493 * Get UUID of openedimage in HDD container.494 * 495 * @returns VBox status code. 496 * @returns VERR_VDI_IMAGE_NOT_FOUND if image with specified number was not opened. 497 * @param pDisk Pointer to VBox HDD container. 498 * @param nImage Image number, counts from 0. 0 is always base image of container. 499 * @param pUuid Where to store the image creationuuid.500 */ 501 VBOXDDU_DECL(int) V BOXHDDGetImageUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid);502 503 /** 504 * Set the openedimage's UUID. Should not be used by normal applications.494 VBOXDDU_DECL(int) VDSetComment(PVBOXHDD pDisk, unsigned nImage, const char *pszComment); 495 496 /** 497 * Get UUID of image in HDD container. 498 * 499 * @returns VBox status code. 500 * @returns VERR_VDI_IMAGE_NOT_FOUND if image with specified number was not opened. 501 * @param pDisk Pointer to VBox HDD container. 502 * @param nImage Image number, counts from 0. 0 is always base image of container. 503 * @param pUuid Where to store the image uuid. 504 */ 505 VBOXDDU_DECL(int) VDGetUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid); 506 507 /** 508 * Set the image's UUID. Should not be used by normal applications. 505 509 * 506 510 * @returns VBox status code. … … 510 514 * @param pUuid Optional parameter, new UUID of the image. 511 515 */ 512 VBOXDDU_DECL(int) V BOXHDDSetImageUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid);513 514 /** 515 * Get last modification UUID of openedimage in HDD container.516 VBOXDDU_DECL(int) VDSetUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid); 517 518 /** 519 * Get last modification UUID of image in HDD container. 516 520 * 517 521 * @returns VBox status code. … … 521 525 * @param pUuid Where to store the image modification uuid. 522 526 */ 523 VBOXDDU_DECL(int) V BOXHDDGetImageModificationUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid);524 525 /** 526 * Set the openedimage's last modification UUID. Should not be used by normal applications.527 VBOXDDU_DECL(int) VDGetModificationUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid); 528 529 /** 530 * Set the image's last modification UUID. Should not be used by normal applications. 527 531 * 528 532 * @returns VBox status code. … … 532 536 * @param pUuid Optional parameter, new last modification UUID of the image. 533 537 */ 534 VBOXDDU_DECL(int) V BOXHDDSetImageModificationUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid);535 536 /** 537 * Get parent UUID of openedimage in HDD container.538 VBOXDDU_DECL(int) VDSetModificationUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid); 539 540 /** 541 * Get parent UUID of image in HDD container. 538 542 * 539 543 * @returns VBox status code. … … 541 545 * @param pDisk Pointer to VBox HDD container. 542 546 * @param nImage Image number, counts from 0. 0 is always base image of the container. 543 * @param pUuid Where to store the image creationuuid.544 */ 545 VBOXDDU_DECL(int) V BOXHDDGetParentImageUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid);547 * @param pUuid Where to store the parent image uuid. 548 */ 549 VBOXDDU_DECL(int) VDGetParentUuid(PVBOXHDD pDisk, unsigned nImage, PRTUUID pUuid); 546 550 547 551 /** … … 553 557 * @param pUuid Optional parameter, new parent UUID of the image. 554 558 */ 555 VBOXDDU_DECL(int) V BOXHDDSetImageParentUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid);559 VBOXDDU_DECL(int) VDSetParentUuid(PVBOXHDD pDisk, unsigned nImage, PCRTUUID pUuid); 556 560 557 561 … … 562 566 * @param pDisk Pointer to VBox HDD container. 563 567 */ 564 VBOXDDU_DECL(void) V BOXHDDDumpImages(PVBOXHDD pDisk);568 VBOXDDU_DECL(void) VDDumpImages(PVBOXHDD pDisk); 565 569 566 570 __END_DECLS
Note:
See TracChangeset
for help on using the changeset viewer.