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/Devices/Storage/testcase/tstVD.cpp

    r11353 r11435  
    5656    PDMMEDIAGEOMETRY PCHS = { 0, 0, 0 };
    5757    PDMMEDIAGEOMETRY LCHS = { 0, 0, 0 };
     58    PVDINTERFACE     pVDIfs = NULL;
    5859    VDINTERFACE      VDIError;
    5960    VDINTERFACEERROR VDIErrorCallbacks;
     
    7576    VDIErrorCallbacks.pfnError = tstVDError;
    7677
    77     rc = VDInterfaceCreate(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
    78                            NULL, NULL);
     78    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     79                        NULL, &pVDIfs);
    7980    AssertRC(rc);
    8081
     
    431432    uint64_t u64DiskSize  = 1000 * _1M;
    432433    uint32_t u32SectorSize = 512;
     434    PVDINTERFACE     pVDIfs = NULL;
    433435    VDINTERFACE      VDIError;
    434436    VDINTERFACEERROR VDIErrorCallbacks;
     
    450452    VDIErrorCallbacks.pfnError = tstVDError;
    451453
    452     rc = VDInterfaceCreate(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
    453                            NULL, NULL);
     454    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     455                        NULL, &pVDIfs);
    454456    AssertRC(rc);
    455457
     
    549551    uint64_t u64DiskSize  = 1000 * _1M;
    550552    uint32_t u32SectorSize = 512;
     553    PVDINTERFACE     pVDIfs;
    551554    VDINTERFACE      VDIError;
    552555    VDINTERFACEERROR VDIErrorCallbacks;
     
    568571    VDIErrorCallbacks.pfnError = tstVDError;
    569572
    570     rc = VDInterfaceCreate(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
    571                            NULL, NULL);
     573    rc = VDInterfaceAdd(&VDIError, "tstVD_Error", VDINTERFACETYPE_ERROR, &VDIErrorCallbacks,
     574                        NULL, &pVDIfs);
    572575    AssertRC(rc);
    573576
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