Changeset 54347 in vbox
- Timestamp:
- Feb 20, 2015 10:43:16 PM (10 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DHCPServerImpl.h
r54314 r54347 110 110 HRESULT getVmSlotOptions(const com::Utf8Str &aVmName, 111 111 LONG aSlot, 112 std::vector<com::Utf8Str> &aValue );112 std::vector<com::Utf8Str> &aValues); 113 113 114 114 // Wrapped IDHCPServer Methods -
trunk/src/VBox/Main/src-server/DHCPServerImpl.cpp
r54314 r54347 286 286 287 287 288 HRESULT DHCPServer::getGlobalOptions(std::vector<com::Utf8Str> &aValue )289 { 290 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 291 aValue .resize(m->GlobalDhcpOptions.size());288 HRESULT DHCPServer::getGlobalOptions(std::vector<com::Utf8Str> &aValues) 289 { 290 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 291 aValues.resize(m->GlobalDhcpOptions.size()); 292 292 DhcpOptionMap::const_iterator it; 293 293 size_t i = 0; … … 299 299 // XXX: TODO: factor out and share with getVmSlotOptions() 300 300 if (OptValue.encoding == DhcpOptValue::LEGACY) 301 aValue [i] = Utf8StrFmt("%d:%s", OptCode, OptValue.text.c_str());301 aValues[i] = Utf8StrFmt("%d:%s", OptCode, OptValue.text.c_str()); 302 302 } 303 303 … … 305 305 } 306 306 307 HRESULT DHCPServer::getVmConfigs(std::vector<com::Utf8Str> &aValue )308 { 309 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 310 aValue .resize(m->VmSlot2Options.size());307 HRESULT DHCPServer::getVmConfigs(std::vector<com::Utf8Str> &aValues) 308 { 309 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 310 aValues.resize(m->VmSlot2Options.size()); 311 311 VmSlot2OptionsMap::const_iterator it; 312 312 size_t i = 0; 313 313 for (it = m->VmSlot2Options.begin(); it != m->VmSlot2Options.end(); ++it, ++i) 314 314 { 315 aValue [i] = Utf8StrFmt("[%s]:%d", it->first.VmName.c_str(), it->first.Slot);315 aValues[i] = Utf8StrFmt("[%s]:%d", it->first.VmName.c_str(), it->first.Slot); 316 316 } 317 317
Note:
See TracChangeset
for help on using the changeset viewer.