VirtualBox

Changeset 80866 in vbox for trunk


Ignore:
Timestamp:
Sep 17, 2019 3:40:00 PM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Yet more renaming.

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r80862 r80866  
    9494*********************************************************************************************************************************/
    9595#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    96 static DECLCALLBACK(void) vboxClipboardTransferTransferCompleteCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc);
    97 static DECLCALLBACK(void) vboxClipboardTransferTransferErrorCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc);
     96static DECLCALLBACK(void) vboxClipboardTransferCompleteCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc);
     97static DECLCALLBACK(void) vboxClipboardTransferErrorCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc);
    9898#endif
    9999
     
    160160#endif
    161161
    162 static void vboxClipboardTransferTransferCallbackCleanup(PSHCLTRANSFERCALLBACKDATA pData)
     162static void vboxClipboardTransferCallbackCleanup(PSHCLTRANSFERCALLBACKDATA pData)
    163163{
    164164    PSHCLTRANSFERCTX pCtx = (PSHCLTRANSFERCTX)pData->pvUser;
     
    183183}
    184184
    185 static DECLCALLBACK(void) vboxClipboardTransferTransferCompleteCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc)
     185static DECLCALLBACK(void) vboxClipboardTransferCompleteCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc)
    186186{
    187187    RT_NOREF(rc);
     
    191191    LogRel2(("Shared Clipboard: Transfer to destination complete\n"));
    192192
    193     vboxClipboardTransferTransferCallbackCleanup(pData);
    194 }
    195 
    196 static DECLCALLBACK(void) vboxClipboardTransferTransferErrorCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc)
     193    vboxClipboardTransferCallbackCleanup(pData);
     194}
     195
     196static DECLCALLBACK(void) vboxClipboardTransferErrorCallback(PSHCLTRANSFERCALLBACKDATA pData, int rc)
    197197{
    198198    RT_NOREF(rc);
     
    202202    LogRel(("Shared Clipboard: Transfer to destination failed with %Rrc\n", rc));
    203203
    204     vboxClipboardTransferTransferCallbackCleanup(pData);
    205 }
    206 
    207 static int vboxClipboardTransferTransferOpen(PSHCLPROVIDERCTX pCtx)
     204    vboxClipboardTransferCallbackCleanup(pData);
     205}
     206
     207static int vboxClipboardTransferOpen(PSHCLPROVIDERCTX pCtx)
    208208{
    209209    RT_NOREF(pCtx);
     
    213213}
    214214
    215 static int vboxClipboardTransferTransferClose(PSHCLPROVIDERCTX pCtx)
     215static int vboxClipboardTransferClose(PSHCLPROVIDERCTX pCtx)
    216216{
    217217    RT_NOREF(pCtx);
     
    969969
    970970               TransferCallbacks.pvUser              = &pCtx->URI;
    971                TransferCallbacks.pfnTransferComplete = vboxClipboardTransferTransferCompleteCallback;
    972                TransferCallbacks.pfnTransferError    = vboxClipboardTransferTransferErrorCallback;
     971               TransferCallbacks.pfnTransferComplete = vboxClipboardTransferCompleteCallback;
     972               TransferCallbacks.pfnTransferError    = vboxClipboardTransferErrorCallback;
    973973
    974974               SharedClipboardTransferSetCallbacks(pTransfer, &TransferCallbacks);
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-internal.h

    r80862 r80866  
    197197
    198198# ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    199 int sharedClipboardSvcTransferTransferStart(PSHCLCLIENT pClient,
    200                                      SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource,
    201                                      PSHCLTRANSFER *ppTransfer);
     199int sharedClipboardSvcTransferStart(PSHCLCLIENT pClient,
     200                                    SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource,
     201                                    PSHCLTRANSFER *ppTransfer);
     202int sharedClipboardSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer);
    202203bool sharedClipboardSvcTransferMsgIsAllowed(uint32_t uMode, uint32_t uMsg);
    203204# endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
     
    222223
    223224#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    224 int sharedClipboardSvcTransferTransferOpen(PSHCLPROVIDERCTX pCtx);
    225 DECLCALLBACK(int) sharedClipboardSvcTransferTransferClose(PSHCLPROVIDERCTX pCtx);
     225int sharedClipboardSvcTransferOpen(PSHCLPROVIDERCTX pCtx);
     226DECLCALLBACK(int) sharedClipboardSvcTransferClose(PSHCLPROVIDERCTX pCtx);
    226227
    227228int sharedClipboardSvcTransferGetRoots(PSHCLPROVIDERCTX pCtx, PSHCLROOTLIST *ppRootList);
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp

    r80862 r80866  
    5858*********************************************************************************************************************************/
    5959
    60 DECLCALLBACK(int) sharedClipboardSvcTransferTransferOpen(PSHCLPROVIDERCTX pCtx)
     60DECLCALLBACK(int) sharedClipboardSvcTransferOpen(PSHCLPROVIDERCTX pCtx)
    6161{
    6262    RT_NOREF(pCtx);
     
    6666}
    6767
    68 DECLCALLBACK(int) sharedClipboardSvcTransferTransferClose(PSHCLPROVIDERCTX pCtx)
     68DECLCALLBACK(int) sharedClipboardSvcTransferClose(PSHCLPROVIDERCTX pCtx)
    6969{
    7070    RT_NOREF(pCtx);
     
    11621162 * @param   paParms             Array function parameters supplied.
    11631163 */
    1164 static int sharedClipboardSvcTransferTransferHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer,
    1165                                                          uint32_t cParms, VBOXHGCMSVCPARM paParms[])
     1164static int sharedClipboardSvcTransferHandleReply(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer,
     1165                                                 uint32_t cParms, VBOXHGCMSVCPARM paParms[])
    11661166{
    11671167    RT_NOREF(pClient);
     
    13661366                        creationCtx.enmSource = pClient->State.enmSource;
    13671367
    1368                         creationCtx.Interface.pfnTransferOpen  = sharedClipboardSvcTransferTransferOpen;
    1369                         creationCtx.Interface.pfnTransferClose = sharedClipboardSvcTransferTransferClose;
     1368                        creationCtx.Interface.pfnTransferOpen  = sharedClipboardSvcTransferOpen;
     1369                        creationCtx.Interface.pfnTransferClose = sharedClipboardSvcTransferClose;
    13701370                        creationCtx.Interface.pfnListOpen      = sharedClipboardSvcTransferListOpen;
    13711371                        creationCtx.Interface.pfnListClose     = sharedClipboardSvcTransferListClose;
     
    14311431        case VBOX_SHCL_GUEST_FN_REPLY:
    14321432        {
    1433             rc = sharedClipboardSvcTransferTransferHandleReply(pClient, pTransfer, cParms, paParms);
     1433            rc = sharedClipboardSvcTransferHandleReply(pClient, pTransfer, cParms, paParms);
    14341434
    14351435            /* This message does not need any completion, as it can happen at any time from the guest side. */
     
    20992099 * @param   puEvent             Where to store the created wait event. Optional.
    21002100 */
    2101 int sharedClipboardSvcTransferTransferSendStatus(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus,
    2102                                                  int rcTransfer, PSHCLEVENTID puEvent)
     2101int sharedClipboardSvcTransferSendStatus(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer, SHCLTRANSFERSTATUS uStatus,
     2102                                         int rcTransfer, PSHCLEVENTID puEvent)
    21032103{
    21042104    AssertPtrReturn(pClient,   VERR_INVALID_POINTER);
     
    21532153 * @param   ppTransfer          Where to return the created transfer on success. Optional.
    21542154 */
    2155 int sharedClipboardSvcTransferTransferStart(PSHCLCLIENT pClient,
    2156                                             SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource,
    2157                                             PSHCLTRANSFER *ppTransfer)
     2155int sharedClipboardSvcTransferStart(PSHCLCLIENT pClient,
     2156                                    SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource,
     2157                                    PSHCLTRANSFER *ppTransfer)
    21582158{
    21592159    AssertPtrReturn(pClient, VERR_INVALID_POINTER);
     
    21822182                if (RT_SUCCESS(rc))
    21832183                {
    2184                     creationCtx.Interface.pfnTransferOpen    = sharedClipboardSvcTransferTransferOpen;
    2185                     creationCtx.Interface.pfnTransferClose   = sharedClipboardSvcTransferTransferClose;
     2184                    creationCtx.Interface.pfnTransferOpen    = sharedClipboardSvcTransferOpen;
     2185                    creationCtx.Interface.pfnTransferClose   = sharedClipboardSvcTransferClose;
    21862186                    creationCtx.Interface.pfnListOpen        = sharedClipboardSvcTransferListOpen;
    21872187                    creationCtx.Interface.pfnListClose       = sharedClipboardSvcTransferListClose;
     
    22352235                        {
    22362236                            SHCLEVENTID uEvent;
    2237                             rc = sharedClipboardSvcTransferTransferSendStatus(pClient, pTransfer,
    2238                                                                               SHCLTRANSFERSTATUS_READY, VINF_SUCCESS,
    2239                                                                               &uEvent);
     2237                            rc = sharedClipboardSvcTransferSendStatus(pClient, pTransfer,
     2238                                                                      SHCLTRANSFERSTATUS_READY, VINF_SUCCESS,
     2239                                                                      &uEvent);
    22402240                            if (RT_SUCCESS(rc))
    22412241                            {
     
    23042304 * @param   pTransfer           Transfer to stop.
    23052305 */
    2306 int sharedClipboardSvcTransferTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)
     2306int sharedClipboardSvcTransferStop(PSHCLCLIENT pClient, PSHCLTRANSFER pTransfer)
    23072307{
    23082308    int rc = SharedClipboardTransferClose(pTransfer);
     
    23102310    {
    23112311        SHCLEVENTID uEvent;
    2312         rc = sharedClipboardSvcTransferTransferSendStatus(pClient, pTransfer,
    2313                                                           SHCLTRANSFERSTATUS_STOPPED, VINF_SUCCESS,
    2314                                                           &uEvent);
     2312        rc = sharedClipboardSvcTransferSendStatus(pClient, pTransfer,
     2313                                                  SHCLTRANSFERSTATUS_STOPPED, VINF_SUCCESS,
     2314                                                  &uEvent);
    23152315        if (RT_SUCCESS(rc))
    23162316        {
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r80862 r80866  
    340340            {
    341341                PSHCLTRANSFER pTransfer;
    342                 int rc = sharedClipboardSvcTransferTransferStart(pCtx->pClient,
    343                                                                  SHCLTRANSFERDIR_READ, SHCLSOURCE_REMOTE,
    344                                                                  &pTransfer);
     342                int rc = sharedClipboardSvcTransferStart(pCtx->pClient,
     343                                                         SHCLTRANSFERDIR_READ, SHCLSOURCE_REMOTE,
     344                                                         &pTransfer);
    345345                if (RT_SUCCESS(rc))
    346346                {
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r80862 r80866  
    13781378                    if (uFormat == VBOX_SHCL_FMT_URI_LIST)
    13791379                    {
    1380                         rc = sharedClipboardSvcTransferTransferStart(pClient, SHCLTRANSFERDIR_WRITE, SHCLSOURCE_LOCAL,
    1381                                                                      NULL /* pTransfer */);
     1380                        rc = sharedClipboardSvcTransferStart(pClient, SHCLTRANSFERDIR_WRITE, SHCLSOURCE_LOCAL,
     1381                                                             NULL /* pTransfer */);
    13821382                        if (RT_FAILURE(rc))
    13831383                            LogRel(("Shared Clipboard: Initializing host write transfer failed with %Rrc\n", rc));
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