VirtualBox

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


Ignore:
Timestamp:
Sep 22, 2017 2:15:57 PM (7 years ago)
Author:
vboxsync
Message:

ExtPack: Split up main module of extension pack, have a mandatory one for VBoxSVC and an optional one for the VM process. This finally eliminates the need to drag VBoxVMM into VBoxSVC on some platforms. Many other small cleanups, including reliably calling the unload hook from within a VM process, copy/paste with forgotten adjustments (e.g. extpacks still talking about skeleton) and spelling fixes.

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

Legend:

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

    r63147 r68828  
    55
    66/*
    7  * Copyright (C) 2010-2016 Oracle Corporation
     7 * Copyright (C) 2010-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3131
    3232
    33 #if !defined(VBOX_COM_INPROC)
     33#ifndef VBOX_COM_INPROC
    3434/**
    3535 * An extension pack file.
     
    8787    friend class ExtPackInstallTask;
    8888};
    89 #endif
     89#endif /* !VBOX_COM_INPROC */
    9090
    9191
     
    110110    /** @name Internal interfaces used by ExtPackManager.
    111111     * @{ */
     112#ifndef VBOX_COM_INPROC
    112113    bool        i_callInstalledHook(IVirtualBox *a_pVirtualBox, AutoWriteLock *a_pLock, PRTERRINFO pErrInfo);
    113114    HRESULT     i_callUninstallHookAndClose(IVirtualBox *a_pVirtualBox, bool a_fForcedRemoval);
    114115    bool        i_callVirtualBoxReadyHook(IVirtualBox *a_pVirtualBox, AutoWriteLock *a_pLock);
     116#endif
     117#ifdef VBOX_COM_INPROC
    115118    bool        i_callConsoleReadyHook(IConsole *a_pConsole, AutoWriteLock *a_pLock);
     119#endif
     120#ifndef VBOX_COM_INPROC
    116121    bool        i_callVmCreatedHook(IVirtualBox *a_pVirtualBox, IMachine *a_pMachine, AutoWriteLock *a_pLock);
     122#endif
     123#ifdef VBOX_COM_INPROC
    117124    bool        i_callVmConfigureVmmHook(IConsole *a_pConsole, PVM a_pVM, AutoWriteLock *a_pLock, int *a_pvrc);
    118125    bool        i_callVmPowerOnHook(IConsole *a_pConsole, PVM a_pVM, AutoWriteLock *a_pLock, int *a_pvrc);
    119126    bool        i_callVmPowerOffHook(IConsole *a_pConsole, PVM a_pVM, AutoWriteLock *a_pLock);
     127#endif
    120128    HRESULT     i_checkVrde(void);
    121129    HRESULT     i_getVrdpLibraryName(Utf8Str *a_pstrVrdeLibrary);
     
    197205    /** @name Internal interfaces used by other Main classes.
    198206     * @{ */
    199 #if !defined(VBOX_COM_INPROC)
     207#ifndef VBOX_COM_INPROC
    200208    HRESULT     i_doInstall(ExtPackFile *a_pExtPackFile, bool a_fReplace, Utf8Str const *a_pstrDisplayInfo);
    201209    HRESULT     i_doUninstall(const Utf8Str *a_pstrName, bool a_fForcedRemoval, const Utf8Str *a_pstrDisplayInfo);
    202 #endif
    203210    void        i_callAllVirtualBoxReadyHooks(void);
     211#endif
     212#ifdef VBOX_COM_INPROC
    204213    void        i_callAllConsoleReadyHooks(IConsole *a_pConsole);
     214#endif
     215#ifndef VBOX_COM_INPROC
    205216    void        i_callAllVmCreatedHooks(IMachine *a_pMachine);
     217#endif
     218#ifdef VBOX_COM_INPROC
    206219    int         i_callAllVmConfigureVmmHooks(IConsole *a_pConsole, PVM a_pVM);
    207220    int         i_callAllVmPowerOnHooks(IConsole *a_pConsole, PVM a_pVM);
    208221    void        i_callAllVmPowerOffHooks(IConsole *a_pConsole, PVM a_pVM);
     222#endif
    209223    HRESULT     i_checkVrdeExtPack(Utf8Str const *a_pstrExtPack);
    210224    int         i_getVrdeLibraryPathForExtPack(Utf8Str const *a_pstrExtPack, Utf8Str *a_pstrVrdeLibrary);
  • trunk/src/VBox/Main/include/ExtPackUtil.h

    r62485 r68828  
    55
    66/*
    7  * Copyright (C) 2010-2016 Oracle Corporation
     7 * Copyright (C) 2010-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    100100    /** The name of the main module. */
    101101    RTCString               strMainModule;
     102    /** The name of the main VM module, empty if none. */
     103    RTCString               strMainVMModule;
    102104    /** The name of the VRDE module, empty if none. */
    103105    RTCString               strVrdeModule;
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