VirtualBox

Changeset 81325 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Oct 17, 2019 4:07:37 PM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r81324 r81325  
    254254 * @param   pListHdr            transfer list header to duplicate.
    255255 */
    256 PSHCLLISTHDR SharedClipboardTransferListHdrDup(PSHCLLISTHDR pListHdr)
     256PSHCLLISTHDR ShClTransferListHdrDup(PSHCLLISTHDR pListHdr)
    257257{
    258258    AssertPtrReturn(pListHdr, NULL);
     
    637637 * @param   pObjCtx             transfer object context to check.
    638638 */
    639 bool SharedClipboardTransferObjCtxIsValid(PSHCLCLIENTTRANSFEROBJCTX pObjCtx)
     639bool ShClTransferObjCtxIsValid(PSHCLCLIENTTRANSFEROBJCTX pObjCtx)
    640640{
    641641    return (   pObjCtx
     
    13431343 * @param   hList               List handle of the list to get handle info for.
    13441344 */
    1345 inline PSHCLLISTHANDLEINFO sharedClipboardTransferListGetByHandle(PSHCLTRANSFER pTransfer, SHCLLISTHANDLE hList)
     1345inline PSHCLLISTHANDLEINFO shClTransferListGetByHandle(PSHCLTRANSFER pTransfer, SHCLLISTHANDLE hList)
    13461346{
    13471347    PSHCLLISTHANDLEINFO pIt;
     
    13611361 * @param   pTransfer           Clipboard transfer to create new list handle for.
    13621362 */
    1363 inline SHCLLISTHANDLE sharedClipboardTransferListHandleNew(PSHCLTRANSFER pTransfer)
     1363inline SHCLLISTHANDLE shClTransferListHandleNew(PSHCLTRANSFER pTransfer)
    13641364{
    13651365    return pTransfer->uListHandleNext++; /** @todo Good enough for now. Improve this later. */
     
    14811481                        if (RT_SUCCESS(rc))
    14821482                        {
    1483                             pInfo->hList = sharedClipboardTransferListHandleNew(pTransfer);
     1483                            pInfo->hList = shClTransferListHandleNew(pTransfer);
    14841484
    14851485                            RTListAppend(&pTransfer->lstList, &pInfo->Node);
     
    15511551    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    15521552    {
    1553         PSHCLLISTHANDLEINFO pInfo = sharedClipboardTransferListGetByHandle(pTransfer, hList);
     1553        PSHCLLISTHANDLEINFO pInfo = shClTransferListGetByHandle(pTransfer, hList);
    15541554        if (pInfo)
    15551555        {
     
    16021602 * @param   pszPath             Path of file to add.
    16031603 */
    1604 static int sharedClipboardTransferListHdrAddFile(PSHCLLISTHDR pHdr, const char *pszPath)
     1604static int shclTransferListHdrAddFile(PSHCLLISTHDR pHdr, const char *pszPath)
    16051605{
    16061606    uint64_t cbSize = 0;
     
    16261626 * @param   cchDstBase          Number of charaters of destination base path.
    16271627 */
    1628 static int sharedClipboardTransferListHdrFromDir(PSHCLLISTHDR pHdr, const char *pcszPathAbs)
     1628static int shclTransferListHdrFromDir(PSHCLLISTHDR pHdr, const char *pcszPathAbs)
    16291629{
    16301630    AssertPtrReturn(pcszPathAbs, VERR_INVALID_POINTER);
     
    16711671                            if (pszSrc)
    16721672                            {
    1673                                 rc = sharedClipboardTransferListHdrAddFile(pHdr, pszSrc);
     1673                                rc = shclTransferListHdrAddFile(pHdr, pszSrc);
    16741674                                RTStrFree(pszSrc);
    16751675                            }
     
    16951695        else if (RTFS_IS_FILE(objInfo.Attr.fMode))
    16961696        {
    1697             rc = sharedClipboardTransferListHdrAddFile(pHdr, pcszPathAbs);
     1697            rc = shclTransferListHdrAddFile(pHdr, pcszPathAbs);
    16981698        }
    16991699        else if (RTFS_IS_SYMLINK(objInfo.Attr.fMode))
     
    17291729    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    17301730    {
    1731         PSHCLLISTHANDLEINFO pInfo = sharedClipboardTransferListGetByHandle(pTransfer, hList);
     1731        PSHCLLISTHANDLEINFO pInfo = shClTransferListGetByHandle(pTransfer, hList);
    17321732        if (pInfo)
    17331733        {
     
    17411741                        LogFlowFunc(("DirAbs: %s\n", pInfo->pszPathLocalAbs));
    17421742
    1743                         rc = sharedClipboardTransferListHdrFromDir(pHdr, pInfo->pszPathLocalAbs);
     1743                        rc = shclTransferListHdrFromDir(pHdr, pInfo->pszPathLocalAbs);
    17441744                        break;
    17451745                    }
     
    18291829    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    18301830    {
    1831         PSHCLLISTHANDLEINFO pInfo = sharedClipboardTransferListGetByHandle(pTransfer, hList);
     1831        PSHCLLISTHANDLEINFO pInfo = shClTransferListGetByHandle(pTransfer, hList);
    18321832        if (pInfo)
    18331833        {
     
    19801980    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    19811981    {
    1982         fIsValid = sharedClipboardTransferListGetByHandle(pTransfer, hList) != NULL;
     1982        fIsValid = shClTransferListGetByHandle(pTransfer, hList) != NULL;
    19831983    }
    19841984    else if (pTransfer->State.enmSource == SHCLSOURCE_REMOTE)
     
    20342034 * @param   pTransfer           Transfer to clear transfer root list for.
    20352035 */
    2036 static void sharedClipboardTransferListRootsClear(PSHCLTRANSFER pTransfer)
     2036static void shClTransferListRootsClear(PSHCLTRANSFER pTransfer)
    20372037{
    20382038    AssertPtrReturnVoid(pTransfer);
     
    20692069    LogFlowFuncEnter();
    20702070
    2071     sharedClipboardTransferListRootsClear(pTransfer);
     2071    shClTransferListRootsClear(pTransfer);
    20722072}
    20732073
     
    21052105 * @param   uIdx                Index of root list entry to return.
    21062106 */
    2107 inline PSHCLLISTROOT sharedClipboardTransferRootsGetInternal(PSHCLTRANSFER pTransfer, uint32_t uIdx)
     2107inline PSHCLLISTROOT shClTransferRootsGetInternal(PSHCLTRANSFER pTransfer, uint32_t uIdx)
    21082108{
    21092109    if (uIdx >= pTransfer->cRoots)
     
    21362136    int rc;
    21372137
    2138     PSHCLLISTROOT pRoot = sharedClipboardTransferRootsGetInternal(pTransfer, uIndex);
     2138    PSHCLLISTROOT pRoot = shClTransferRootsGetInternal(pTransfer, uIndex);
    21392139    AssertPtrReturn(pRoot, VERR_INVALID_PARAMETER);
    21402140
     
    22712271    int rc = VINF_SUCCESS;
    22722272
    2273     sharedClipboardTransferListRootsClear(pTransfer);
     2273    shClTransferListRootsClear(pTransfer);
    22742274
    22752275    char  *pszPathRootAbs = NULL;
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