VirtualBox

Ignore:
Timestamp:
Aug 14, 2008 6:23:31 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34787
Message:

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.

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