Changeset 64272 in vbox for trunk/include
- Timestamp:
- Oct 14, 2016 8:25:05 AM (8 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vd-cache-backend.h
r63912 r64272 125 125 * @param pBackendData Opaque state data for this image. 126 126 * @param uOffset The offset of the virtual disk to read from. 127 * @param cb ReadHow many bytes to read.127 * @param cbToRead How many bytes to read. 128 128 * @param pIoCtx I/O context associated with this request. 129 129 * @param pcbActuallyRead Pointer to returned number of bytes read. 130 130 */ 131 DECLR3CALLBACKMEMBER(int, pfnRead, (void *pBackendData, uint64_t uOffset, size_t cb Read,131 DECLR3CALLBACKMEMBER(int, pfnRead, (void *pBackendData, uint64_t uOffset, size_t cbToRead, 132 132 PVDIOCTX pIoCtx, size_t *pcbActuallyRead)); 133 133 … … 138 138 * @param pBackendData Opaque state data for this image. 139 139 * @param uOffset The offset of the virtual disk to write to. 140 * @param cb WriteHow many bytes to write.140 * @param cbToWrite How many bytes to write. 141 141 * @param pIoCtx I/O context associated with this request. 142 142 * @param pcbWriteProcess Pointer to returned number of bytes that could … … 147 147 * amount of (previously read) padding data. 148 148 */ 149 DECLR3CALLBACKMEMBER(int, pfnWrite, (void *pBackendData, uint64_t uOffset, size_t cb Write,149 DECLR3CALLBACKMEMBER(int, pfnWrite, (void *pBackendData, uint64_t uOffset, size_t cbToWrite, 150 150 PVDIOCTX pIoCtx, size_t *pcbWriteProcess)); 151 151 -
trunk/include/VBox/vd-ifs.h
r63912 r64272 357 357 * VDAsyncRead or VDAsyncWrite) in pvCompletion 358 358 * if this is NULL. 359 * @param pp StorageWhere to store the opaque storage handle.359 * @param ppvStorage Where to store the opaque storage handle. 360 360 */ 361 361 DECLR3CALLBACKMEMBER(int, pfnOpen, (void *pvUser, const char *pszLocation, 362 362 uint32_t fOpen, 363 363 PFNVDCOMPLETED pfnCompleted, 364 void **pp Storage));364 void **ppvStorage)); 365 365 366 366 /** … … 369 369 * @return VBox status code. 370 370 * @param pvUser The opaque data passed on container creation. 371 * @param p StorageThe opaque storage handle to close.372 */ 373 DECLR3CALLBACKMEMBER(int, pfnClose, (void *pvUser, void *p Storage));371 * @param pvStorage The opaque storage handle to close. 372 */ 373 DECLR3CALLBACKMEMBER(int, pfnClose, (void *pvUser, void *pvStorage)); 374 374 375 375 /** … … 419 419 * @return VBox status code. 420 420 * @param pvUser The opaque data passed on container creation. 421 * @param p Storage The opaque storage handle to close.422 * @param pcb SizeWhere to store the size of the storage backend.423 */ 424 DECLR3CALLBACKMEMBER(int, pfnGetSize, (void *pvUser, void *p Storage, uint64_t *pcbSize));421 * @param pvStorage The opaque storage handle to get the size from. 422 * @param pcb Where to store the size of the storage backend. 423 */ 424 DECLR3CALLBACKMEMBER(int, pfnGetSize, (void *pvUser, void *pvStorage, uint64_t *pcb)); 425 425 426 426 /** … … 430 430 * @retval VERR_NOT_SUPPORTED if the backend does not support this operation. 431 431 * @param pvUser The opaque data passed on container creation. 432 * @param p Storage The opaque storage handle to close.433 * @param cb SizeThe new size of the image.432 * @param pvStorage The opaque storage handle to set the size for. 433 * @param cb The new size of the image. 434 434 * 435 435 * @note Depending on the host the underlying storage (backing file, etc.) … … 441 441 * really alloacted. 442 442 */ 443 DECLR3CALLBACKMEMBER(int, pfnSetSize, (void *pvUser, void *p Storage, uint64_t cbSize));443 DECLR3CALLBACKMEMBER(int, pfnSetSize, (void *pvUser, void *pvStorage, uint64_t cb)); 444 444 445 445 /** … … 451 451 * this method. 452 452 * @param pvUser The opaque data passed on container creation. 453 * @param p StorageThe storage handle.453 * @param pvStorage The storage handle. 454 454 * @param cbSize The new size of the image. 455 455 * @param fFlags Flags for controlling the allocation strategy. 456 456 * Reserved for future use, MBZ. 457 457 */ 458 DECLR3CALLBACKMEMBER(int, pfnSetAllocationSize, (void *pvUser, void *p Storage,458 DECLR3CALLBACKMEMBER(int, pfnSetAllocationSize, (void *pvUser, void *pvStorage, 459 459 uint64_t cbSize, uint32_t fFlags)); 460 460 … … 464 464 * @return VBox status code. 465 465 * @param pvUser The opaque data passed on container creation. 466 * @param p StorageThe storage handle to use.467 * @param uOffsetThe offset to start from.468 * @param pvBuf ferPointer to the bits need to be written.469 * @param cb BufferHow many bytes to write.466 * @param pvStorage The storage handle to use. 467 * @param off The offset to start from. 468 * @param pvBuf Pointer to the bits need to be written. 469 * @param cbToWrite How many bytes to write. 470 470 * @param pcbWritten Where to store how many bytes were actually written. 471 471 */ 472 DECLR3CALLBACKMEMBER(int, pfnWriteSync, (void *pvUser, void *p Storage, uint64_t uOffset,473 const void *pvBuf fer, size_t cbBuffer, size_t *pcbWritten));472 DECLR3CALLBACKMEMBER(int, pfnWriteSync, (void *pvUser, void *pvStorage, uint64_t off, 473 const void *pvBuf, size_t cbToWrite, size_t *pcbWritten)); 474 474 475 475 /** … … 478 478 * @return VBox status code. 479 479 * @param pvUser The opaque data passed on container creation. 480 * @param p StorageThe storage handle to use.481 * @param uOffsetThe offset to start from.482 * @param pvBuf ferWhere to store the read bits.483 * @param cb BufferHow many bytes to read.480 * @param pvStorage The storage handle to use. 481 * @param off The offset to start from. 482 * @param pvBuf Where to store the read bits. 483 * @param cbToRead How many bytes to read. 484 484 * @param pcbRead Where to store how many bytes were actually read. 485 485 */ 486 DECLR3CALLBACKMEMBER(int, pfnReadSync, (void *pvUser, void *p Storage, uint64_t uOffset,487 void *pvBuf fer, size_t cbBuffer, size_t *pcbRead));486 DECLR3CALLBACKMEMBER(int, pfnReadSync, (void *pvUser, void *pvStorage, uint64_t off, 487 void *pvBuf, size_t cbToRead, size_t *pcbRead)); 488 488 489 489 /** … … 492 492 * @return VBox status code. 493 493 * @param pvUser The opaque data passed on container creation. 494 * @param p StorageThe storage handle to flush.495 */ 496 DECLR3CALLBACKMEMBER(int, pfnFlushSync, (void *pvUser, void *p Storage));494 * @param pvStorage The storage handle to flush. 495 */ 496 DECLR3CALLBACKMEMBER(int, pfnFlushSync, (void *pvUser, void *pvStorage)); 497 497 498 498 /** … … 501 501 * @return VBox status code. 502 502 * @param pvUser The opaque user data passed on container creation. 503 * @param p StorageThe storage handle.503 * @param pvStorage The storage handle. 504 504 * @param uOffset The offset to start reading from. 505 505 * @param paSegments Scatter gather list to store the data in. … … 509 509 * @param ppTask Where to store the opaque task handle. 510 510 */ 511 DECLR3CALLBACKMEMBER(int, pfnReadAsync, (void *pvUser, void *p Storage, uint64_t uOffset,511 DECLR3CALLBACKMEMBER(int, pfnReadAsync, (void *pvUser, void *pvStorage, uint64_t uOffset, 512 512 PCRTSGSEG paSegments, size_t cSegments, 513 513 size_t cbRead, void *pvCompletion, … … 519 519 * @return VBox status code. 520 520 * @param pvUser The opaque user data passed on conatiner creation. 521 * @param p StorageThe storage handle.521 * @param pvStorage The storage handle. 522 522 * @param uOffset The offset to start writing to. 523 523 * @param paSegments Scatter gather list of the data to write … … 527 527 * @param ppTask Where to store the opaque task handle. 528 528 */ 529 DECLR3CALLBACKMEMBER(int, pfnWriteAsync, (void *pvUser, void *p Storage, uint64_t uOffset,529 DECLR3CALLBACKMEMBER(int, pfnWriteAsync, (void *pvUser, void *pvStorage, uint64_t uOffset, 530 530 PCRTSGSEG paSegments, size_t cSegments, 531 531 size_t cbWrite, void *pvCompletion, … … 537 537 * @return VBox status code. 538 538 * @param pvUser The opaque data passed on container creation. 539 * @param p StorageThe storage handle to flush.539 * @param pvStorage The storage handle to flush. 540 540 * @param pvCompletion The opaque user data which is returned upon completion. 541 541 * @param ppTask Where to store the opaque task handle. 542 542 */ 543 DECLR3CALLBACKMEMBER(int, pfnFlushAsync, (void *pvUser, void *p Storage,543 DECLR3CALLBACKMEMBER(int, pfnFlushAsync, (void *pvUser, void *pvStorage, 544 544 void *pvCompletion, void **ppTask)); 545 545 -
trunk/include/VBox/vd-image-backend.h
r63912 r64272 177 177 * @param pBackendData Opaque state data for this image. 178 178 * @param uOffset The offset of the virtual disk to read from. 179 * @param cb ReadHow many bytes to read.179 * @param cbToRead How many bytes to read. 180 180 * @param pIoCtx I/O context associated with this request. 181 181 * @param pcbActuallyRead Pointer to returned number of bytes read. 182 182 */ 183 DECLR3CALLBACKMEMBER(int, pfnRead, (void *pBackendData, uint64_t uOffset, size_t cb Read,183 DECLR3CALLBACKMEMBER(int, pfnRead, (void *pBackendData, uint64_t uOffset, size_t cbToRead, 184 184 PVDIOCTX pIoCtx, size_t *pcbActuallyRead)); 185 185 … … 190 190 * @param pBackendData Opaque state data for this image. 191 191 * @param uOffset The offset of the virtual disk to write to. 192 * @param cb WriteHow many bytes to write.192 * @param cbToWrite How many bytes to write. 193 193 * @param pIoCtx I/O context associated with this request. 194 194 * @param pcbWriteProcess Pointer to returned number of bytes that could … … 205 205 * of the VD_WRITE_* flags. 206 206 */ 207 DECLR3CALLBACKMEMBER(int, pfnWrite, (void *pBackendData, uint64_t uOffset, size_t cb Write,207 DECLR3CALLBACKMEMBER(int, pfnWrite, (void *pBackendData, uint64_t uOffset, size_t cbToWrite, 208 208 PVDIOCTX pIoCtx, 209 209 size_t *pcbWriteProcess, size_t *pcbPreRead, … … 480 480 * 481 481 * @returns VBox status code. 482 * @param pBackendData Opaque state data for this image.483 * @param p szParentFilename Where to store the path.482 * @param pBackendData Opaque state data for this image. 483 * @param ppszParentFilename Where to store the path. 484 484 */ 485 485 DECLR3CALLBACKMEMBER(int, pfnGetParentFilename, (void *pBackendData, char **ppszParentFilename)); -
trunk/include/VBox/vd.h
r60608 r64272 1002 1002 * 1003 1003 * @return VBox status code. 1004 * @ret urnVERR_VD_NOT_OPENED if no image is opened in HDD container.1005 * @param pDisk Pointer to HDD container. 1006 * @param offOffset of first reading byte from start of disk.1004 * @retval VERR_VD_NOT_OPENED if no image is opened in HDD container. 1005 * @param pDisk Pointer to HDD container. 1006 * @param uOffset Offset of first reading byte from start of disk. 1007 1007 * Must be aligned to a sector boundary. 1008 * @param pvBuf ferPointer to buffer for reading data.1009 * @param cb BufferNumber of bytes to read.1008 * @param pvBuf Pointer to buffer for reading data. 1009 * @param cbRead Number of bytes to read. 1010 1010 * Must be aligned to a sector boundary. 1011 1011 */ 1012 VBOXDDU_DECL(int) VDRead(PVBOXHDD pDisk, uint64_t off, void *pvBuffer, size_t cbBuffer);1012 VBOXDDU_DECL(int) VDRead(PVBOXHDD pDisk, uint64_t uOffset, void *pvBuf, size_t cbRead); 1013 1013 1014 1014 /** … … 1016 1016 * 1017 1017 * @return VBox status code. 1018 * @ret urnVERR_VD_NOT_OPENED if no image is opened in HDD container.1019 * @param pDisk Pointer to HDD container. 1020 * @param offOffset of first writing byte from start of disk.1018 * @retval VERR_VD_NOT_OPENED if no image is opened in HDD container. 1019 * @param pDisk Pointer to HDD container. 1020 * @param uOffset Offset of first writing byte from start of disk. 1021 1021 * Must be aligned to a sector boundary. 1022 * @param pvBuf ferPointer to buffer for writing data.1023 * @param cb BufferNumber of bytes to write.1022 * @param pvBuf Pointer to buffer for writing data. 1023 * @param cbWrite Number of bytes to write. 1024 1024 * Must be aligned to a sector boundary. 1025 1025 */ 1026 VBOXDDU_DECL(int) VDWrite(PVBOXHDD pDisk, uint64_t off, const void *pvBuffer, size_t cbBuffer);1026 VBOXDDU_DECL(int) VDWrite(PVBOXHDD pDisk, uint64_t uOffset, const void *pvBuf, size_t cbWrite); 1027 1027 1028 1028 /** … … 1030 1030 * 1031 1031 * @return VBox status code. 1032 * @ret urnVERR_VD_NOT_OPENED if no image is opened in HDD container.1032 * @retval VERR_VD_NOT_OPENED if no image is opened in HDD container. 1033 1033 * @param pDisk Pointer to HDD container. 1034 1034 */
Note:
See TracChangeset
for help on using the changeset viewer.