Changeset 42411 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jul 26, 2012 2:07:13 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 79508
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r42358 r42411 127 127 void Destroy(void); 128 128 129 int FillData(const void *pData, size_t cbData); 130 129 131 int Init(eVBoxGuestCtrlCallbackType enmType); 130 132 -
trunk/src/VBox/Main/include/GuestImpl.h
r42354 r42411 134 134 STDMETHOD(UpdateGuestAdditions)(IN_BSTR aSource, ULONG aFlags, IProgress **aProgress); 135 135 STDMETHOD(CreateSession)(IN_BSTR aUser, IN_BSTR aPassword, IN_BSTR aDomain, IN_BSTR aSessionName, IGuestSession **aGuestSession); 136 STDMETHOD(FindSession)(IN_BSTR aSessionName, ComSafeArrayOut(IGuestSession *, aSessions)); 136 137 137 138 // Public methods that are not in IDL (only called internally). -
trunk/src/VBox/Main/include/GuestProcessImpl.h
r42358 r42411 57 57 STDMETHOD(COMGETTER(ExecutablePath))(BSTR *aExecutablePath); 58 58 STDMETHOD(COMGETTER(ExitCode))(LONG *aExitCode); 59 STDMETHOD(COMGETTER(Name))(BSTR *aName); 59 60 STDMETHOD(COMGETTER(Pid))(ULONG *aPID); 60 61 STDMETHOD(COMGETTER(Status))(ProcessStatus_T *aStatus); … … 62 63 STDMETHOD(Read)(ULONG aHandle, ULONG aSize, ULONG aTimeoutMS, ComSafeArrayOut(BYTE, aData)); 63 64 STDMETHOD(Terminate)(void); 64 STDMETHOD(WaitFor)(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitResult_T *aReason); 65 STDMETHOD(WaitFor)(ULONG aWaitFlags, ULONG aTimeoutMS, ProcessWaitResult_T *aReason); 66 STDMETHOD(WaitForArray)(ComSafeArrayIn(ProcessWaitForFlag_T, aFlags), ULONG aTimeoutMS, ProcessWaitResult_T *aReason); 65 67 STDMETHOD(Write)(ULONG aHandle, ComSafeArrayIn(BYTE, aData), ULONG aTimeoutMS, ULONG *aWritten); 66 68 /** @} */ … … 79 81 int terminateProcess(void); 80 82 int waitFor(uint32_t fWaitFlags, ULONG uTimeoutMS, GuestProcessWaitResult &guestResult); 81 HRESULT waitResultToErrorEx(const GuestProcessWaitResult &waitResult, bool fLog);82 83 int writeData(ULONG uHandle, BYTE const *pbData, size_t cbData, ULONG uTimeoutMS, ULONG *puWritten); 83 84 /** @} */ … … 88 89 inline int callbackAdd(GuestCtrlCallback *pCallback, ULONG *puContextID); 89 90 inline int callbackRemove(ULONG uContextID); 91 inline bool isAlive(void); 92 HRESULT hgcmResultToError(int rc); 90 93 int onGuestDisconnected(GuestCtrlCallback *pCallback, PCALLBACKDATACLIENTDISCONNECTED pData); 91 94 int onProcessInputStatus(GuestCtrlCallback *pCallback, PCALLBACKDATAEXECINSTATUS pData); … … 96 99 int signalWaiters(ProcessWaitResult_T enmWaitResult, int rc = VINF_SUCCESS); 97 100 static DECLCALLBACK(int) startProcessThread(RTTHREAD Thread, void *pvUser); 101 HRESULT waitResultToErrorEx(const GuestProcessWaitResult &waitResult, bool fLog); 98 102 /** @} */ 99 103 … … 109 113 /** All related callbacks to this process. */ 110 114 GuestCtrlCallbacks mCallbacks; 115 /** The process' name. */ 116 Utf8Str mName; 111 117 /** The process start information. */ 112 118 GuestProcessInfo mProcess; … … 119 125 /** The current process status. */ 120 126 ProcessStatus_T mStatus; 121 /** Flag indicating whether the process has been started122 * so that it can't be started a second time. */123 bool mStarted;124 127 /** The next upcoming context ID. */ 125 128 ULONG mNextContextID; 129 /** The mutex for protecting the waiter(s). */ 130 RTSEMMUTEX mWaitMutex; 126 131 /** How many waiters? At the moment there can only 127 132 * be one. */ -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42354 r42411 61 61 STDMETHOD(COMGETTER(Id))(ULONG *aId); 62 62 STDMETHOD(COMGETTER(Timeout))(ULONG *aTimeout); 63 STDMETHOD(COMSETTER(Timeout))(ULONG aTimeout); 63 64 STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut(BSTR, aEnvironment)); 64 65 STDMETHOD(COMGETTER(Processes))(ComSafeArrayOut(IGuestProcess *, aProcesses));
Note:
See TracChangeset
for help on using the changeset viewer.