VirtualBox

Changeset 60642 in vbox


Ignore:
Timestamp:
Apr 22, 2016 8:02:20 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106807
Message:

Documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r60622 r60642  
    20822082
    20832083/**
    2084  * <Someone write documentation, pretty please!>
     2084 * Static helper function to start and wait for output of a certain toolbox tool.
    20852085 *
    2086  * @param   pGuestRc        Optional.  Will be set to VINF_SUCCESS,
    2087  *                          VERR_NOT_EQUAL or VERR_INVALID_STATE if the
    2088  *                          process completed.  Should it fail earlier that,
    2089  *                          you're feel free to enlighten the rest of us...
     2086 * This is the extended version, which addds the possibility of retrieving parsable so-called guest stream
     2087 * objects. Those objects are issued on the guest side as part of VBoxService's toolbox tools (think of a BusyBox-like approach)
     2088 * on stdout and can be used on the host side to retrieve more information about the actual command issued on the guest side.
     2089 *
     2090 * @return  IPRT status code.
     2091 * @param   pGuestSession           Guest control session to use for starting the toolbox tool in.
     2092 * @param   startupInfo             Startup information about the toolbox tool.
     2093 * @param   pStrmOutObjects         Pointer to stream objects array to use for retrieving the output of the toolbox tool.
     2094 *                                  Optional.
     2095 * @param   cStrmOutObjects         Number of stream objects passed in. Optional.
     2096 * @param   errorInfo               Error information returned for error handling.
    20902097 */
    20912098/* static */
    20922099int GuestProcessTool::i_runExErrorInfo(      GuestSession              *pGuestSession,
    20932100                                       const GuestProcessStartupInfo   &startupInfo,
    2094                                              GuestCtrlStreamObjects    *pStrmOutObjects,
     2101                                             GuestCtrlStreamObjects    *paStrmOutObjects,
    20952102                                             uint32_t                   cStrmOutObjects,
    20962103                                             GuestProcessToolErrorInfo &errorInfo)
    20972104{
     2105    AssertPtrReturn(pGuestSession, VERR_INVALID_POINTER);
     2106    /* paStrmOutObjects is optional. */
     2107
     2108    /** @todo Check if this is a valid toolbox. */
     2109
    20982110    GuestProcessTool procTool;
    20992111    int vrc = procTool.Init(pGuestSession, startupInfo, false /* Async */, &errorInfo.guestRc);
     
    21052117            {
    21062118                GuestProcessStreamBlock strmBlk;
    2107                 vrc = procTool.i_waitEx(  pStrmOutObjects
     2119                vrc = procTool.i_waitEx(  paStrmOutObjects
    21082120                                        ? GUESTPROCESSTOOL_FLAG_STDOUT_BLOCK
    21092121                                        : GUESTPROCESSTOOL_FLAG_NONE, &strmBlk, &errorInfo.guestRc);
    2110                 if (pStrmOutObjects)
    2111                     pStrmOutObjects->push_back(strmBlk);
     2122                if (paStrmOutObjects)
     2123                    paStrmOutObjects->push_back(strmBlk);
    21122124            }
    21132125            catch (std::bad_alloc)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette