Changeset 17700 in vbox
- Timestamp:
- Mar 11, 2009 3:23:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r17613 r17700 183 183 } 184 184 185 STDMETHODIMP HostNetworkInterface::COMGETTER(DhcpEnabled) (BOOL *aDhcpEnabled) 186 { 187 CheckComArgOutPointerValid(aDhcpEnabled); 188 189 AutoCaller autoCaller (this); 190 CheckComRCReturnRC (autoCaller.rc()); 191 192 /* return true + S_OK instead of E_NOTIMPL is done for UI testing purposes */ 193 *aDhcpEnabled = FALSE; 194 195 return S_OK; 196 } 197 185 198 186 199 /** -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r17685 r17700 6520 6520 <interface 6521 6521 name="IHostNetworkInterface" extends="$unknown" 6522 uuid=" 92ae8e7a-a213-4f9d-be10-b296bbc8b662"6522 uuid="63d66df2-e40b-4289-acc2-7e260fe6e51e" 6523 6523 wsmap="managed" 6524 6524 > … … 6535 6535 <attribute name="id" type="uuid" readonly="yes"> 6536 6536 <desc>Returns the interface UUID.</desc> 6537 </attribute> 6538 6539 <attribute name="dhcpEnabled" type="boolean" readonly="yes"> 6540 <desc>Specifies whether the DHCP is enabled for the interface.</desc> 6537 6541 </attribute> 6538 6542 -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r17684 r17700 70 70 STDMETHOD(COMGETTER(Name)) (BSTR *aInterfaceName); 71 71 STDMETHOD(COMGETTER(Id)) (OUT_GUID aGuid); 72 STDMETHOD(COMGETTER(DhcpEnabled)) (BOOL *aDhcpEnabled); 72 73 STDMETHOD(COMGETTER(IPAddress)) (ULONG *aIPAddress); 73 74 STDMETHOD(COMGETTER(NetworkMask)) (ULONG *aNetworkMask); … … 98 99 struct Data 99 100 { 100 Data() : IPAddress (0), networkMask (0), 101 Data() : IPAddress (0), networkMask (0), dhcpEnabled(FALSE), 101 102 mediumType (HostNetworkInterfaceMediumType_Unknown), 102 103 status(HostNetworkInterfaceStatus_Down){} … … 106 107 Bstr IPV6Address; 107 108 ULONG IPV6NetworkMaskPrefixLength; 109 BOOL dhcpEnabled; 108 110 Bstr hardwareAddress; 109 111 HostNetworkInterfaceMediumType_T mediumType;
Note:
See TracChangeset
for help on using the changeset viewer.