VirtualBox

Changeset 81320 in vbox


Ignore:
Timestamp:
Oct 17, 2019 2:32:23 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

    r81318 r81320  
    3131
    3232
    33 static int sharedClipboardTransferThreadCreate(PSHCLTRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser);
    34 static int sharedClipboardTransferThreadDestroy(PSHCLTRANSFER pTransfer, RTMSINTERVAL uTimeoutMs);
    35 static PSHCLTRANSFER sharedClipboardTransferCtxGetTransferInternal(PSHCLTRANSFERCTX pTransferCtx, uint32_t uIdx);
    36 static int sharedClipboardConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode,
    37                                                  SHCLOBJHANDLE handleInitial, uint64_t *pfOpen);
     33static int shClTransferThreadCreate(PSHCLTRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser);
     34static int shClTransferThreadDestroy(PSHCLTRANSFER pTransfer, RTMSINTERVAL uTimeoutMs);
     35static PSHCLTRANSFER shClTransferCtxGetTransferInternal(PSHCLTRANSFERCTX pTransferCtx, uint32_t uIdx);
     36static int shClConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode, SHCLOBJHANDLE handleInitial, uint64_t *pfOpen);
    3837
    3938/** @todo Split this file up in different modules. */
     
    762761 * @param   hObj                Object handle of the object to get handle info for.
    763762 */
    764 inline PSHCLOBJHANDLEINFO sharedClipboardTransferObjectGet(PSHCLTRANSFER pTransfer,
    765                                                            SHCLOBJHANDLE hObj)
     763inline PSHCLOBJHANDLEINFO shClTransferObjGet(PSHCLTRANSFER pTransfer, SHCLOBJHANDLE hObj)
    766764{
    767765    PSHCLOBJHANDLEINFO pIt;
     
    809807
    810808                uint64_t fOpen;
    811                 rc = sharedClipboardConvertFileCreateFlags(fWritable,
    812                                                            pOpenCreateParms->fCreate, pOpenCreateParms->ObjInfo.Attr.fMode,
    813                                                            SHCLOBJHANDLE_INVALID, &fOpen);
     809                rc = shClConvertFileCreateFlags(fWritable,
     810                                                pOpenCreateParms->fCreate, pOpenCreateParms->ObjInfo.Attr.fMode,
     811                                                SHCLOBJHANDLE_INVALID, &fOpen);
    814812                if (RT_SUCCESS(rc))
    815813                {
     
    877875    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    878876    {
    879         PSHCLOBJHANDLEINFO pInfo = sharedClipboardTransferObjectGet(pTransfer, hObj);
     877        PSHCLOBJHANDLEINFO pInfo = shClTransferObjGet(pTransfer, hObj);
    880878        if (pInfo)
    881879        {
     
    962960    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    963961    {
    964         PSHCLOBJHANDLEINFO pInfo = sharedClipboardTransferObjectGet(pTransfer, hObj);
     962        PSHCLOBJHANDLEINFO pInfo = shClTransferObjGet(pTransfer, hObj);
    965963        if (pInfo)
    966964        {
     
    10241022    if (pTransfer->State.enmSource == SHCLSOURCE_LOCAL)
    10251023    {
    1026         PSHCLOBJHANDLEINFO pInfo = sharedClipboardTransferObjectGet(pTransfer, hObj);
     1024        PSHCLOBJHANDLEINFO pInfo = shClTransferObjGet(pTransfer, hObj);
    10271025        if (pInfo)
    10281026        {
     
    11291127 * @returns VBox status code.
    11301128 * @param   ppTransfer          Where to return the created Shared Clipboard transfer struct.
    1131  *                              Must be destroyed by SharedClipboardTransferDestroy().
     1129 *                              Must be destroyed by ShClTransferDestroy().
    11321130 */
    11331131int ShClTransferCreate(PSHCLTRANSFER *ppTransfer)
     
    12061204    LogFlowFuncEnter();
    12071205
    1208     int rc = sharedClipboardTransferThreadDestroy(pTransfer, 30 * 1000 /* Timeout in ms */);
     1206    int rc = shClTransferThreadDestroy(pTransfer, 30 * 1000 /* Timeout in ms */);
    12091207    if (RT_FAILURE(rc))
    12101208        return rc;
     
    23532351                    VERR_WRONG_ORDER);
    23542352
    2355     int rc = sharedClipboardTransferThreadCreate(pTransfer, pfnThreadFunc, pvUser);
     2353    int rc = shClTransferThreadCreate(pTransfer, pfnThreadFunc, pvUser);
    23562354
    23572355    LogFlowFuncLeaveRC(rc);
     
    24352433 * @param   pvUser              Pointer to user-provided data.
    24362434 */
    2437 static int sharedClipboardTransferThreadCreate(PSHCLTRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
     2435static int shClTransferThreadCreate(PSHCLTRANSFER pTransfer, PFNRTTHREAD pfnThreadFunc, void *pvUser)
    24382436
    24392437{
     
    24752473 * @param   uTimeoutMs          Timeout (in ms) to wait for thread creation.
    24762474 */
    2477 static int sharedClipboardTransferThreadDestroy(PSHCLTRANSFER pTransfer, RTMSINTERVAL uTimeoutMs)
     2475static int shClTransferThreadDestroy(PSHCLTRANSFER pTransfer, RTMSINTERVAL uTimeoutMs)
    24782476{
    24792477    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     
    25762574 * @param   uID                 ID of the transfer to return.
    25772575 */
    2578 static PSHCLTRANSFER sharedClipboardTransferCtxGetTransferInternal(PSHCLTRANSFERCTX pTransferCtx, uint32_t uID)
     2576static PSHCLTRANSFER shClTransferCtxGetTransferInternal(PSHCLTRANSFERCTX pTransferCtx, uint32_t uID)
    25792577{
    25802578    PSHCLTRANSFER pTransfer;
     
    25972595PSHCLTRANSFER ShClTransferCtxGetTransfer(PSHCLTRANSFERCTX pTransferCtx, uint32_t uID)
    25982596{
    2599     return sharedClipboardTransferCtxGetTransferInternal(pTransferCtx, uID);
     2597    return shClTransferCtxGetTransferInternal(pTransferCtx, uID);
    26002598}
    26012599
     
    27232721    LogFlowFunc(("idTransfer=%RU32\n", idTransfer));
    27242722
    2725     PSHCLTRANSFER pTransfer = sharedClipboardTransferCtxGetTransferInternal(pTransferCtx, idTransfer);
     2723    PSHCLTRANSFER pTransfer = shClTransferCtxGetTransferInternal(pTransferCtx, idTransfer);
    27262724    if (pTransfer)
    27272725    {
     
    28482846 * @sa Initially taken from vbsfConvertFileOpenFlags().
    28492847 */
    2850 static int sharedClipboardConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode,
    2851                                                  SHCLOBJHANDLE handleInitial, uint64_t *pfOpen)
     2848static int shClConvertFileCreateFlags(bool fWritable, unsigned fShClFlags, RTFMODE fMode,
     2849                                      SHCLOBJHANDLE handleInitial, uint64_t *pfOpen)
    28522850{
    28532851    uint64_t fOpen = 0;
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