VirtualBox

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


Ignore:
Timestamp:
Apr 11, 2007 1:23:03 PM (18 years ago)
Author:
vboxsync
Message:

Main: Added IVirtualBox::findHardDisk().
VBoxSDL: Fixed so that .vmdk images can be passed using the -hda switch.

File:
1 edited

Legend:

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

    r953 r2029  
    141141    STDMETHOD(OpenVirtualDiskImage) (INPTR BSTR aFilePath, IVirtualDiskImage **aImage);
    142142    STDMETHOD(RegisterHardDisk) (IHardDisk *aHardDisk);
    143     STDMETHOD(GetHardDisk) (INPTR GUIDPARAM id, IHardDisk **hardDisk);
     143    STDMETHOD(GetHardDisk) (INPTR GUIDPARAM aId, IHardDisk **aHardDisk);
     144    STDMETHOD(FindHardDisk) (INPTR BSTR aLocation, IHardDisk **aHardDisk);
    144145    STDMETHOD(FindVirtualDiskImage) (INPTR BSTR aFilePath, IVirtualDiskImage **aImage);
    145146    STDMETHOD(UnregisterHardDisk) (INPTR GUIDPARAM aId, IHardDisk **aHardDisk);
     
    229230    HRESULT getHardDisk (const Guid &aId, ComObjPtr <HardDisk> &aHardDisk)
    230231    {
    231         return findHardDisk (aId, true /* aDoSetError */, &aHardDisk);
     232        return findHardDisk (&aId, NULL, true /* aDoSetError */, &aHardDisk);
    232233    }
    233234
     
    274275                         ComObjPtr <Machine> *machine = NULL);
    275276
    276     HRESULT findHardDisk (const Guid &aId, bool aSetError,
    277                           ComObjPtr <HardDisk> *aHardDisk = NULL);
     277    HRESULT findHardDisk (const Guid *aId, const BSTR aLocation,
     278                          bool aSetError, ComObjPtr <HardDisk> *aHardDisk = NULL);
    278279
    279280    HRESULT findVirtualDiskImage (const Guid *aId, const BSTR aFilePathFull,
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