Changeset 47018 in vbox for trunk/include/VBox
- Timestamp:
- Jul 6, 2013 5:31:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r46969 r47018 286 286 typedef std::list<MachineRegistryEntry> MachinesRegistry; 287 287 288 typedef std::map<DhcpOpt_T, com::Utf8Str> DhcpOptionMap; 289 typedef DhcpOptionMap::value_type DhcpOptValuePair; 290 typedef DhcpOptionMap::iterator DhcpOptIterator; 291 typedef DhcpOptionMap::const_iterator DhcpOptConstIterator; 292 293 typedef struct VmNameSlotKey 294 { 295 VmNameSlotKey(const com::Utf8Str& aVmName, LONG aSlot): VmName(aVmName), 296 Slot(aSlot){} 297 const com::Utf8Str VmName; 298 LONG Slot; 299 bool operator< (const VmNameSlotKey& that) const 300 { 301 if (VmName == that.VmName) 302 return Slot < that.Slot; 303 else return VmName < that.VmName; 304 } 305 } VmNameSlotKey; 306 typedef std::map<VmNameSlotKey, DhcpOptionMap> VmSlot2OptionsMap; 307 typedef VmSlot2OptionsMap::value_type VmSlot2OptionsPair; 308 typedef VmSlot2OptionsMap::iterator VmSlot2OptionsIterator; 309 typedef VmSlot2OptionsMap::const_iterator VmSlot2OptionsConstIterator; 310 288 311 struct DHCPServer 289 312 { … … 294 317 com::Utf8Str strNetworkName, 295 318 strIPAddress, 296 strIPNetworkMask,297 319 strIPLower, 298 320 strIPUpper; 299 321 bool fEnabled; 322 std::map<DhcpOpt_T, com::Utf8Str> GlobalDhcpOptions; 323 VmSlot2OptionsMap VmSlot2OptionsM; 300 324 }; 301 325 typedef std::list<DHCPServer> DHCPServersList; … … 337 361 void readMachineRegistry(const xml::ElementNode &elmMachineRegistry); 338 362 void readDHCPServers(const xml::ElementNode &elmDHCPServers); 363 void readDhcpOptions(DhcpOptionMap& map, const xml::ElementNode& options); 339 364 void readNATNetworks(const xml::ElementNode &elmNATNetworks); 340 365
Note:
See TracChangeset
for help on using the changeset viewer.