Changeset 50213 in vbox for trunk/src/VBox/NetworkServices/NetLib/utils.h
- Timestamp:
- Jan 24, 2014 8:23:12 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 91785
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/NetworkServices/NetLib/utils.h
r49825 r50213 33 33 typedef std::map<RTNETADDRIPV4, int> AddressToOffsetMapping; 34 34 35 35 36 36 inline bool isDhcpRequired(const ComNatPtr& nat) 37 37 { … … 39 39 if (FAILED(nat->COMGETTER(NeedDhcpServer)(&fNeedDhcpServer))) 40 40 return false; 41 41 42 42 return fNeedDhcpServer; 43 43 } … … 49 49 dhcp.asOutParam()); 50 50 AssertComRCReturn(hrc, VERR_NOT_FOUND); 51 51 52 52 return VINF_SUCCESS; 53 53 } … … 60 60 61 61 AssertComRCReturn(hrc, VERR_NOT_FOUND); 62 62 63 63 return VINF_SUCCESS; 64 64 } … … 120 120 typedef ListenerImpl<NATNetworkListener, NATNetworkEventAdapter*> NATNetworkListenerImpl; 121 121 122 # if VBOX_WITH_XPCOM 122 # if VBOX_WITH_XPCOM 123 123 class NS_CLASSINFO_NAME(NATNetworkListenerImpl); 124 124 # endif … … 127 127 typedef com::SafeArray<VBoxEventType_T> ComEventTypeArray; 128 128 129 /* XXX: const is commented out because of compilation erro on Windows host, but it's intended that this function 129 /* XXX: const is commented out because of compilation erro on Windows host, but it's intended that this function 130 130 isn't modify event type array */ 131 int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr, 131 int createNatListener(ComNatListenerPtr& listener, const ComVirtualBoxPtr& vboxptr, 132 132 NATNetworkEventAdapter *adapter, /* const */ ComEventTypeArray& events); 133 133 #endif
Note:
See TracChangeset
for help on using the changeset viewer.