VirtualBox

Changeset 18313 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Mar 26, 2009 1:59:14 PM (16 years ago)
Author:
vboxsync
Message:

Main: a different approach to opening images read-only for import which does not assert on empty UUIDs

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/HardDiskImpl.h

    r18275 r18313  
    256256    HRESULT setFormat (CBSTR aFormat);
    257257
    258     virtual HRESULT queryInfo(bool fWrite);
     258    virtual HRESULT queryInfo();
    259259
    260260    HRESULT canClose();
     
    289289    struct Data
    290290    {
    291         Data() : type (HardDiskType_Normal), logicalSize (0), autoReset (false)
    292                , implicit (false), numCreateDiffTasks (0)
    293                , vdProgress (NULL) , vdDiskIfaces (NULL) {}
     291        Data()
     292            : type(HardDiskType_Normal),
     293              logicalSize(0),
     294              hddOpenMode(OpenReadWrite),
     295              autoReset(false),
     296              implicit(false),
     297              numCreateDiffTasks(0),
     298              vdProgress(NULL),
     299              vdDiskIfaces(NULL)
     300        {}
    294301
    295302        const Bstr format;
     
    299306        uint64_t logicalSize;   /*< In MBytes. */
    300307
     308        HDDOpenMode hddOpenMode;
     309
    301310        BOOL autoReset : 1;
    302311
  • trunk/src/VBox/Main/include/MediumImpl.h

    r18275 r18313  
    143143
    144144    virtual HRESULT setLocation (CBSTR aLocation);
    145     virtual HRESULT queryInfo(bool fWrite);
     145    virtual HRESULT queryInfo();
    146146
    147147    /**
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