VirtualBox

Ignore:
Timestamp:
May 22, 2015 4:03:35 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100554
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/src-client/ConsoleImpl.cpp

    r56030 r56035  
    17591759    Bstr flags(pCBData->pcszFlags);
    17601760    ComObjPtr<Console> pConsole = reinterpret_cast<Console *>(pvExtension);
    1761     BOOL fNotify = FALSE;
    17621761    HRESULT hrc = pConsole->mControl->PushGuestProperty(name.raw(),
    17631762                                                        value.raw(),
    17641763                                                        pCBData->u64Timestamp,
    1765                                                         flags.raw(),
    1766                                                         &fNotify);
     1764                                                        flags.raw());
    17671765    if (SUCCEEDED(hrc))
     1766    {
     1767        fireGuestPropertyChangedEvent(pConsole->mEventSource, pConsole->i_getId().raw(), name.raw(), value.raw(), flags.raw());
    17681768        rc = VINF_SUCCESS;
     1769    }
    17691770    else
    17701771    {
     
    17731774        rc = Global::vboxStatusCodeFromCOM(hrc);
    17741775    }
    1775     if (fNotify)
    1776         fireGuestPropertyChangedEvent(pConsole->mEventSource, pConsole->i_getId().raw(), name.raw(), value.raw(), flags.raw());
    17771776    return rc;
    17781777}
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