VirtualBox

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


Ignore:
Timestamp:
Mar 24, 2009 1:21:12 PM (16 years ago)
Author:
vboxsync
Message:

Main: turn read/write param in OpenHardDisk into an enum

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

Legend:

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

    r18162 r18177  
    7878
    7979    enum HDDOpenMode  { OpenReadWrite, OpenReadOnly };
    80                 // have to use a special enum or otherwise the overloaded init() is ambiguous
     80                // have to use a special enum for the overloaded init() below;
     81                // can't use AccessMode_T from XIDL because that's mapped to an int
     82                // and would be ambiguous
    8183
    8284    // public initializer/uninitializer for internal purposes only
  • trunk/src/VBox/Main/include/VirtualBoxImpl.h

    r18162 r18177  
    151151    STDMETHOD(CreateHardDisk)(IN_BSTR aFormat, IN_BSTR aLocation,
    152152                               IHardDisk **aHardDisk);
    153     STDMETHOD(OpenHardDisk) (IN_BSTR aLocation, BOOL fWrite, IHardDisk **aHardDisk);
     153    STDMETHOD(OpenHardDisk) (IN_BSTR aLocation, AccessMode_T accessMode, IHardDisk **aHardDisk);
    154154    STDMETHOD(GetHardDisk) (IN_GUID aId, IHardDisk **aHardDisk);
    155155    STDMETHOD(FindHardDisk) (IN_BSTR aLocation, IHardDisk **aHardDisk);
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