VirtualBox

Changeset 71345 in vbox


Ignore:
Timestamp:
Mar 15, 2018 9:45:28 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121296
Message:

Guest Control: Dropped the "Internal" suffix from function, as the "i_" prefix now states that it's an internal function.

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/GuestSessionImpl.h

    r71314 r71345  
    501501    inline bool             i_directoryExists(uint32_t uDirID, ComObjPtr<GuestDirectory> *pDir);
    502502    int                     i_directoryRemoveFromList(GuestDirectory *pDirectory);
    503     int                     i_directoryRemoveInternal(const Utf8Str &strPath, uint32_t uFlags, int *pGuestRc);
    504     int                     i_directoryCreateInternal(const Utf8Str &strPath, uint32_t uMode, uint32_t uFlags, int *pGuestRc);
    505     int                     i_objectCreateTempInternal(const Utf8Str &strTemplate, const Utf8Str &strPath, bool fDirectory,
    506                                                        Utf8Str &strName, int *pGuestRc);
    507     int                     i_directoryOpenInternal(const GuestDirectoryOpenInfo &openInfo,
    508                                                     ComObjPtr<GuestDirectory> &pDirectory, int *pGuestRc);
    509     int                     i_directoryQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
     503    int                     i_directoryRemove(const Utf8Str &strPath, uint32_t uFlags, int *pGuestRc);
     504    int                     i_directoryCreate(const Utf8Str &strPath, uint32_t uMode, uint32_t uFlags, int *pGuestRc);
     505    int                     i_objectCreateTemp(const Utf8Str &strTemplate, const Utf8Str &strPath, bool fDirectory,
     506                                               Utf8Str &strName, int *pGuestRc);
     507    int                     i_directoryOpen(const GuestDirectoryOpenInfo &openInfo,
     508                                            ComObjPtr<GuestDirectory> &pDirectory, int *pGuestRc);
     509    int                     i_directoryQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
    510510    int                     i_dispatchToDirectory(PVBOXGUESTCTRLHOSTCBCTX pCtxCb, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);
    511511    int                     i_dispatchToFile(PVBOXGUESTCTRLHOSTCBCTX pCtxCb, PVBOXGUESTCTRLHOSTCALLBACK pSvcCb);
     
    515515    inline bool             i_fileExists(uint32_t uFileID, ComObjPtr<GuestFile> *pFile);
    516516    int                     i_fileRemoveFromList(GuestFile *pFile);
    517     int                     i_fileRemoveInternal(const Utf8Str &strPath, int *pGuestRc);
    518     int                     i_fileOpenInternal(const GuestFileOpenInfo &openInfo, ComObjPtr<GuestFile> &pFile, int *pGuestRc);
    519     int                     i_fileQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
    520     int                     i_fileQuerySizeInternal(const Utf8Str &strPath, bool fFollowSymlinks, int64_t *pllSize, int *pGuestRc);
    521     int                     i_fsQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
     517    int                     i_fileRemove(const Utf8Str &strPath, int *pGuestRc);
     518    int                     i_fileOpen(const GuestFileOpenInfo &openInfo, ComObjPtr<GuestFile> &pFile, int *pGuestRc);
     519    int                     i_fileQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
     520    int                     i_fileQuerySize(const Utf8Str &strPath, bool fFollowSymlinks, int64_t *pllSize, int *pGuestRc);
     521    int                     i_fsQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *pGuestRc);
    522522    const GuestCredentials &i_getCredentials(void);
    523523    EventSource            *i_getEventSource(void) { return mEventSource; }
     
    528528    int                     i_onRemove(void);
    529529    int                     i_onSessionStatusChange(PVBOXGUESTCTRLHOSTCBCTX pCbCtx, PVBOXGUESTCTRLHOSTCALLBACK pSvcCbData);
    530     int                     i_startSessionInternal(int *pGuestRc);
     530    int                     i_startSession(int *pGuestRc);
    531531    int                     i_startSessionAsync(void);
    532532    static void             i_startSessionThreadTask(GuestSessionTaskInternalOpen *pTask);
    533533    Guest                  *i_getParent(void) { return mParent; }
    534534    uint32_t                i_getProtocolVersion(void) { return mData.mProtocolVersion; }
    535     int                     i_pathRenameInternal(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags,
    536                                                  int *pGuestRc);
     535    int                     i_pathRename(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags, int *pGuestRc);
    537536    int                     i_pathUserDocuments(Utf8Str &strPath, int *prcGuest);
    538537    int                     i_pathUserHome(Utf8Str &strPath, int *prcGuest);
    539538    int                     i_processRemoveFromList(GuestProcess *pProcess);
    540     int                     i_processCreateExInternal(GuestProcessStartupInfo &procInfo, ComObjPtr<GuestProcess> &pProgress);
     539    int                     i_processCreateEx(GuestProcessStartupInfo &procInfo, ComObjPtr<GuestProcess> &pProgress);
    541540    inline bool             i_processExists(uint32_t uProcessID, ComObjPtr<GuestProcess> *pProcess);
    542541    inline int              i_processGetByPID(ULONG uPID, ComObjPtr<GuestProcess> *pProcess);
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r71299 r71345  
    55
    66/*
    7  * Copyright (C) 2006-2017 Oracle Corporation
     7 * Copyright (C) 2006-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    547547        Assert(!pSession.isNull());
    548548        int rcGuest;
    549         rc = pSession->i_startSessionInternal(&rcGuest);
     549        rc = pSession->i_startSession(&rcGuest);
    550550        if (RT_FAILURE(rc))
    551551        {
  • trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp

    r71301 r71345  
    19701970    mStartupInfo.mFlags |= ProcessCreateFlag_Hidden;
    19711971
    1972     int vrc = pSession->i_processCreateExInternal(mStartupInfo, pProcess);
     1972    int vrc = pSession->i_processCreateEx(mStartupInfo, pProcess);
    19731973    if (RT_SUCCESS(vrc))
    19741974    {
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r71334 r71345  
    730730}
    731731
    732 int GuestSession::i_directoryCreateInternal(const Utf8Str &strPath, uint32_t uMode,
    733                                             uint32_t uFlags, int *prcGuest)
     732int GuestSession::i_directoryCreate(const Utf8Str &strPath, uint32_t uMode,
     733                                    uint32_t uFlags, int *prcGuest)
    734734{
    735735    AssertPtrReturn(prcGuest, VERR_INVALID_POINTER);
     
    797797}
    798798
    799 int GuestSession::i_directoryQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks,
    800                                                GuestFsObjData &objData, int *prcGuest)
     799int GuestSession::i_directoryQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks,
     800                                       GuestFsObjData &objData, int *prcGuest)
    801801{
    802802    AssertPtrReturn(prcGuest, VERR_INVALID_POINTER);
     
    804804    LogFlowThisFunc(("strPath=%s, fFollowSymlinks=%RTbool\n", strPath.c_str(), fFollowSymlinks));
    805805
    806     int vrc = i_fsQueryInfoInternal(strPath, fFollowSymlinks, objData, prcGuest);
     806    int vrc = i_fsQueryInfo(strPath, fFollowSymlinks, objData, prcGuest);
    807807    if (RT_SUCCESS(vrc))
    808808    {
     
    856856}
    857857
    858 int GuestSession::i_directoryRemoveInternal(const Utf8Str &strPath, uint32_t uFlags,
    859                                             int *prcGuest)
     858int GuestSession::i_directoryRemove(const Utf8Str &strPath, uint32_t uFlags, int *prcGuest)
    860859{
    861860    AssertReturn(!(uFlags & ~DIRREMOVE_FLAG_VALID_MASK), VERR_INVALID_PARAMETER);
     
    897896}
    898897
    899 int GuestSession::i_objectCreateTempInternal(const Utf8Str &strTemplate, const Utf8Str &strPath,
    900                                              bool fDirectory, Utf8Str &strName, int *prcGuest)
     898int GuestSession::i_objectCreateTemp(const Utf8Str &strTemplate, const Utf8Str &strPath,
     899                                     bool fDirectory, Utf8Str &strName, int *prcGuest)
    901900{
    902901    AssertPtrReturn(prcGuest, VERR_INVALID_POINTER);
     
    962961}
    963962
    964 int GuestSession::i_directoryOpenInternal(const GuestDirectoryOpenInfo &openInfo,
    965                                           ComObjPtr<GuestDirectory> &pDirectory, int *prcGuest)
     963int GuestSession::i_directoryOpen(const GuestDirectoryOpenInfo &openInfo,
     964                                  ComObjPtr<GuestDirectory> &pDirectory, int *prcGuest)
    966965{
    967966    AssertPtrReturn(prcGuest, VERR_INVALID_POINTER);
     
    13021301}
    13031302
    1304 int GuestSession::i_fileRemoveInternal(const Utf8Str &strPath, int *prcGuest)
     1303int GuestSession::i_fileRemove(const Utf8Str &strPath, int *prcGuest)
    13051304{
    13061305    LogFlowThisFunc(("strPath=%s\n", strPath.c_str()));
     
    13331332}
    13341333
    1335 int GuestSession::i_fileOpenInternal(const GuestFileOpenInfo &openInfo,
    1336                                      ComObjPtr<GuestFile> &pFile, int *prcGuest)
     1334int GuestSession::i_fileOpen(const GuestFileOpenInfo &openInfo,
     1335                             ComObjPtr<GuestFile> &pFile, int *prcGuest)
    13371336{
    13381337    LogFlowThisFunc(("strFile=%s, enmAccessMode=%d (%s) enmOpenAction=%d (%s) uCreationMode=%RU32 mfOpenEx=%RU32\n",
     
    14351434}
    14361435
    1437 int GuestSession::i_fileQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *prcGuest)
     1436int GuestSession::i_fileQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *prcGuest)
    14381437{
    14391438    LogFlowThisFunc(("strPath=%s fFollowSymlinks=%RTbool\n", strPath.c_str(), fFollowSymlinks));
    14401439
    1441     int vrc = i_fsQueryInfoInternal(strPath, fFollowSymlinks, objData, prcGuest);
     1440    int vrc = i_fsQueryInfo(strPath, fFollowSymlinks, objData, prcGuest);
    14421441    if (RT_SUCCESS(vrc))
    14431442    {
     
    14501449}
    14511450
    1452 int GuestSession::i_fileQuerySizeInternal(const Utf8Str &strPath, bool fFollowSymlinks, int64_t *pllSize, int *prcGuest)
     1451int GuestSession::i_fileQuerySize(const Utf8Str &strPath, bool fFollowSymlinks, int64_t *pllSize, int *prcGuest)
    14531452{
    14541453    AssertPtrReturn(pllSize, VERR_INVALID_POINTER);
    14551454
    14561455    GuestFsObjData objData;
    1457     int vrc = i_fileQueryInfoInternal(strPath, fFollowSymlinks, objData, prcGuest);
     1456    int vrc = i_fileQueryInfo(strPath, fFollowSymlinks, objData, prcGuest);
    14581457    if (RT_SUCCESS(vrc))
    14591458        *pllSize = objData.mObjectSize;
     
    14721471 *                              Any other return code indicates some host side error.
    14731472 */
    1474 int GuestSession::i_fsQueryInfoInternal(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *prcGuest)
     1473int GuestSession::i_fsQueryInfo(const Utf8Str &strPath, bool fFollowSymlinks, GuestFsObjData &objData, int *prcGuest)
    14751474{
    14761475    LogFlowThisFunc(("strPath=%s\n", strPath.c_str()));
     
    17221721}
    17231722
    1724 int GuestSession::i_startSessionInternal(int *prcGuest)
     1723int GuestSession::i_startSession(int *prcGuest)
    17251724{
    17261725    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    18571856        return;
    18581857
    1859     int vrc = pSession->i_startSessionInternal(NULL /* Guest rc, ignored */);
     1858    int vrc = pSession->i_startSession(NULL /* Guest rc, ignored */);
    18601859/** @todo
    18611860 *
     
    18701869}
    18711870
    1872 int GuestSession::i_pathRenameInternal(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags, int *prcGuest)
     1871int GuestSession::i_pathRename(const Utf8Str &strSource, const Utf8Str &strDest, uint32_t uFlags, int *prcGuest)
    18731872{
    18741873    AssertReturn(!(uFlags & ~PATHRENAME_FLAG_VALID_MASK), VERR_INVALID_PARAMETER);
     
    20802079 * @param   pProcess
    20812080 */
    2082 int GuestSession::i_processCreateExInternal(GuestProcessStartupInfo &procInfo, ComObjPtr<GuestProcess> &pProcess)
     2081int GuestSession::i_processCreateEx(GuestProcessStartupInfo &procInfo, ComObjPtr<GuestProcess> &pProcess)
    20832082{
    20842083    LogFlowFunc(("mExe=%s, mFlags=%x, mTimeoutMS=%RU32\n",
     
    29562955
    29572956    ComObjPtr <GuestDirectory> pDirectory; int rcGuest;
    2958     int rc = i_directoryCreateInternal(aPath, (uint32_t)aMode, fFlags, &rcGuest);
     2957    int rc = i_directoryCreate(aPath, (uint32_t)aMode, fFlags, &rcGuest);
    29592958    if (RT_FAILURE(rc))
    29602959    {
     
    30002999
    30013000    int rcGuest;
    3002     int rc = i_objectCreateTempInternal(aTemplateName,
    3003                                         aPath,
    3004                                         true /* Directory */, aDirectory, &rcGuest);
     3001    int rc = i_objectCreateTemp(aTemplateName, aPath, true /* Directory */, aDirectory, &rcGuest);
    30053002    if (!RT_SUCCESS(rc))
    30063003    {
     
    30313028
    30323029    GuestFsObjData objData; int rcGuest;
    3033     int rc = i_directoryQueryInfoInternal(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
     3030    int rc = i_directoryQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
    30343031    if (RT_SUCCESS(rc))
    30353032        *aExists = objData.mType == FsObjType_Directory;
     
    30913088
    30923089    ComObjPtr <GuestDirectory> pDirectory; int rcGuest;
    3093     int rc = i_directoryOpenInternal(openInfo, pDirectory, &rcGuest);
     3090    int rc = i_directoryOpen(openInfo, pDirectory, &rcGuest);
    30943091    if (RT_SUCCESS(rc))
    30953092    {
     
    31353132
    31363133    int rcGuest;
    3137     int vrc = i_directoryRemoveInternal(aPath, uFlags, &rcGuest);
     3134    int vrc = i_directoryRemove(aPath, uFlags, &rcGuest);
    31383135    if (RT_FAILURE(vrc))
    31393136    {
     
    31963193                    | DIRREMOVE_FLAG_CONTENT_AND_DIR;
    31973194    int rcGuest;
    3198     int vrc = i_directoryRemoveInternal(aPath, uFlags, &rcGuest);
     3195    int vrc = i_directoryRemove(aPath, uFlags, &rcGuest);
    31993196    if (RT_FAILURE(vrc))
    32003197    {
     
    33553352
    33563353    GuestFsObjData objData; int rcGuest;
    3357     int vrc = i_fileQueryInfoInternal(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
     3354    int vrc = i_fileQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
    33583355    if (RT_SUCCESS(vrc))
    33593356    {
     
    34683465    ComObjPtr <GuestFile> pFile;
    34693466    int rcGuest;
    3470     int vrc = i_fileOpenInternal(openInfo, pFile, &rcGuest);
     3467    int vrc = i_fileOpen(openInfo, pFile, &rcGuest);
    34713468    if (RT_SUCCESS(vrc))
    34723469        /* Return directory object to the caller. */
     
    35033500
    35043501    int64_t llSize; int rcGuest;
    3505     int vrc = i_fileQuerySizeInternal(aPath, aFollowSymlinks != FALSE,  &llSize, &rcGuest);
     3502    int vrc = i_fileQuerySize(aPath, aFollowSymlinks != FALSE,  &llSize, &rcGuest);
    35063503    if (RT_SUCCESS(vrc))
    35073504    {
     
    35343531    GuestFsObjData objData;
    35353532    int rcGuest;
    3536     int vrc = i_fsQueryInfoInternal(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
     3533    int vrc = i_fsQueryInfo(aPath, aFollowSymlinks != FALSE, objData, &rcGuest);
    35373534    if (RT_SUCCESS(vrc))
    35383535    {
     
    35703567
    35713568    GuestFsObjData Info; int rcGuest;
    3572     int vrc = i_fsQueryInfoInternal(aPath, aFollowSymlinks != FALSE, Info, &rcGuest);
     3569    int vrc = i_fsQueryInfo(aPath, aFollowSymlinks != FALSE, Info, &rcGuest);
    35733570    if (RT_SUCCESS(vrc))
    35743571    {
     
    36073604
    36083605    int rcGuest;
    3609     int vrc = i_fileRemoveInternal(aPath, &rcGuest);
     3606    int vrc = i_fileRemove(aPath, &rcGuest);
    36103607    if (RT_FAILURE(vrc))
    36113608    {
     
    36543651    /* Call worker to do the job. */
    36553652    int rcGuest;
    3656     int vrc = i_pathRenameInternal(aSource, aDestination, fBackend, &rcGuest);
     3653    int vrc = i_pathRename(aSource, aDestination, fBackend, &rcGuest);
    36573654    if (RT_FAILURE(vrc))
    36583655    {
     
    37773774         */
    37783775        ComObjPtr<GuestProcess> pProcess;
    3779         vrc = i_processCreateExInternal(procInfo, pProcess);
     3776        vrc = i_processCreateEx(procInfo, pProcess);
    37803777        if (RT_SUCCESS(vrc))
    37813778        {
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r71299 r71345  
    217217    GuestFsObjData objData; int rcGuest;
    218218
    219     int rc = mSession->i_directoryQueryInfoInternal(strPath, fFollowSymlinks, objData, &rcGuest);
     219    int rc = mSession->i_directoryQueryInfo(strPath, fFollowSymlinks, objData, &rcGuest);
    220220    if (RT_SUCCESS(rc))
    221221    {
     
    232232                    case VERR_FILE_NOT_FOUND:
    233233                    case VERR_PATH_NOT_FOUND:
    234                         rc = mSession->i_directoryCreateInternal(strPath.c_str(), uMode, enmDirecotryCreateFlags, &rcGuest);
     234                        rc = mSession->i_directoryCreate(strPath.c_str(), uMode, enmDirecotryCreateFlags, &rcGuest);
    235235                        break;
    236236                    default:
     
    292292    GuestFsObjData objData;
    293293    int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    294     int rc = mSession->i_fileQueryInfoInternal(strSource, false /*fFollowSymlinks*/, objData, &rcGuest);
     294    int rc = mSession->i_fileQueryInfo(strSource, false /*fFollowSymlinks*/, objData, &rcGuest);
    295295    if (RT_FAILURE(rc))
    296296    {
     
    330330    /* Startup process. */
    331331    ComObjPtr<GuestProcess> pProcess;
    332     rc = mSession->i_processCreateExInternal(procInfo, pProcess);
     332    rc = mSession->i_processCreateEx(procInfo, pProcess);
    333333    if (RT_SUCCESS(rc))
    334334        rc = pProcess->i_startProcess(msTimeout, &rcGuest);
     
    595595    /* Startup process. */
    596596    ComObjPtr<GuestProcess> pProcess;
    597     int rc = mSession->i_processCreateExInternal(procInfo, pProcess);
     597    int rc = mSession->i_processCreateEx(procInfo, pProcess);
    598598
    599599    int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
     
    917917    if (FAILED(autoCaller.rc())) return autoCaller.rc();
    918918
    919     int vrc = mSession->i_startSessionInternal(NULL /*pvrcGuest*/);
     919    int vrc = mSession->i_startSession(NULL /*pvrcGuest*/);
    920920    /* Nothing to do here anymore. */
    921921
     
    995995
    996996    ComObjPtr <GuestDirectory> pDir; int rcGuest;
    997     rc = mSession->i_directoryOpenInternal(dirOpenInfo, pDir, &rcGuest);
     997    rc = mSession->i_directoryOpen(dirOpenInfo, pDir, &rcGuest);
    998998
    999999    if (RT_FAILURE(rc))
     
    14191419        int rcGuest;
    14201420        GuestFsObjData objData;
    1421         rc = mSession->i_fsQueryInfoInternal(mDest, true /* fFollowSymlinks */, objData, &rcGuest);
     1421        rc = mSession->i_fsQueryInfo(mDest, true /* fFollowSymlinks */, objData, &rcGuest);
    14221422        if (RT_SUCCESS(rc))
    14231423        {
     
    16631663        int64_t cbSizeOnGuest;
    16641664        int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    1665         rc = pSession->i_fileQuerySizeInternal(strFileDest, false /*fFollowSymlinks*/, &cbSizeOnGuest, &rcGuest);
     1665        rc = pSession->i_fileQuerySize(strFileDest, false /*fFollowSymlinks*/, &cbSizeOnGuest, &rcGuest);
    16661666        if (   RT_SUCCESS(rc)
    16671667            && cbSize == (uint64_t)cbSizeOnGuest)
     
    19741974            /* Create the installation directory. */
    19751975            int rcGuest = VERR_IPE_UNINITIALIZED_STATUS;
    1976             rc = pSession->i_directoryCreateInternal(strUpdateDir, 755 /* Mode */, DirectoryCreateFlag_Parents, &rcGuest);
     1976            rc = pSession->i_directoryCreate(strUpdateDir, 755 /* Mode */, DirectoryCreateFlag_Parents, &rcGuest);
    19771977            if (RT_FAILURE(rc))
    19781978            {
Note: See TracChangeset for help on using the changeset viewer.

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