VirtualBox

Changeset 11435 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 14, 2008 6:23:31 PM (16 years ago)
Author:
vboxsync
Message:

Storage: big cleanup of the VD interfaces, especially hide the linked list better.

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HardDiskImpl.cpp

    r10752 r11435  
    34043404
    34053405    /* Create supported error interface. */
     3406    mVDInterfaces = NULL;
    34063407    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
    34073408    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    34083409    mInterfaceErrorCallbacks.pfnError     = VDError;
    3409     int vrc = VDInterfaceCreate(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR,
    3410                                 &mInterfaceErrorCallbacks, this, NULL);
     3410    int vrc = VDInterfaceAdd(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR,
     3411                             &mInterfaceErrorCallbacks, this, &mVDInterfaces);
    34113412    ComAssertRCRet (vrc, E_FAIL);
    34123413
     
    42924293
    42934294    /* Create supported error interface. */
     4295    mVDInterfaces = NULL;
    42944296    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
    42954297    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    42964298    mInterfaceErrorCallbacks.pfnError     = VDError;
    4297     int vrc = VDInterfaceCreate(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR,
    4298                                 &mInterfaceErrorCallbacks, this, NULL);
     4299    int vrc = VDInterfaceAdd(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR,
     4300                             &mInterfaceErrorCallbacks, this, &mVDInterfaces);
    42994301    ComAssertRCRet (vrc, E_FAIL);
    43004302
     
    51385140
    51395141    /* Create supported error interface. */
     5142    mVDInterfaces = NULL;
    51405143    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
    51415144    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
    51425145    mInterfaceErrorCallbacks.pfnError     = VDError;
    5143     int vrc = VDInterfaceCreate(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR,
    5144                                 &mInterfaceErrorCallbacks, this, NULL);
     5146    int vrc = VDInterfaceAdd(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR,
     5147                             &mInterfaceErrorCallbacks, this, &mVDInterfaces);
    51455148    ComAssertRCRet (vrc, E_FAIL);
    51465149
  • trunk/src/VBox/Main/include/HardDiskImpl.h

    r10715 r11435  
    539539    PVBOXHDD mContainer;
    540540
     541    PVDINTERFACE     mVDInterfaces;
     542
    541543    VDINTERFACE      mInterfaceError;
    542544    VDINTERFACEERROR mInterfaceErrorCallbacks;
     
    654656    PVBOXHDD mContainer;
    655657
     658    PVDINTERFACE     mVDInterfaces;
     659
    656660    VDINTERFACE      mInterfaceError;
    657661    VDINTERFACEERROR mInterfaceErrorCallbacks;
     
    770774    PVBOXHDD mContainer;
    771775
     776    PVDINTERFACE     mVDInterfaces;
     777
    772778    VDINTERFACE      mInterfaceError;
    773779    VDINTERFACEERROR mInterfaceErrorCallbacks;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette