VirtualBox

Changeset 100205 in vbox for trunk


Ignore:
Timestamp:
Jun 19, 2023 10:25:09 AM (18 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Unified root list entry code to also use the generic list entry code, a lot of updates for the cross OS transfer handling code, more updates for HTTP server transfer handling. This also changed the handling of how that transfers are being initiated, as we needed to have this for X11: Before, transfers were initiated as soon as on side announced the URI list format -- now we postpone initiating the transfer until the receiving side requests the data as URI list [build fix]. ​bugref:9437

Location:
trunk
Files:
8 edited

Legend:

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

    r100204 r100205  
    823823 * All callbacks are optional (hence all returning void).
    824824 */
    825 typedef struct _SHCLTRANSFERCALLBACKTABLE
     825typedef struct _SHCLTRANSFERCALLBACKS
    826826{
    827827    /**
     
    877877    /** Size (in bytes) of data pointer at \a pvUser. */
    878878    size_t cbUser;
    879 } SHCLTRANSFERCALLBACKTABLE;
     879} SHCLTRANSFERCALLBACKS;
    880880/** Pointer to a Shared Clipboard transfer callback table. */
    881 typedef SHCLTRANSFERCALLBACKTABLE *PSHCLTRANSFERCALLBACKS;
     881typedef SHCLTRANSFERCALLBACKS *PSHCLTRANSFERCALLBACKS;
    882882
    883883/**
     
    945945    SHCLTRANSFERCALLBACKCTX   CallbackCtx;
    946946    /** The transfer's callback table. */
    947     SHCLTRANSFERCALLBACKTABLE Callbacks;
     947    SHCLTRANSFERCALLBACKS    Callbacks;
    948948    /** Opaque pointer to implementation-specific parameters. */
    949949    void                     *pvUser;
  • trunk/include/VBox/VBoxGuestLib.h

    r100204 r100205  
    605605    uint32_t                    cbMaxChunkSize;
    606606    /** Optional callbacks to invoke. */
    607     SHCLTRANSFERCALLBACKTABLE   Callbacks;
     607    SHCLTRANSFERCALLBACKS       Callbacks;
    608608} VBGLR3SHCLTRANSFERCTX;
    609609/** Pointer to a Shared Clipboard transfer context. */
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r100204 r100205  
    218218
    219219/**
    220  * @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnStart
     220 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnStart
    221221 *
    222222 * Called from VbglR3 (main thread) to notify the IDataObject.
     
    268268}
    269269
    270 /** @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnCompleted */
     270/** @copydoc SHCLTRANSFERCALLBACKS::pfnOnCompleted */
    271271static DECLCALLBACK(void) vbtrShClTransferCompletedCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx, int rcCompletion)
    272272{
     
    280280}
    281281
    282 /** @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnError */
     282/** @copydoc SHCLTRANSFERCALLBACKS::pfnOnError */
    283283static DECLCALLBACK(void) vbtrShClTransferErrorCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx, int rcError)
    284284{
     
    647647                    rc = SharedClipboardWinTransferCreateAndSetDataObject(pWinCtx, pCtx, &Callbacks);
    648648                }
     649#else
     650                RT_NOREF(rc);
    649651#endif
    650652            }
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard-x11.cpp

    r100204 r100205  
    105105
    106106/**
    107  * @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnRegistered
     107 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnRegistered
    108108 *
    109109 * This starts the HTTP server if not done yet and registers the transfer with it.
     
    166166
    167167/**
    168  * @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnUnregistered
     168 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnUnregistered
    169169 *
    170170 * Unregisters a (now) unregistered transfer from the HTTP server.
     
    179179
    180180/**
    181  * @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnCompleted
     181 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnCompleted
    182182 *
    183183 * Unregisters a complete transfer from the HTTP server.
     
    191191}
    192192
    193 /** @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnError
     193/** @copydoc SHCLTRANSFERCALLBACKS::pfnOnError
    194194 *
    195195 * Unregisters a failed transfer from the HTTP server.
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardDataObjectImpl-win.cpp

    r100204 r100205  
    4141
    4242#include <iprt/asm.h>
    43 #include <iprt/err.h>
     43#include <iprt/errcore.h>
    4444#include <iprt/path.h>
    4545#include <iprt/semaphore.h>
     
    11731173    return rc2;
    11741174}
    1175 
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r100204 r100205  
    14401440    }
    14411441    else /* Unset */
    1442         RT_BZERO(pCallbacksDst, sizeof(SHCLTRANSFERCALLBACKTABLE));
     1442        RT_BZERO(pCallbacksDst, sizeof(SHCLTRANSFERCALLBACKS));
    14431443}
    14441444
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-internal.h

    r100204 r100205  
    187187    SHCLTRANSFERCTX             Ctx;
    188188    /** Transfers callbacks to use. */
    189     SHCLTRANSFERCALLBACKTABLE   Callbacks;
     189    SHCLTRANSFERCALLBACKS       Callbacks;
    190190} SHCLIENTTRANSFERS, *PSHCLIENTTRANSFERS;
    191191#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r100204 r100205  
    228228}
    229229
     230
     231#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    230232/**
    231  * @copydoc SHCLTRANSFERCALLBACKTABLE::pfnOnStart
     233 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnStart
    232234 *
    233235 * Called on transfer start to notify the "in-flight" IDataObject about a started transfer.
     
    271273    LogFlowFunc(("LEAVE: idTransfer=%RU32, rc=%Rrc\n", ShClTransferGetID(pTransfer), rc));
    272274}
     275#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
    273276
    274277static LRESULT CALLBACK vboxClipboardSvcWinWndProcMain(PSHCLCONTEXT pCtx,
     
    10041007}
    10051008#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
    1006 
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