VirtualBox

忽略:
時間撮記:
2020-7-12 上午12:56:45 (5 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
139241
訊息:

Main/NetIf-generic.cpp: Made NetIfAdpCtl() return failure when the exit code is non-zero or it terminated abnormally (judging from the error messages, this is what the callers expects). Tried to untangle status code mess in NetIfCreateHostOnlyNetworkInterface(), adding missing error handling for popen() and adjusting some of the copy&paste error messages a little. NetIfRemoveHostOnlyNetworkInterface() should not call i_notifyComplete on an uninitialized progress object, and the return of Progress::init() is not a vbox status code that this function can return unconverted. createObject can fail. bugref:9790

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • TabularUnified trunk/src/VBox/Main/include/netif.h

    r85241 r85264  
    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)
    100 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress, IN_BSTR bstrName = NULL);
    101 #else /* !defined(RT_OS_WINDOWS) */
    102 int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress, const char *pszName = NULL);
    103 #endif /* !defined(RT_OS_WINDOWS) */
     99#ifdef RT_OS_WINDOWS
     100int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress,
     101                                        IN_BSTR bstrName = NULL);
     102#else
     103int NetIfCreateHostOnlyNetworkInterface(VirtualBox *pVBox, IHostNetworkInterface **aHostNetworkInterface, IProgress **aProgress,
     104                                        const char *pszName = NULL);
     105#endif
    104106int NetIfRemoveHostOnlyNetworkInterface(VirtualBox *pVBox, const Guid &aId, IProgress **aProgress);
    105107int NetIfGetConfig(HostNetworkInterface * pIf, NETIFINFO *);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette