VirtualBox

Ignore:
Timestamp:
Jul 16, 2008 10:38:23 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33435
Message:

Merge async I/O for VMDK backend from private branch

File:
1 edited

Legend:

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

    r9497 r10715  
    34033403    mActualSize = 0;
    34043404
     3405    /* Create supported error interface. */
     3406    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
     3407    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
     3408    mInterfaceErrorCallbacks.pfnError     = VDError;
     3409    int vrc = VDInterfaceCreate(&mInterfaceError, "VMDK_IError", VDINTERFACETYPE_ERROR,
     3410                                &mInterfaceErrorCallbacks, this, NULL);
     3411    ComAssertRCRet (vrc, E_FAIL);
     3412
    34053413    /* initialize the container */
    3406     int vrc = VDCreate (VDError, this, &mContainer);
     3414    vrc = VDCreate (&mInterfaceError, &mContainer);
    34073415    ComAssertRCRet (vrc, E_FAIL);
    34083416
     
    42834291    ComAssertRCRet (rc, E_FAIL);
    42844292
     4293    /* Create supported error interface. */
     4294    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
     4295    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
     4296    mInterfaceErrorCallbacks.pfnError     = VDError;
     4297    int vrc = VDInterfaceCreate(&mInterfaceError, "Custom_IError", VDINTERFACETYPE_ERROR,
     4298                                &mInterfaceErrorCallbacks, this, NULL);
     4299    ComAssertRCRet (vrc, E_FAIL);
     4300
    42854301    return S_OK;
    42864302}
     
    43444360
    43454361        /* initialize the container */
    4346         vrc = VDCreate (VDError, this, &mContainer);
     4362        vrc = VDCreate (&mInterfaceError, &mContainer);
    43474363        if (VBOX_FAILURE (vrc))
    43484364        {
     
    44474463            RTStrFree (pszFormat);
    44484464
    4449             /* Create the corresponding container. */
    4450             vrc = VDCreate (VDError, this, &mContainer);
     4465            /* initialize the container */
     4466            vrc = VDCreate (&mInterfaceError, &mContainer);
    44514467
    44524468            /* the format has been already checked for presence at this point */
     
    51115127    mActualSize = 0;
    51125128
     5129    /* Create supported error interface. */
     5130    mInterfaceErrorCallbacks.cbSize       = sizeof(VDINTERFACEERROR);
     5131    mInterfaceErrorCallbacks.enmInterface = VDINTERFACETYPE_ERROR;
     5132    mInterfaceErrorCallbacks.pfnError     = VDError;
     5133    int vrc = VDInterfaceCreate(&mInterfaceError, "VHD_IError", VDINTERFACETYPE_ERROR,
     5134                                &mInterfaceErrorCallbacks, this, NULL);
     5135    ComAssertRCRet (vrc, E_FAIL);
     5136
    51135137    /* initialize the container */
    5114     int vrc = VDCreate (VDError, this, &mContainer);
     5138    vrc = VDCreate (&mInterfaceError, &mContainer);
    51155139    ComAssertRCRet (vrc, E_FAIL);
    51165140
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