Changeset 17710 in vbox
- Timestamp:
- Mar 11, 2009 4:46:55 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44222
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r17700 r17710 359 359 CheckComRCReturnRC (autoCaller.rc()); 360 360 361 int rc = NetIfEnableStaticIpConfig( this, aIPAddress, aNetworkMask);361 int rc = NetIfEnableStaticIpConfig(mVBox, this, aIPAddress, aNetworkMask); 362 362 if (RT_FAILURE(rc)) 363 363 { … … 382 382 CheckComRCReturnRC (autoCaller.rc()); 383 383 384 int rc = NetIfEnableStaticIpConfigV6( this, aIPV6Address, aIPV6MaskPrefixLength);384 int rc = NetIfEnableStaticIpConfigV6(mVBox, this, aIPV6Address, aIPV6MaskPrefixLength); 385 385 if (RT_FAILURE(rc)) 386 386 { … … 400 400 CheckComRCReturnRC (autoCaller.rc()); 401 401 402 int rc = NetIfEnableDynamicIpConfig( this);402 int rc = NetIfEnableDynamicIpConfig(mVBox, this); 403 403 if (RT_FAILURE(rc)) 404 404 { … … 419 419 } 420 420 421 HRESULT HostNetworkInterface::getVirtualBox(VirtualBox **ppVBox)422 {423 AutoCaller autoCaller (this);424 CheckComRCReturnRC (autoCaller.rc());425 426 if (!ppVBox)427 return E_INVALIDARG;428 429 *ppVBox = mVBox;430 return S_OK;431 }432 433 421 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r17700 r17710 89 89 90 90 HRESULT setVirtualBox(VirtualBox *pVBox); 91 HRESULT getVirtualBox(VirtualBox **ppVBox);92 91 private: 93 92 const Bstr mInterfaceName; -
trunk/src/VBox/Main/include/netif.h
r17697 r17710 77 77 78 78 int NetIfList(std::list <ComObjPtr <HostNetworkInterface> > &list); 79 int NetIfEnableStaticIpConfig( HostNetworkInterface * pIf, ULONG ip, ULONG mask);80 int NetIfEnableStaticIpConfigV6( HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);81 int NetIfEnableDynamicIpConfig( HostNetworkInterface * pIf);79 int NetIfEnableStaticIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf, ULONG ip, ULONG mask); 80 int NetIfEnableStaticIpConfigV6(VirtualBox *pVbox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength); 81 int NetIfEnableDynamicIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf); 82 82 int NetIfCreateHostOnlyNetworkInterface (VirtualBox *pVbox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress); 83 83 int NetIfRemoveHostOnlyNetworkInterface (VirtualBox *pVbox, IN_GUID aId, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress); -
trunk/src/VBox/Main/os2/NetIfList-os2.cpp
r17419 r17710 38 38 } 39 39 40 int NetIfEnableStaticIpConfig( HostNetworkInterface * pIf, ULONG ip, ULONG mask)40 int NetIfEnableStaticIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf, ULONG ip, ULONG mask) 41 41 { 42 42 return VERR_NOT_IMPLEMENTED; 43 43 } 44 44 45 int NetIfEnableStaticIpConfigV6( HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)45 int NetIfEnableStaticIpConfigV6(VirtualBox *pVbox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength) 46 46 { 47 47 return VERR_NOT_IMPLEMENTED; 48 48 } 49 49 50 int NetIfEnableDynamicIpConfig( HostNetworkInterface * pIf)50 int NetIfEnableDynamicIpConfig(VirtualBox *pVbox, HostNetworkInterface * pIf) 51 51 { 52 52 return VERR_NOT_IMPLEMENTED; -
trunk/src/VBox/Main/win/NetIfList-win.cpp
r17694 r17710 2274 2274 } 2275 2275 2276 int NetIfEnableStaticIpConfig( HostNetworkInterface * pIf, ULONG ip, ULONG mask)2276 int NetIfEnableStaticIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf, ULONG ip, ULONG mask) 2277 2277 { 2278 2278 HRESULT rc; … … 2281 2281 if(SUCCEEDED(rc)) 2282 2282 { 2283 ComPtr<VirtualBox> vBox;2284 rc = pIf->getVirtualBox (vBox.asOutParam());2285 if(SUCCEEDED(rc))2283 // ComPtr<VirtualBox> vBox; 2284 // rc = pIf->getVirtualBox (vBox.asOutParam()); 2285 // if(SUCCEEDED(rc)) 2286 2286 { 2287 2287 /* create a progress object */ … … 2332 2332 } 2333 2333 2334 int NetIfEnableStaticIpConfigV6( HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)2334 int NetIfEnableStaticIpConfigV6(VirtualBox *vBox, HostNetworkInterface * pIf, IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength) 2335 2335 { 2336 2336 HRESULT rc; … … 2339 2339 if(SUCCEEDED(rc)) 2340 2340 { 2341 ComPtr<VirtualBox> vBox;2342 rc = pIf->getVirtualBox (vBox.asOutParam());2343 if(SUCCEEDED(rc))2341 // ComPtr<VirtualBox> vBox; 2342 // rc = pIf->getVirtualBox (vBox.asOutParam()); 2343 // if(SUCCEEDED(rc)) 2344 2344 { 2345 2345 /* create a progress object */ … … 2390 2390 } 2391 2391 2392 int NetIfEnableDynamicIpConfig( HostNetworkInterface * pIf)2392 int NetIfEnableDynamicIpConfig(VirtualBox *vBox, HostNetworkInterface * pIf) 2393 2393 { 2394 2394 HRESULT rc; … … 2397 2397 if(SUCCEEDED(rc)) 2398 2398 { 2399 ComPtr<VirtualBox> vBox;2400 rc = pIf->getVirtualBox (vBox.asOutParam());2401 if(SUCCEEDED(rc))2399 // ComPtr<VirtualBox> vBox; 2400 // rc = pIf->getVirtualBox (vBox.asOutParam()); 2401 // if(SUCCEEDED(rc)) 2402 2402 { 2403 2403 /* create a progress object */
Note:
See TracChangeset
for help on using the changeset viewer.