VirtualBox

Ignore:
Timestamp:
May 22, 2015 4:03:35 PM (10 years ago)
Author:
vboxsync
Message:

Main/Machine+USBController+StorageController: Mix of deleting useless functionality, fixing of missing sanity checks and adding some additional functionality. The removed functionality is the possibility to specify patters of guest properties which will trigger notifications, which wasn't useful as it is per VM, sabotaging other API clients (e.g. the VM process assumes it gets the notifications it needs). The storage controller setters were lacking a lot of state and consistency sanity checking, which is now fixed. Both the USB and storage controllers can now be renamed (no API client uses this functionality though), all with very pessimistic assumptions (only when the VM is powered off).

File:
1 edited

Legend:

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

    r55977 r56035  
    307307        typedef std::map<Utf8Str, GuestProperty> GuestPropertyMap;
    308308        GuestPropertyMap    mGuestProperties;
    309         Utf8Str             mGuestPropertyNotificationPatterns;
    310309
    311310        FirmwareType_T      mFirmwareType;
     
    591590    void i_releaseStateDependency();
    592591
     592    HRESULT i_getStorageControllerByName(const Utf8Str &aName,
     593                                         ComObjPtr<StorageController> &aStorageController,
     594                                         bool aSetError = false);
     595
     596    HRESULT i_getUSBControllerByName(const Utf8Str &aName,
     597                                     ComObjPtr<USBController> &aUSBController,
     598                                     bool aSetError = false);
     599
    593600    HRESULT i_getBandwidthGroup(const Utf8Str &strBandwidthGroup,
    594601                                ComObjPtr<BandwidthGroup> &pBandwidthGroup,
     
    643650                                 bool aSetError = false);
    644651
    645     HRESULT i_getStorageControllerByName(const Utf8Str &aName,
    646                                          ComObjPtr<StorageController> &aStorageController,
    647                                          bool aSetError = false);
    648 
    649652    HRESULT i_getMediumAttachmentsOfController(const Utf8Str &aName,
    650653                                               MediaData::AttachmentList &aAttachments);
    651 
    652     HRESULT i_getUSBControllerByName(const Utf8Str &aName,
    653                                      ComObjPtr<USBController> &aUSBController,
    654                                      bool aSetError = false);
    655654
    656655    ULONG   i_getUSBControllerCountByType(USBControllerType_T enmType);
     
    943942    HRESULT getDnDMode(DnDMode_T *aDnDMode);
    944943    HRESULT setDnDMode(DnDMode_T aDnDMode);
    945     HRESULT getGuestPropertyNotificationPatterns(com::Utf8Str &aGuestPropertyNotificationPatterns);
    946     HRESULT setGuestPropertyNotificationPatterns(const com::Utf8Str &aGuestPropertyNotificationPatterns);
    947944    HRESULT getTeleporterEnabled(BOOL *aTeleporterEnabled);
    948945    HRESULT setTeleporterEnabled(BOOL aTeleporterEnabled);
     
    10691066    HRESULT getStorageControllerByName(const com::Utf8Str &aName,
    10701067                                       ComPtr<IStorageController> &aStorageController);
    1071     HRESULT getStorageControllerByInstance(ULONG aInstance,
     1068    HRESULT getStorageControllerByInstance(StorageBus_T aConnectionType,
     1069                                           ULONG aInstance,
    10721070                                           ComPtr<IStorageController> &aStorageController);
    10731071    HRESULT removeStorageController(const com::Utf8Str &aName);
     
    12331231                              const com::Utf8Str &aValue,
    12341232                              LONG64 aTimestamp,
    1235                               const com::Utf8Str &aFlags,
    1236                               BOOL *aNotify);
     1233                              const com::Utf8Str &aFlags);
    12371234    HRESULT lockMedia();
    12381235    HRESULT unlockMedia();
     
    13821379                              const com::Utf8Str &aValue,
    13831380                              LONG64 aTimestamp,
    1384                               const com::Utf8Str &aFlags,
    1385                               BOOL *aNotify);
     1381                              const com::Utf8Str &aFlags);
    13861382    HRESULT lockMedia();
    13871383    HRESULT unlockMedia();
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