Changeset 11435 in vbox for trunk/src/VBox/Devices/Storage/DrvVD.cpp
- Timestamp:
- Aug 14, 2008 6:23:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvVD.cpp
r11287 r11435 89 89 /** Flag whether suspend has changed image open mode to read only. */ 90 90 bool fTempReadOnly; 91 /** Pointer to list of VD interfaces. */ 92 PVDINTERFACE pVDIfs; 91 93 /** Common structure for the supported error interface. */ 92 94 VDINTERFACE VDIError; … … 535 537 536 538 /* Initialize supported VD interfaces. */ 539 pThis->pVDIfs = NULL; 540 537 541 pThis->VDIErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 538 542 pThis->VDIErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 539 543 pThis->VDIErrorCallbacks.pfnError = drvvdErrorCallback; 540 544 541 rc = VDInterface Create(&pThis->VDIError, "DrvVD_VDIError", VDINTERFACETYPE_ERROR,542 &pThis->VDIErrorCallbacks, pDrvIns, NULL);545 rc = VDInterfaceAdd(&pThis->VDIError, "DrvVD_VDIError", VDINTERFACETYPE_ERROR, 546 &pThis->VDIErrorCallbacks, pDrvIns, &pThis->pVDIfs); 543 547 AssertRC(rc); 544 548 … … 554 558 pThis->VDIAsyncIOCallbacks.pfnTasksSubmit = drvvdAsyncIOTasksSubmit; 555 559 556 rc = VDInterface Create(&pThis->VDIAsyncIO, "DrvVD_AsyncIO", VDINTERFACETYPE_ASYNCIO,557 &pThis->VDIAsyncIOCallbacks, pThis, &pThis->VDIError);560 rc = VDInterfaceAdd(&pThis->VDIAsyncIO, "DrvVD_AsyncIO", VDINTERFACETYPE_ASYNCIO, 561 &pThis->VDIAsyncIOCallbacks, pThis, &pThis->pVDIfs); 558 562 AssertRC(rc); 559 563 … … 573 577 * At the moment this is harmless, as iSCSI can only be used as a base 574 578 * image, and no other backend uses the private data for these callbacks. */ 575 rc = VDInterface Create(&pThis->VDIConfig, "DrvVD_Config", VDINTERFACETYPE_CONFIG,576 &pThis->VDIConfigCallbacks, NULL /**< @todo TEMP */, &pThis->VDIAsyncIO);579 rc = VDInterfaceAdd(&pThis->VDIConfig, "DrvVD_Config", VDINTERFACETYPE_CONFIG, 580 &pThis->VDIConfigCallbacks, NULL /**< @todo TEMP */, &pThis->pVDIfs); 577 581 AssertRC(rc); 578 582
Note:
See TracChangeset
for help on using the changeset viewer.