VirtualBox

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r11353 r11435  
    749749    HOSTPARTITIONS partitions;
    750750    uint32_t uPartitions = 0;
     751    PVDINTERFACE pVDIfs = NULL;
    751752
    752753    /* let's have a closer look at the arguments */
     
    11501151    vdInterfaceErrorCallbacks.pfnError     = handleVDError;
    11511152
    1152     vrc = VDInterfaceCreate(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
    1153                             &vdInterfaceErrorCallbacks, NULL, NULL);
     1153    vrc = VDInterfaceAdd(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
     1154                         &vdInterfaceErrorCallbacks, NULL, &pVDIfs);
    11541155    AssertRC(vrc);
    11551156
     
    12571258    PVBOXHDD pDisk = NULL;
    12581259
     1260    PVDINTERFACE     pVDIfs = NULL;
    12591261    VDINTERFACE      vdInterfaceError;
    12601262    VDINTERFACEERROR vdInterfaceErrorCallbacks;
     
    12631265    vdInterfaceErrorCallbacks.pfnError     = handleVDError;
    12641266
    1265     int vrc = VDInterfaceCreate(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
    1266                                 &vdInterfaceErrorCallbacks, NULL, NULL);
     1267    int vrc = VDInterfaceAdd(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
     1268                             &vdInterfaceErrorCallbacks, NULL, &pVDIfs);
    12671269    AssertRC(vrc);
    12681270
     
    13371339    PVBOXHDD pDisk = NULL;
    13381340
     1341    PVDINTERFACE     pVDIfs = NULL;
    13391342    VDINTERFACE      vdInterfaceError;
    13401343    VDINTERFACEERROR vdInterfaceErrorCallbacks;
     
    13431346    vdInterfaceErrorCallbacks.pfnError     = handleVDError;
    13441347
    1345     int vrc = VDInterfaceCreate(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
    1346                                 &vdInterfaceErrorCallbacks, NULL, NULL);
     1348    int vrc = VDInterfaceAdd(&vdInterfaceError, "VBoxManage_IError", VDINTERFACETYPE_ERROR,
     1349                             &vdInterfaceErrorCallbacks, NULL, &pVDIfs);
    13471350    AssertRC(vrc);
    13481351
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