VirtualBox

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


Ignore:
Timestamp:
May 22, 2023 5:02:32 PM (21 months ago)
Author:
vboxsync
Message:

Main/ConsoleImpl: Split the VM config code into a common and architecture specific part in preparation for ARMv8, bugref:10384

File:
1 edited

Legend:

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

    r98340 r99909  
    3131# pragma once
    3232#endif
     33
     34#include <iprt/cpp/exception.h>
    3335
    3436#include "VirtualBoxBase.h"
     
    720722    void i_configAudioDriver(IVirtualBox *pVirtualBox, IMachine *pMachine, PCFGMNODE pLUN, const char *pszDriverName,
    721723                             bool fAudioEnabledIn, bool fAudioEnabledOut);
    722     int i_configConstructorInner(PUVM pUVM, PVM pVM, PCVMMR3VTABLE pVMM, AutoWriteLock *pAlock);
     724    int i_configConstructorInnerX86(PUVM pUVM, PVM pVM, PCVMMR3VTABLE pVMM, AutoWriteLock *pAlock);
    723725    int i_configCfgmOverlay(PCFGMNODE pRoot, IVirtualBox *pVirtualBox, IMachine *pMachine);
    724726    int i_configDumpAPISettingsTweaks(IVirtualBox *pVirtualBox, IMachine *pMachine);
     
    12191221};
    12201222
     1223
     1224class ConfigError : public RTCError
     1225{
     1226public:
     1227
     1228    ConfigError(const char *pcszFunction,
     1229                int vrc,
     1230                const char *pcszName)
     1231        : RTCError(Utf8StrFmt(Console::tr("%s failed: vrc=%Rrc, pcszName=%s"), pcszFunction, vrc, pcszName)),
     1232          m_vrc(vrc)
     1233    {
     1234        AssertMsgFailed(("%s\n", what())); // in strict mode, hit a breakpoint here
     1235    }
     1236
     1237    int m_vrc;
     1238};
     1239
     1240DECL_HIDDEN_THROW(Utf8Str *) GetExtraDataBoth(IVirtualBox *pVirtualBox, IMachine *pMachine, const char *pszName, Utf8Str *pStrValue);
     1241
    12211242#endif /* !MAIN_INCLUDED_ConsoleImpl_h */
    12221243/* vi: set tabstop=4 shiftwidth=4 expandtab: */
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