VirtualBox

Changeset 35526 in vbox for trunk/src


Ignore:
Timestamp:
Jan 13, 2011 2:21:12 PM (14 years ago)
Author:
vboxsync
Message:

VBoxServiceControlExec.cpp: Removed comment and variable obsoleted by r69305. Made 7 functions that were obviously internal to the file static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r35465 r35526  
    898898 * @param   uTimeLimitMS
    899899 */
    900 int VBoxServiceControlExecAllocateThreadData(PVBOXSERVICECTRLTHREAD pThread,
    901                                              uint32_t u32ContextID,
    902                                              const char *pszCmd, uint32_t uFlags,
    903                                              const char *pszArgs, uint32_t uNumArgs,
    904                                              const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
    905                                              const char *pszUser, const char *pszPassword, uint32_t uTimeLimitMS)
     900static int VBoxServiceControlExecAllocateThreadData(PVBOXSERVICECTRLTHREAD pThread,
     901                                                    uint32_t u32ContextID,
     902                                                    const char *pszCmd, uint32_t uFlags,
     903                                                    const char *pszArgs, uint32_t uNumArgs,
     904                                                    const char *pszEnv, uint32_t cbEnv, uint32_t uNumEnvVars,
     905                                                    const char *pszUser, const char *pszPassword, uint32_t uTimeLimitMS)
    906906{
    907907    AssertPtr(pThread);
     
    10291029
    10301030/** @todo Maybe we want to have an own IPRT function for that! */
    1031 int VBoxServiceControlExecMakeFullPath(const char *pszPath, char *pszExpanded, size_t cbExpanded)
     1031static int VBoxServiceControlExecMakeFullPath(const char *pszPath, char *pszExpanded, size_t cbExpanded)
    10321032{
    10331033    int rc = VINF_SUCCESS;
     
    10471047
    10481048
    1049 int VBoxServiceControlExecResolveExecutable(const char *pszFileName, char *pszResolved, size_t cbResolved)
     1049static int VBoxServiceControlExecResolveExecutable(const char *pszFileName, char *pszResolved, size_t cbResolved)
    10501050{
    10511051    int rc = VINF_SUCCESS;
     
    10971097 *                          Needs to be freed with RTGetOptArgvFree.
    10981098 */
    1099 int VBoxServiceControlExecPrepareArgv(const char *pszFileName,
    1100                                       const char * const *papszArgs, char ***ppapszArgv)
     1099static int VBoxServiceControlExecPrepareArgv(const char *pszFileName,
     1100                                             const char * const *papszArgs, char ***ppapszArgv)
    11011101{
    11021102    AssertPtrReturn(pszFileName, VERR_INVALID_PARAMETER);
     
    11041104    AssertPtrReturn(ppapszArgv, VERR_INVALID_PARAMETER);
    11051105
    1106     bool fUseToolbox = false;
    1107     if (RTStrStr(papszArgs[0], "vbox_") == papszArgs[0])
    1108         fUseToolbox = true;
    1109 
    1110     /* Skip argv[0] (= file name) if we don't run an internal
    1111      * VBoxService toolbox command - we already have a resolved one in pszFileName. */
    11121106    char *pszArgs;
    11131107    int rc = RTGetOptArgvToString(&pszArgs, papszArgs,
     
    11651159 * @param   phProcess
    11661160 */
    1167 int VBoxServiceControlExecCreateProcess(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags,
    1168                                         PCRTHANDLE phStdIn, PCRTHANDLE phStdOut, PCRTHANDLE phStdErr, const char *pszAsUser,
    1169                                         const char *pszPassword, PRTPROCESS phProcess)
     1161static int VBoxServiceControlExecCreateProcess(const char *pszExec, const char * const *papszArgs, RTENV hEnv, uint32_t fFlags,
     1162                                               PCRTHANDLE phStdIn, PCRTHANDLE phStdOut, PCRTHANDLE phStdErr, const char *pszAsUser,
     1163                                               const char *pszPassword, PRTPROCESS phProcess)
    11701164{
    11711165    int  rc = VINF_SUCCESS;
     
    12441238 * @param   PVBOXSERVICECTRLTHREAD         Thread data associated with a started process.
    12451239 */
    1246 DECLCALLBACK(int) VBoxServiceControlExecProcessWorker(PVBOXSERVICECTRLTHREAD pThread)
     1240static DECLCALLBACK(int) VBoxServiceControlExecProcessWorker(PVBOXSERVICECTRLTHREAD pThread)
    12471241{
    12481242    AssertPtr(pThread);
     
    14131407 * @param   uPID                        PID to search for.
    14141408 */
    1415 PVBOXSERVICECTRLTHREAD VBoxServiceControlExecFindProcess(uint32_t uPID)
     1409static PVBOXSERVICECTRLTHREAD VBoxServiceControlExecFindProcess(uint32_t uPID)
    14161410{
    14171411    PVBOXSERVICECTRLTHREAD pNode;
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