Changeset 39821 in vbox
- Timestamp:
- Jan 20, 2012 2:01:49 PM (13 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
-
Frontends/VBoxManage/VBoxManageGuestProp.cpp (modified) (1 diff)
-
Main/idl/VirtualBox.xidl (modified) (1 diff)
-
Main/include/MachineImpl.h (modified) (1 diff)
-
Main/src-server/MachineImpl.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r38735 r39821 160 160 161 161 if (!pszValue && !pszFlags) 162 CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName).raw(), 163 Bstr().raw())); 162 CHECK_ERROR(machine, DeleteGuestProperty(Bstr(pszName).raw())); 164 163 else if (!pszFlags) 165 164 CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName).raw(), -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r39712 r39821 5886 5886 </method> 5887 5887 5888 <method name="deleteGuestProperty" const="yes"> 5889 <desc> 5890 Deletes an entry from the machine's guest property store. 5891 5892 <result name="VBOX_E_INVALID_VM_STATE"> 5893 Machine session is not open. 5894 </result> 5895 5896 </desc> 5897 <param name="name" type="wstring" dir="in"> 5898 <desc> 5899 The name of the property to delete. 5900 </desc> 5901 </param> 5902 </method> 5903 5888 5904 <method name="enumerateGuestProperties" const="yes"> 5889 5905 <desc> -
trunk/src/VBox/Main/include/MachineImpl.h
r39248 r39821 517 517 STDMETHOD(SetGuestProperty)(IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags); 518 518 STDMETHOD(SetGuestPropertyValue)(IN_BSTR aName, IN_BSTR aValue); 519 STDMETHOD(DeleteGuestProperty)(IN_BSTR aName); 519 520 STDMETHOD(EnumerateGuestProperties)(IN_BSTR aPattern, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(LONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)); 520 521 STDMETHOD(GetMediumAttachmentsOfController)(IN_BSTR aName, ComSafeArrayOut(IMediumAttachment *, aAttachments)); -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r39564 r39821 5292 5292 if (found && SUCCEEDED(rc)) 5293 5293 { 5294 if ( *aValue)5294 if (aValue) 5295 5295 { 5296 5296 RTTIMESPEC time; … … 5302 5302 } 5303 5303 } 5304 else if (SUCCEEDED(rc) && *aValue)5304 else if (SUCCEEDED(rc) && aValue) 5305 5305 { 5306 5306 RTTIMESPEC time; … … 5396 5396 { 5397 5397 return SetGuestProperty(aName, aValue, NULL); 5398 } 5399 5400 STDMETHODIMP Machine::DeleteGuestProperty(IN_BSTR aName) 5401 { 5402 return SetGuestProperty(aName, NULL, NULL); 5398 5403 } 5399 5404
Note:
See TracChangeset
for help on using the changeset viewer.

