儲存庫 vbox 的更動 15039
- 時間撮記:
- 2008-12-5 下午01:07:27 (16 年 以前)
- 位置:
- trunk/src/VBox/Main
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/MachineImpl.cpp
r14972 r15039 8043 8043 * @note Locks the same as #setMachineState() does. 8044 8044 */ 8045 STDMETHODIMP SessionMachine::UpdateState (MachineState_T machineState)8046 { 8047 return setMachineState ( machineState);8045 STDMETHODIMP SessionMachine::UpdateState (MachineState_T aMachineState) 8046 { 8047 return setMachineState (aMachineState); 8048 8048 } 8049 8049 … … 8051 8051 * @note Locks this object for reading. 8052 8052 */ 8053 STDMETHODIMP SessionMachine::GetIPCId (BSTR * id)8053 STDMETHODIMP SessionMachine::GetIPCId (BSTR *aId) 8054 8054 { 8055 8055 AutoCaller autoCaller (this); … … 8059 8059 8060 8060 #if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2) 8061 mIPCSemName.cloneTo ( id);8061 mIPCSemName.cloneTo (aId); 8062 8062 return S_OK; 8063 8063 #elif defined(VBOX_WITH_SYS_V_IPC_SESSION_WATCHER) 8064 mData->mConfigFileFull.cloneTo ( id);8064 mData->mConfigFileFull.cloneTo (aId); 8065 8065 return S_OK; 8066 8066 #else … … 8115 8115 return service->captureDeviceForVM (this, aId); 8116 8116 #else 8117 return E_ FAIL;8117 return E_NOTIMPL; 8118 8118 #endif 8119 8119 } … … 8134 8134 return service->detachDeviceFromVM (this, aId, !!aDone); 8135 8135 #else 8136 return E_ FAIL;8136 return E_NOTIMPL; 8137 8137 #endif 8138 8138 } … … 8374 8374 int vrc = calculateFullPath (stateFilePathFull, stateFilePathFull); 8375 8375 if (RT_FAILURE (vrc)) 8376 return setError ( E_FAIL,8376 return setError (VBOX_E_FILE_ERROR, 8377 8377 tr ("Invalid saved state file path '%ls' (%Rrc)"), 8378 8378 aSavedStateFile, vrc); … … 8605 8605 size_t childrenCount = snapshot->children().size(); 8606 8606 if (childrenCount > 1) 8607 return setError ( E_FAIL,8607 return setError (VBOX_E_INVALID_OBJECT_STATE, 8608 8608 tr ("Snapshot '%ls' of the machine '%ls' has more than one " 8609 8609 "child snapshot (%d)"), … … 8678 8678 8679 8679 if (mData->mCurrentSnapshot.isNull()) 8680 return setError ( E_FAIL,8680 return setError (VBOX_E_INVALID_OBJECT_STATE, 8681 8681 tr ("Could not discard the current state of the machine '%ls' " 8682 8682 "because it doesn't have any snapshots"), … … 8742 8742 8743 8743 if (mData->mCurrentSnapshot.isNull()) 8744 return setError ( E_FAIL,8744 return setError (VBOX_E_INVALID_OBJECT_STATE, 8745 8745 tr ("Could not discard the current state of the machine '%ls' " 8746 8746 "because it doesn't have any snapshots"), … … 8922 8922 using namespace guestProp; 8923 8923 8924 if (!VALID_PTR(aName)) 8925 return E_POINTER; 8924 CheckComArgNotNull(aName); 8926 8925 if ((aValue != NULL) && (!VALID_PTR(aValue) || !VALID_PTR(aFlags))) 8927 8926 return E_POINTER; /* aValue can be NULL to indicate deletion */ … … 8941 8940 8942 8941 bool matchAll = false; 8943 if ( 0 == utf8Patterns.length())8942 if (utf8Patterns.length() == 0) 8944 8943 matchAll = true; 8945 8944 -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r15027 r15039 2726 2726 the state previously requested by #beginSavingState is either 2727 2727 successfully finished or there was a failure. 2728 2729 <result name="VBOX_E_FILE_ERROR"> 2730 Settings file not accessible. 2731 </result> 2732 <result name="VBOX_E_XML_ERROR"> 2733 Could not parse the settings file. 2734 </result> 2735 2728 2736 </desc> 2729 2737 2730 2738 <param name="success" type="boolean" dir="in"> 2731 <desc><tt>true</tt> to indicate success and <tt>false</tt> otherwise</desc> 2739 <desc><tt>true</tt> to indicate success and <tt>false</tt> 2740 otherwise. 2741 </desc> 2732 2742 </param> 2733 2743 </method> … … 2736 2746 <desc> 2737 2747 Gets called by IConsole::adoptSavedState. 2748 <result name="VBOX_E_FILE_ERROR"> 2749 Invalid saved state file path. 2750 </result> 2738 2751 </desc> 2739 2752 <param name="savedStateFile" type="wstring" dir="in"> … … 2746 2759 Called by the VM process to inform the server it wants to 2747 2760 take a snapshot. 2761 2762 <result name="VBOX_E_FILE_ERROR"> 2763 Settings file not accessible. 2764 </result> 2765 <result name="VBOX_E_XML_ERROR"> 2766 Could not parse the settings file. 2767 </result> 2748 2768 </desc> 2749 2769 <param name="initiator" type="IConsole" dir="in"> … … 2751 2771 </param> 2752 2772 <param name="name" type="wstring" dir="in"> 2753 <desc>Snapshot name </desc>2773 <desc>Snapshot name.</desc> 2754 2774 </param> 2755 2775 <param name="description" type="wstring" dir="in"> 2756 <desc>Snapshot description </desc>2776 <desc>Snapshot description.</desc> 2757 2777 </param> 2758 2778 <param name="progress" type="IProgress" dir="in"> … … 2790 2810 <desc> 2791 2811 Gets called by IConsole::discardSnapshot. 2812 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2813 Snapshot has more than one child snapshot. 2814 </result> 2792 2815 </desc> 2793 2816 <param name="initiator" type="IConsole" dir="in"> … … 2808 2831 <desc> 2809 2832 Gets called by IConsole::discardCurrentState. 2833 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2834 Virtual machine does not have any snapshot. 2835 </result> 2810 2836 </desc> 2811 2837 <param name="initiator" type="IConsole" dir="in"> … … 2823 2849 <desc> 2824 2850 Gets called by IConsole::discardCurrentSnapshotAndState. 2851 <result name="VBOX_E_INVALID_OBJECT_STATE"> 2852 Virtual machine does not have any snapshot. 2853 </result> 2825 2854 </desc> 2826 2855 <param name="initiator" type="IConsole" dir="in">
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器