VirtualBox

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


Ignore:
Timestamp:
Mar 6, 2009 4:55:44 PM (16 years ago)
Author:
vboxsync
Message:

NetIf/win: moved Create/Remove hostonly if to NetIf API, some API fixes

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

Legend:

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

    r17394 r17494  
    3333#endif
    3434#include "HostPower.h"
    35 
    36 #ifdef RT_OS_WINDOWS
    37 # include "win/svchlp.h"
    38 #endif
    3935
    4036#ifdef RT_OS_LINUX
     
    133129#endif /* !VBOX_WITH_USB */
    134130
    135 #ifdef RT_OS_WINDOWS
    136     static int networkInterfaceHelperServer (SVCHlpClient *aClient,
    137                                              SVCHlpMsg::Code aMsgCode);
    138 #endif
    139 
    140131    // for VirtualBoxSupportErrorInfoImpl
    141132    static const wchar_t *getComponentName() { return L"Host"; }
     
    162153    }
    163154#endif /* VBOX_WITH_USB */
    164 
    165 #ifdef RT_OS_WINDOWS
    166     static int createNetworkInterface (SVCHlpClient *aClient,
    167                                        const Utf8Str &aName,
    168                                        Guid &aGUID, Utf8Str &aErrMsg);
    169     static int removeNetworkInterface (SVCHlpClient *aClient,
    170                                        const Guid &aGUID,
    171                                        Utf8Str &aErrMsg);
    172     static HRESULT networkInterfaceHelperClient (SVCHlpClient *aClient,
    173                                                  Progress *aProgress,
    174                                                  void *aUser, int *aVrc);
    175 #endif
    176155
    177156#ifdef VBOX_WITH_RESOURCE_USAGE_API
  • trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h

    r17419 r17494  
    6363#ifdef VBOX_WITH_HOSTNETIF_API
    6464    HRESULT init (Bstr aInterfaceName, HostNetworkInterfaceType_T ifType, struct NETIFINFO *pIfs);
    65     HRESULT updateConfig (struct NETIFINFO *pIfs);
     65    HRESULT updateConfig ();
    6666#endif
    6767
     
    8686    static const wchar_t *getComponentName() { return L"HostNetworkInterface"; }
    8787
     88    HRESULT setVirtualBox(VirtualBox *pVBox);
     89    HRESULT getVirtualBox(VirtualBox **ppVBox);
    8890private:
    8991    const Bstr mInterfaceName;
    9092    const Guid mGuid;
    9193    HostNetworkInterfaceType_T mIfType;
     94
     95    ComObjPtr <VirtualBox, ComWeakRef> mVBox;
    9296
    9397    struct Data
  • trunk/src/VBox/Main/include/netif.h

    r17447 r17494  
    8080int NetIfEnableStaticIpConfigV6(HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);
    8181int NetIfEnableDynamicIpConfig(HostNetworkInterface * pIf);
     82int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVbox, IN_BSTR aName, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
     83int NetIfRemoveHostOnlyNetworkInterface (VirtualBox *pVbox, IN_GUID aId, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress);
     84int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *);
    8285
    8386DECLINLINE(Bstr) composeIPv6Address(PRTNETADDRIPV6 aAddrPtr)
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