VirtualBox

Changeset 44387 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 25, 2013 6:31:58 PM (12 years ago)
Author:
vboxsync
Message:

CFGM: Changed the config constructor to take a PUVM as well as a PVM parameter.

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

Legend:

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

    r44364 r44387  
    526526    HRESULT removeSharedFolder(const Utf8Str &strName);
    527527
    528     static DECLCALLBACK(int) configConstructor(PVM pVM, void *pvConsole);
    529     int configConstructorInner(PVM pVM, AutoWriteLock *pAlock);
     528    static DECLCALLBACK(int) configConstructor(PUVM pUVM, PVM pVM, void *pvConsole);
     529    int configConstructorInner(PUVM pUVM, PVM pVM, AutoWriteLock *pAlock);
    530530    int configCfgmOverlay(PVM pVM, IVirtualBox *pVirtualBox, IMachine *pMachine);
    531531    int configDumpAPISettingsTweaks(IVirtualBox *pVirtualBox, IMachine *pMachine);
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r44364 r44387  
    658658 *  @note Locks the Console object for writing.
    659659 */
    660 DECLCALLBACK(int) Console::configConstructor(PVM pVM, void *pvConsole)
     660DECLCALLBACK(int) Console::configConstructor(PUVM pUVM, PVM pVM, void *pvConsole)
    661661{
    662662    LogFlowFuncEnter();
     
    675675     * can easily reset the VM handle on failure.
    676676     */
    677     PUVM pUVM = pConsole->mpUVM = VMR3GetUVM(pVM);
     677    pConsole->mpUVM = pUVM;
    678678    VMR3RetainUVM(pUVM);
    679679    int vrc;
    680680    try
    681681    {
    682         vrc = pConsole->configConstructorInner(pVM, &alock);
     682        vrc = pConsole->configConstructorInner(pUVM, pVM, &alock);
    683683    }
    684684    catch (...)
     
    700700 *
    701701 * @return  VBox status code.
    702  * @param   pVM         The VM handle.
     702 * @param   pUVM        The user mode VM handle.
     703 * @param   pVM         The shared VM handle.
    703704 * @param   pAlock      The automatic lock instance.  This is for when we have
    704705 *                      to leave it in order to avoid deadlocks (ext packs and
    705706 *                      more).
    706707 */
    707 int Console::configConstructorInner(PVM pVM, AutoWriteLock *pAlock)
     708int Console::configConstructorInner(PUVM pUVM, PVM pVM, AutoWriteLock *pAlock)
    708709{
    709     PUVM            pUVM      = VMR3GetUVM(pVM);
    710710    VMMDev         *pVMMDev   = m_pVMMDev; Assert(pVMMDev);
    711711    ComPtr<IMachine> pMachine = machine();
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