Changeset 71272 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Mar 8, 2018 12:26:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestProcessImpl.h
r71263 r71272 87 87 int i_prepareExecuteEnv(const char *pszEnv, void **ppvList, ULONG *pcbList, ULONG *pcEnvVars); 88 88 int i_setProcessStatus(ProcessStatus_T procStatus, int procRc); 89 static voidi_startProcessThreadTask(GuestProcessStartTask *pTask);89 static int i_startProcessThreadTask(GuestProcessStartTask *pTask); 90 90 /** @} */ 91 91 … … 213 213 public: 214 214 215 int Init(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, bool fAsync, int *pGuestRc);216 217 int i_getCurrentBlock(uint32_t uHandle, GuestProcessStreamBlock &strmBlock);218 219 int i_getRc(void) const;220 221 GuestProcessStream & i_getStdOut(void) { return mStdOut; }222 223 GuestProcessStream & i_getStdErr(void) { return mStdErr; }224 225 int i_wait(uint32_t fFlags, int *pGuestRc);226 227 int i_waitEx(uint32_t fFlags, GuestProcessStreamBlock *pStreamBlock, int *pGuestRc);228 229 bool i _isRunning(void);230 231 int i_terminatedOk(int32_t *piExitCode = NULL);232 233 int i_terminate(uint32_t uTimeoutMS, int *pGuestRc);234 235 public: 236 237 static int i_run(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, int *pGuestRc);238 239 static int i_runErrorInfo(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, GuestProcessToolErrorInfo &errorInfo);240 241 static int i_runEx(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo,242 243 244 static int i_runExErrorInfo(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo,245 246 247 static int i_exitCodeToRc(const GuestProcessStartupInfo &startupInfo, int32_t iExitCode);248 249 static int i_exitCodeToRc(const char *pszTool, int32_t iExitCode);215 int init(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, bool fAsync, int *pGuestRc); 216 217 int getCurrentBlock(uint32_t uHandle, GuestProcessStreamBlock &strmBlock); 218 219 int getRc(void) const; 220 221 GuestProcessStream &getStdOut(void) { return mStdOut; } 222 223 GuestProcessStream &getStdErr(void) { return mStdErr; } 224 225 int wait(uint32_t fFlags, int *pGuestRc); 226 227 int waitEx(uint32_t fFlags, GuestProcessStreamBlock *pStreamBlock, int *pGuestRc); 228 229 bool isRunning(void); 230 231 int terminatedOk(int32_t *piExitCode = NULL); 232 233 int terminate(uint32_t uTimeoutMS, int *pGuestRc); 234 235 public: 236 237 static int run(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, int *pGuestRc); 238 239 static int runErrorInfo(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, GuestProcessToolErrorInfo &errorInfo); 240 241 static int runEx(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, 242 GuestCtrlStreamObjects *pStrmOutObjects, uint32_t cStrmOutObjects, int *pGuestRc); 243 244 static int runExErrorInfo(GuestSession *pGuestSession, const GuestProcessStartupInfo &startupInfo, 245 GuestCtrlStreamObjects *pStrmOutObjects, uint32_t cStrmOutObjects, GuestProcessToolErrorInfo &errorInfo); 246 247 static int exitCodeToRc(const GuestProcessStartupInfo &startupInfo, int32_t iExitCode); 248 249 static int exitCodeToRc(const char *pszTool, int32_t iExitCode); 250 250 251 251 protected: … … 256 256 GuestProcessStream mStdOut; 257 257 GuestProcessStream mStdErr; 258 259 258 }; 260 259
Note:
See TracChangeset
for help on using the changeset viewer.