VirtualBox

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


Ignore:
Timestamp:
Jun 27, 2014 10:38:09 PM (11 years ago)
Author:
vboxsync
Message:

Main,DrvVD,VD: Implement support for VD plugins from extension packs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r51639 r51754  
    41334133                InsertConfigNode(pLunL1, "Config", &pCfg);
    41344134
     4135# ifdef VBOX_WITH_EXTPACK
     4136                static const Utf8Str strExtPackPuel("Oracle VM VirtualBox Extension Pack");
     4137                static const char *s_pszVDPlugin = "VDPluginCrypt";
     4138                if (mptrExtPackManager->i_isExtPackUsable(strExtPackPuel.c_str()))
     4139                {
     4140                    /* Configure loading the VDPlugin. */
     4141                    PCFGMNODE pCfgPlugins = NULL;
     4142                    PCFGMNODE pCfgPlugin = NULL;
     4143                    Utf8Str strPlugin;
     4144                    hrc = mptrExtPackManager->i_getLibraryPathForExtPack(s_pszVDPlugin, &strExtPackPuel, &strPlugin); H();
     4145
     4146                    InsertConfigNode(pCfg, "Plugins", &pCfgPlugins);
     4147                    InsertConfigNode(pCfgPlugins, s_pszVDPlugin, &pCfgPlugin);
     4148                    InsertConfigString(pCfgPlugin, "Path", strPlugin.c_str());
     4149                }
     4150# endif
     4151
    41354152                hrc = pMedium->COMGETTER(Location)(bstr.asOutParam());                      H();
    41364153                InsertConfigString(pCfg, "Path", bstr);
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