VirtualBox

Changeset 87686 in vbox


Ignore:
Timestamp:
Feb 10, 2021 1:17:50 PM (4 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Renaming. ​bugref:9437

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r87658 r87686  
    957957
    958958#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    959 int ShClHttpTransferCreate(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer);
    960 int ShClHttpTransferDestroy(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer);
     959int ShClHttpTransferRegister(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer);
     960int ShClHttpTransferUnregister(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer);
    961961
    962962int ShClTransferHttpServerCreate(PSHCLHTTPSERVER pSrv, uint16_t *puPort);
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers-http.cpp

    r87658 r87686  
    8585*********************************************************************************************************************************/
    8686
    87 int ShClHttpTransferCreate(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer)
     87/**
     88 * Registers a Shared Clipboard transfer to a HTTP context.
     89 *
     90 * @returns VBox status code.
     91 * @param   pCtx                HTTP context to register transfer for.
     92 * @param   pTransfer           Transfer to register.
     93 */
     94int ShClHttpTransferRegister(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer)
    8895{
    8996    int rc = VINF_SUCCESS;
     
    99106}
    100107
    101 int ShClHttpTransferDestroy(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer)
     108/**
     109 * Unregisters a formerly registered Shared Clipboard transfer.
     110 *
     111 * @returns VBox status code.
     112 * @param   pCtx                HTTP context to unregister transfer from.
     113 * @param   pTransfer           Transfer to unregister.
     114 */
     115int ShClHttpTransferUnregister(PSHCLHTTPCONTEXT pCtx, PSHCLTRANSFER pTransfer)
    102116{
    103117    int rc = VINF_SUCCESS;
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r87566 r87686  
    396396{
    397397#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    398     return ShClHttpTransferCreate(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
     398    return ShClHttpTransferRegister(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
    399399#else
    400400    RT_NOREF(pClient, pTransfer);
     
    406406{
    407407#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    408     return ShClHttpTransferDestroy(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
     408    return ShClHttpTransferUnregister(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
    409409#else
    410410    RT_NOREF(pClient, pTransfer);
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