Changeset 48101 in vbox
- Timestamp:
- Aug 27, 2013 6:23:47 PM (11 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r47831 r48101 1358 1358 { 1359 1359 availableInterfaceNames << iface.GetName(); 1360 availableInterfaceNames << iface.GetShortName(); 1360 1361 } 1361 1362 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r47991 r48101 8167 8167 </attribute> 8168 8168 8169 <attribute name="shortName" type="wstring" readonly="yes"> 8170 <desc>Returns the host network interface short name.</desc> 8171 </attribute> 8172 8169 8173 <attribute name="id" type="uuid" mod="string" readonly="yes"> 8170 8174 <desc>Returns the interface UUID.</desc> -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r46820 r48101 60 60 // IHostNetworkInterface properties 61 61 STDMETHOD(COMGETTER(Name))(BSTR *aInterfaceName); 62 STDMETHOD(COMGETTER(ShortName))(BSTR *aShortName); 62 63 STDMETHOD(COMGETTER(Id))(BSTR *aGuid); 63 64 STDMETHOD(COMGETTER(DHCPEnabled))(BOOL *aDHCPEnabled); -
trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
r46820 r48101 80 80 unconst(mInterfaceName) = aInterfaceName; 81 81 unconst(mNetworkName) = composeNetworkName(aShortName); 82 unconst(mShortName) = aShortName; 82 83 unconst(mGuid) = aGuid; 83 84 mIfType = ifType; … … 251 252 252 253 mInterfaceName.cloneTo(aInterfaceName); 254 255 return S_OK; 256 } 257 258 /** 259 * Returns the short name of the host network interface. 260 * 261 * @returns COM status code 262 * @param aShortName address of result pointer 263 */ 264 STDMETHODIMP HostNetworkInterface::COMGETTER(ShortName)(BSTR *aShortName) 265 { 266 CheckComArgOutPointerValid(aShortName); 267 268 AutoCaller autoCaller(this); 269 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 270 271 mShortName.cloneTo(aShortName); 253 272 254 273 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.