Changeset 11435 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 14, 2008 6:23:31 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r10752 r11435 3404 3404 3405 3405 /* Create supported error interface. */ 3406 mVDInterfaces = NULL; 3406 3407 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 3407 3408 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 3408 3409 mInterfaceErrorCallbacks.pfnError = VDError; 3409 int vrc = VDInterface Create(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR,3410 &mInterfaceErrorCallbacks, this, NULL);3410 int vrc = VDInterfaceAdd(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR, 3411 &mInterfaceErrorCallbacks, this, &mVDInterfaces); 3411 3412 ComAssertRCRet (vrc, E_FAIL); 3412 3413 … … 4292 4293 4293 4294 /* Create supported error interface. */ 4295 mVDInterfaces = NULL; 4294 4296 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 4295 4297 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 4296 4298 mInterfaceErrorCallbacks.pfnError = VDError; 4297 int vrc = VDInterface Create(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR,4298 &mInterfaceErrorCallbacks, this, NULL);4299 int vrc = VDInterfaceAdd(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR, 4300 &mInterfaceErrorCallbacks, this, &mVDInterfaces); 4299 4301 ComAssertRCRet (vrc, E_FAIL); 4300 4302 … … 5138 5140 5139 5141 /* Create supported error interface. */ 5142 mVDInterfaces = NULL; 5140 5143 mInterfaceErrorCallbacks.cbSize = sizeof(VDINTERFACEERROR); 5141 5144 mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR; 5142 5145 mInterfaceErrorCallbacks.pfnError = VDError; 5143 int vrc = VDInterface Create(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR,5144 &mInterfaceErrorCallbacks, this, NULL);5146 int vrc = VDInterfaceAdd(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR, 5147 &mInterfaceErrorCallbacks, this, &mVDInterfaces); 5145 5148 ComAssertRCRet (vrc, E_FAIL); 5146 5149 -
trunk/src/VBox/Main/include/HardDiskImpl.h
r10715 r11435 539 539 PVBOXHDD mContainer; 540 540 541 PVDINTERFACE mVDInterfaces; 542 541 543 VDINTERFACE mInterfaceError; 542 544 VDINTERFACEERROR mInterfaceErrorCallbacks; … … 654 656 PVBOXHDD mContainer; 655 657 658 PVDINTERFACE mVDInterfaces; 659 656 660 VDINTERFACE mInterfaceError; 657 661 VDINTERFACEERROR mInterfaceErrorCallbacks; … … 770 774 PVBOXHDD mContainer; 771 775 776 PVDINTERFACE mVDInterfaces; 777 772 778 VDINTERFACE mInterfaceError; 773 779 VDINTERFACEERROR mInterfaceErrorCallbacks;
Note:
See TracChangeset
for help on using the changeset viewer.