VirtualBox

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


Ignore:
Timestamp:
Mar 20, 2019 8:05:37 AM (6 years ago)
Author:
vboxsync
Message:

NetAdp/Win: (bugref:9409) Store host-only adapter configuration in extra data. Create missing adapters when listing/creating/removing adapters.

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

Legend:

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

    r76562 r77804  
    8585
    8686    static void i_generateMACAddress(Utf8Str &mac);
     87
     88#ifdef RT_OS_WINDOWS
     89    HRESULT i_updatePersistentConfigForHostOnlyAdapters(void);
     90    HRESULT i_removePersistentConfig(const Bstr &bstrGuid);
     91#endif /* RT_OS_WINDOWS */
     92
    8793
    8894private:
  • trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h

    r77436 r77804  
    5050
    5151    HRESULT i_setVirtualBox(VirtualBox *pVirtualBox);
     52#ifdef RT_OS_WINDOWS
     53    HRESULT i_updatePersistentConfig();
     54#endif /* RT_OS_WINDOWS */
    5255
    5356#ifdef VBOX_WITH_RESOURCE_USAGE_API
     
    8487
    8588    Utf8Str i_composeNetworkName(const Utf8Str szShortName);
     89
     90#if defined(RT_OS_WINDOWS)
     91    HRESULT eraseAdapterConfigParameter(const char *szParamName);
     92    HRESULT saveAdapterConfigParameter(const char *szParamName, const Utf8Str& strValue);
     93    HRESULT saveAdapterConfigIPv4Dhcp();
     94    HRESULT saveAdapterConfigIPv4(ULONG addr, ULONG mask);
     95    HRESULT saveAdapterConfigIPv6(const Utf8Str& addr, ULONG prefix);
     96    HRESULT saveAdapterConfig();
     97    bool    isInConfigFile();
     98#endif /* defined(RT_OS_WINDOWS) */
    8699
    87100    const Utf8Str mInterfaceName;
  • trunk/src/VBox/Main/include/netif.h

    r77436 r77804  
    9797int NetIfEnableStaticIpConfigV6(VirtualBox *pVBox, HostNetworkInterface *pIf, const Utf8Str &aOldIPV6Address, const Utf8Str &aIPV6Address, ULONG aIPV6MaskPrefixLength);
    9898int NetIfEnableDynamicIpConfig(VirtualBox *pVBox, HostNetworkInterface * pIf);
     99#if defined(RT_OS_WINDOWS)
     100int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress, IN_BSTR bstrName = NULL);
     101#else /* !defined(RT_OS_WINDOWS) */
    99102int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress, const char *pszName = NULL);
     103#endif /* !defined(RT_OS_WINDOWS) */
    100104int NetIfRemoveHostOnlyNetworkInterface(VirtualBox *pVBox, const Guid &aId, IProgress **aProgress);
    101105int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *);
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