Changeset 15051 in vbox for trunk/src/VBox/Main/MachineImpl.cpp
- Timestamp:
- Dec 5, 2008 5:20:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r15050 r15051 380 380 * @return Success indicator. if not S_OK, the machine object is invalid 381 381 */ 382 HRESULT Machine::init (VirtualBox *aParent, constBSTR aConfigFile,383 InitMode aMode, constBSTR aName /* = NULL */,382 HRESULT Machine::init (VirtualBox *aParent, CBSTR aConfigFile, 383 InitMode aMode, CBSTR aName /* = NULL */, 384 384 GuestOSType *aOsType /* = NULL */, 385 385 BOOL aNameSync /* = TRUE */, … … 811 811 } 812 812 813 STDMETHODIMP Machine::COMSETTER(Name) (IN PTRBSTR aName)813 STDMETHODIMP Machine::COMSETTER(Name) (IN_BSTR aName) 814 814 { 815 815 CheckComArgNotNull(aName); … … 847 847 } 848 848 849 STDMETHODIMP Machine::COMSETTER(Description) (IN PTRBSTR aDescription)849 STDMETHODIMP Machine::COMSETTER(Description) (IN_BSTR aDescription) 850 850 { 851 851 AutoCaller autoCaller (this); … … 863 863 } 864 864 865 STDMETHODIMP Machine::COMGETTER(Id) ( GUIDPARAMOUTaId)865 STDMETHODIMP Machine::COMGETTER(Id) (OUT_GUID aId) 866 866 { 867 867 CheckComArgOutPointerValid(aId); … … 891 891 } 892 892 893 STDMETHODIMP Machine::COMSETTER(OSTypeId) (IN PTRBSTR aOSTypeId)893 STDMETHODIMP Machine::COMSETTER(OSTypeId) (IN_BSTR aOSTypeId) 894 894 { 895 895 CheckComArgNotNull(aOSTypeId); … … 1333 1333 } 1334 1334 1335 STDMETHODIMP Machine::COMSETTER(SnapshotFolder) (IN PTRBSTR aSnapshotFolder)1335 STDMETHODIMP Machine::COMSETTER(SnapshotFolder) (IN_BSTR aSnapshotFolder) 1336 1336 { 1337 1337 /* @todo (r=dmik): … … 1779 1779 1780 1780 STDMETHODIMP 1781 Machine::COMSETTER(GuestPropertyNotificationPatterns) (IN PTRBSTR aPatterns)1781 Machine::COMSETTER(GuestPropertyNotificationPatterns) (IN_BSTR aPatterns) 1782 1782 { 1783 1783 AssertLogRelReturn (VALID_PTR(aPatterns), E_POINTER); … … 1842 1842 } 1843 1843 1844 STDMETHODIMP Machine::AttachHardDisk2 (IN PTR GUIDPARAMaId,1844 STDMETHODIMP Machine::AttachHardDisk2 (IN_GUID aId, 1845 1845 StorageBus_T aBus, LONG aChannel, 1846 1846 LONG aDevice) … … 2336 2336 * @note Locks this object for reading. 2337 2337 */ 2338 STDMETHODIMP Machine::GetNextExtraDataKey (IN PTRBSTR aKey, BSTR *aNextKey, BSTR *aNextValue)2338 STDMETHODIMP Machine::GetNextExtraDataKey (IN_BSTR aKey, BSTR *aNextKey, BSTR *aNextValue) 2339 2339 { 2340 2340 CheckComArgOutPointerValid(aNextKey); … … 2439 2439 * @note Locks this object for reading. 2440 2440 */ 2441 STDMETHODIMP Machine::GetExtraData (IN PTRBSTR aKey, BSTR *aValue)2441 STDMETHODIMP Machine::GetExtraData (IN_BSTR aKey, BSTR *aValue) 2442 2442 { 2443 2443 CheckComArgNotNull(aKey); … … 2505 2505 * @note Locks mParent for writing + this object for writing. 2506 2506 */ 2507 STDMETHODIMP Machine::SetExtraData (IN PTR BSTR aKey, INPTRBSTR aValue)2507 STDMETHODIMP Machine::SetExtraData (IN_BSTR aKey, IN_BSTR aValue) 2508 2508 { 2509 2509 CheckComArgNotNull(aKey); … … 2576 2576 { 2577 2577 const char *sep = error.isEmpty() ? "" : ": "; 2578 const BSTR err = error.isNull() ? (constBSTR) L"" : error.raw();2578 CBSTR err = error.isNull() ? (CBSTR) L"" : error.raw(); 2579 2579 LogWarningFunc (("Someone vetoed! Change refused%s%ls\n", 2580 2580 sep, err)); … … 2773 2773 } 2774 2774 2775 STDMETHODIMP Machine::GetSnapshot (IN PTR GUIDPARAMaId, ISnapshot **aSnapshot)2775 STDMETHODIMP Machine::GetSnapshot (IN_GUID aId, ISnapshot **aSnapshot) 2776 2776 { 2777 2777 CheckComArgOutPointerValid(aSnapshot); … … 2791 2791 } 2792 2792 2793 STDMETHODIMP Machine::FindSnapshot (IN PTRBSTR aName, ISnapshot **aSnapshot)2793 STDMETHODIMP Machine::FindSnapshot (IN_BSTR aName, ISnapshot **aSnapshot) 2794 2794 { 2795 2795 CheckComArgNotNull(aName); … … 2809 2809 } 2810 2810 2811 STDMETHODIMP Machine::SetCurrentSnapshot (IN PTR GUIDPARAMaId)2811 STDMETHODIMP Machine::SetCurrentSnapshot (IN_GUID aId) 2812 2812 { 2813 2813 /// @todo (dmik) don't forget to set … … 2818 2818 2819 2819 STDMETHODIMP 2820 Machine::CreateSharedFolder (IN PTR BSTR aName, INPTRBSTR aHostPath, BOOL aWritable)2820 Machine::CreateSharedFolder (IN_BSTR aName, IN_BSTR aHostPath, BOOL aWritable) 2821 2821 { 2822 2822 CheckComArgNotNull(aName); … … 2859 2859 } 2860 2860 2861 STDMETHODIMP Machine::RemoveSharedFolder (IN PTRBSTR aName)2861 STDMETHODIMP Machine::RemoveSharedFolder (IN_BSTR aName) 2862 2862 { 2863 2863 CheckComArgNotNull(aName); … … 2942 2942 } 2943 2943 2944 STDMETHODIMP Machine::GetGuestProperty (IN PTRBSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags)2944 STDMETHODIMP Machine::GetGuestProperty (IN_BSTR aName, BSTR *aValue, ULONG64 *aTimestamp, BSTR *aFlags) 2945 2945 { 2946 2946 #if !defined (VBOX_WITH_GUEST_PROPS) … … 2998 2998 } 2999 2999 3000 STDMETHODIMP Machine::GetGuestPropertyValue (IN PTRBSTR aName, BSTR *aValue)3000 STDMETHODIMP Machine::GetGuestPropertyValue (IN_BSTR aName, BSTR *aValue) 3001 3001 { 3002 3002 ULONG64 dummyTimestamp; … … 3005 3005 } 3006 3006 3007 STDMETHODIMP Machine::GetGuestPropertyTimestamp (IN PTRBSTR aName, ULONG64 *aTimestamp)3007 STDMETHODIMP Machine::GetGuestPropertyTimestamp (IN_BSTR aName, ULONG64 *aTimestamp) 3008 3008 { 3009 3009 BSTR dummyValue; … … 3012 3012 } 3013 3013 3014 STDMETHODIMP Machine::SetGuestProperty (IN PTR BSTR aName, INPTR BSTR aValue, INPTRBSTR aFlags)3014 STDMETHODIMP Machine::SetGuestProperty (IN_BSTR aName, IN_BSTR aValue, IN_BSTR aFlags) 3015 3015 { 3016 3016 #if !defined (VBOX_WITH_GUEST_PROPS) … … 3131 3131 } 3132 3132 3133 STDMETHODIMP Machine::SetGuestPropertyValue (IN PTR BSTR aName, INPTRBSTR aValue)3133 STDMETHODIMP Machine::SetGuestPropertyValue (IN_BSTR aName, IN_BSTR aValue) 3134 3134 { 3135 3135 return SetGuestProperty(aName, aValue, NULL); 3136 3136 } 3137 3137 3138 STDMETHODIMP Machine::EnumerateGuestProperties (IN PTRBSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags))3138 STDMETHODIMP Machine::EnumerateGuestProperties (IN_BSTR aPatterns, ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues), ComSafeArrayOut(ULONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags)) 3139 3139 { 3140 3140 #if !defined (VBOX_WITH_GUEST_PROPS) … … 3551 3551 */ 3552 3552 HRESULT Machine::openRemoteSession (IInternalSessionControl *aControl, 3553 IN PTR BSTR aType, INPTRBSTR aEnvironment,3553 IN_BSTR aType, IN_BSTR aEnvironment, 3554 3554 Progress *aProgress) 3555 3555 { … … 4626 4626 * must be called from under the object's lock! 4627 4627 */ 4628 HRESULT Machine::findSharedFolder ( constBSTR aName,4628 HRESULT Machine::findSharedFolder (CBSTR aName, 4629 4629 ComObjPtr <SharedFolder> &aSharedFolder, 4630 4630 bool aSetError /* = false */) … … 5510 5510 * @param aSetError true to set extended error info on failure 5511 5511 */ 5512 HRESULT Machine::findSnapshot ( constBSTR aName, ComObjPtr <Snapshot> &aSnapshot,5512 HRESULT Machine::findSnapshot (IN_BSTR aName, ComObjPtr <Snapshot> &aSnapshot, 5513 5513 bool aSetError /* = false */) 5514 5514 { … … 8098 8098 * @note Locks the same as Host::captureUSBDevice() does. 8099 8099 */ 8100 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN PTR GUIDPARAMaId)8100 STDMETHODIMP SessionMachine::CaptureUSBDevice (IN_GUID aId) 8101 8101 { 8102 8102 LogFlowThisFunc (("\n")); … … 8121 8121 * @note Locks the same as Host::detachUSBDevice() does. 8122 8122 */ 8123 STDMETHODIMP SessionMachine::DetachUSBDevice (IN PTR GUIDPARAMaId, BOOL aDone)8123 STDMETHODIMP SessionMachine::DetachUSBDevice (IN_GUID aId, BOOL aDone) 8124 8124 { 8125 8125 LogFlowThisFunc (("\n")); … … 8355 8355 * @note Locks this object for writing. 8356 8356 */ 8357 STDMETHODIMP SessionMachine::AdoptSavedState (IN PTRBSTR aSavedStateFile)8357 STDMETHODIMP SessionMachine::AdoptSavedState (IN_BSTR aSavedStateFile) 8358 8358 { 8359 8359 LogFlowThisFunc (("\n")); … … 8389 8389 */ 8390 8390 STDMETHODIMP SessionMachine::BeginTakingSnapshot ( 8391 IConsole *aInitiator, IN PTR BSTR aName, INPTRBSTR aDescription,8391 IConsole *aInitiator, IN_BSTR aName, IN_BSTR aDescription, 8392 8392 IProgress *aProgress, BSTR *aStateFilePath, 8393 8393 IProgress **aServerProgress) … … 8577 8577 */ 8578 8578 STDMETHODIMP SessionMachine::DiscardSnapshot ( 8579 IConsole *aInitiator, IN PTR GUIDPARAMaId,8579 IConsole *aInitiator, IN_GUID aId, 8580 8580 MachineState_T *aMachineState, IProgress **aProgress) 8581 8581 { … … 8855 8855 } 8856 8856 8857 STDMETHODIMP SessionMachine::PushGuestProperties (ComSafeArrayIn(IN PTRBSTR, aNames),8858 ComSafeArrayIn(IN PTRBSTR, aValues),8857 STDMETHODIMP SessionMachine::PushGuestProperties (ComSafeArrayIn(IN_BSTR, aNames), 8858 ComSafeArrayIn(IN_BSTR, aValues), 8859 8859 ComSafeArrayIn(ULONG64, aTimestamps), 8860 ComSafeArrayIn(IN PTRBSTR, aFlags))8860 ComSafeArrayIn(IN_BSTR, aFlags)) 8861 8861 { 8862 8862 LogFlowThisFunc (("\n")); … … 8887 8887 AssertReturn(!ComSafeArrayInIsNull (aFlags), E_POINTER); 8888 8888 8889 com::SafeArray <IN PTRBSTR> names(ComSafeArrayInArg(aNames));8890 com::SafeArray <IN PTRBSTR> values(ComSafeArrayInArg(aValues));8889 com::SafeArray <IN_BSTR> names(ComSafeArrayInArg(aNames)); 8890 com::SafeArray <IN_BSTR> values(ComSafeArrayInArg(aValues)); 8891 8891 com::SafeArray <ULONG64> timestamps(ComSafeArrayInArg(aTimestamps)); 8892 com::SafeArray <IN PTRBSTR> flags(ComSafeArrayInArg(aFlags));8892 com::SafeArray <IN_BSTR> flags(ComSafeArrayInArg(aFlags)); 8893 8893 DiscardSettings(); 8894 8894 mHWData.backup(); … … 8913 8913 } 8914 8914 8915 STDMETHODIMP SessionMachine::PushGuestProperty (IN PTR BSTR aName, INPTRBSTR aValue,8916 ULONG64 aTimestamp, IN PTRBSTR aFlags)8915 STDMETHODIMP SessionMachine::PushGuestProperty (IN_BSTR aName, IN_BSTR aValue, 8916 ULONG64 aTimestamp, IN_BSTR aFlags) 8917 8917 { 8918 8918 LogFlowThisFunc (("\n")); … … 9317 9317 * @note The calls shall hold no locks. Will temporarily lock this object for reading. 9318 9318 */ 9319 HRESULT SessionMachine::onUSBDeviceDetach (IN PTR GUIDPARAMaId,9319 HRESULT SessionMachine::onUSBDeviceDetach (IN_GUID aId, 9320 9320 IVirtualBoxErrorInfo *aError) 9321 9321 { … … 10507 10507 */ 10508 10508 HRESULT SnapshotMachine::init (SessionMachine *aSessionMachine, 10509 IN PTR GUIDPARAMaSnapshotId,10510 IN PTRBSTR aStateFilePath)10509 IN_GUID aSnapshotId, 10510 IN_BSTR aStateFilePath) 10511 10511 { 10512 10512 LogFlowThisFuncEnter(); … … 10634 10634 const settings::Key &aHWNode, 10635 10635 const settings::Key &aHDAsNode, 10636 IN PTR GUIDPARAM aSnapshotId, INPTRBSTR aStateFilePath)10636 IN_GUID aSnapshotId, IN_BSTR aStateFilePath) 10637 10637 { 10638 10638 LogFlowThisFuncEnter();
Note:
See TracChangeset
for help on using the changeset viewer.