- Timestamp:
- Apr 16, 2013 11:13:16 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85054
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r45284 r45563 925 925 HRESULT deleteTaskWorker(DeleteTask &task); 926 926 927 Utf8Str getExtraData(const Utf8Str &strKey); 928 927 929 #ifdef VBOX_WITH_GUEST_PROPS 928 930 HRESULT getGuestPropertyFromService(IN_BSTR aName, BSTR *aValue, -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r45284 r45563 3776 3776 3777 3777 bool fSilent = false; 3778 Bstr strReconfig;3778 Utf8Str strReconfig; 3779 3779 3780 3780 /* Check whether the flag to allow silent storage attachment reconfiguration is set. */ 3781 rc = mParent->GetExtraData(Bstr("StorageMgmt/SilentReconfigureWhilePaused").raw(), strReconfig.asOutParam());3781 strReconfig = getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused")); 3782 3782 if (FAILED(rc)) 3783 3783 return rc; … … 4226 4226 4227 4227 bool fSilent = false; 4228 Bstr strReconfig;4228 Utf8Str strReconfig; 4229 4229 4230 4230 /* Check whether the flag to allow silent storage attachment reconfiguration is set. */ 4231 rc = mParent->GetExtraData(Bstr("StorageMgmt/SilentReconfigureWhilePaused").raw(), strReconfig.asOutParam());4231 strReconfig = getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused")); 4232 4232 if (FAILED(rc)) 4233 4233 return rc; … … 7878 7878 } 7879 7879 } 7880 } 7881 7882 Utf8Str Machine::getExtraData(const Utf8Str &strKey) 7883 { 7884 /* start with nothing found */ 7885 Utf8Str strResult(""); 7886 7887 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 7888 7889 settings::StringsMap::const_iterator it = mData->pMachineConfigFile->mapExtraDataItems.find(strKey); 7890 if (it != mData->pMachineConfigFile->mapExtraDataItems.end()) 7891 // found: 7892 strResult = it->second; // source is a Utf8Str 7893 7894 return strResult; 7880 7895 } 7881 7896
Note:
See TracChangeset
for help on using the changeset viewer.