VirtualBox

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


Ignore:
Timestamp:
May 6, 2011 7:16:50 PM (14 years ago)
Author:
vboxsync
Message:

Main: Initial support for disk hotplugging, work in progress

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

Legend:

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

    r36439 r36991  
    191191    HRESULT onUSBDeviceDetach(IN_BSTR aId, IVirtualBoxErrorInfo *aError);
    192192    HRESULT onBandwidthGroupChange(IBandwidthGroup *aBandwidthGroup);
     193    HRESULT onStorageDeviceChange(IMediumAttachment *aMediumAttachment, BOOL aRemove);
    193194    HRESULT getGuestProperty(IN_BSTR aKey, BSTR *aValue, LONG64 *aTimestamp, BSTR *aFlags);
    194195    HRESULT setGuestProperty(IN_BSTR aKey, IN_BSTR aValue, IN_BSTR aFlags);
     
    505506                               bool fAttachDetach,
    506507                               bool fForceUnmount,
     508                               bool fHotplug,
    507509                               PVM pVM,
    508510                               DeviceType_T *paLedDevType);
     
    571573#endif
    572574
     575    static DECLCALLBACK(int) attachStorageDevice(Console *pThis,
     576                                                 PVM pVM,
     577                                                 const char *pcszDevice,
     578                                                 unsigned uInstance,
     579                                                 StorageBus_T enmBus,
     580                                                 bool fUseHostIOCache,
     581                                                 IMediumAttachment *aMediumAtt);
     582    static DECLCALLBACK(int) detachStorageDevice(Console *pThis,
     583                                                 PVM pVM,
     584                                                 const char *pcszDevice,
     585                                                 unsigned uInstance,
     586                                                 StorageBus_T enmBus,
     587                                                 IMediumAttachment *aMediumAtt);
     588    HRESULT doStorageDeviceAttach(IMediumAttachment *aMediumAttachment, PVM pVM);
     589    HRESULT doStorageDeviceDetach(IMediumAttachment *aMediumAttachment, PVM pVM);
     590
    573591    static DECLCALLBACK(int)    fntTakeSnapshotWorker(RTTHREAD Thread, void *pvUser);
    574592
  • trunk/src/VBox/Main/include/MachineImpl.h

    r36898 r36991  
    638638    virtual HRESULT onSharedFolderChange() { return S_OK; }
    639639    virtual HRESULT onBandwidthGroupChange(IBandwidthGroup * /* aBandwidthGroup */) { return S_OK; }
     640    virtual HRESULT onStorageDeviceChange(IMediumAttachment * /* mediumAttachment */, BOOL /* remove */) { return S_OK; }
    640641
    641642    HRESULT saveRegistryEntry(settings::MachineRegistryEntry &data);
     
    833834    void commit();
    834835    void copyFrom(Machine *aThat);
     836    bool isControllerHotplugCapable(StorageControllerType_T enmCtrlType);
    835837
    836838    struct DeleteTask;
     
    10051007    HRESULT onSharedFolderChange();
    10061008    HRESULT onBandwidthGroupChange(IBandwidthGroup *aBandwidthGroup);
     1009    HRESULT onStorageDeviceChange(IMediumAttachment *aMediumAttachment, BOOL aRemove);
    10071010
    10081011    bool hasMatchingUSBFilter(const ComObjPtr<HostUSBDevice> &aDevice, ULONG *aMaskedIfs);
  • trunk/src/VBox/Main/include/SessionImpl.h

    r35638 r36991  
    9999    STDMETHOD(OnShowWindow)(BOOL aCheck, BOOL *aCanShow, LONG64 *aWinId);
    100100    STDMETHOD(OnBandwidthGroupChange)(IBandwidthGroup *aBandwidthGroup);
     101    STDMETHOD(OnStorageDeviceChange)(IMediumAttachment *aMediumAttachment, BOOL aRemove);
    101102    STDMETHOD(AccessGuestProperty)(IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags,
    102103                                   BOOL aIsSetter, BSTR *aRetValue, LONG64 *aRetTimestamp, BSTR *aRetFlags);
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