VirtualBox

Changeset 82480 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 7, 2019 12:32:57 AM (5 years ago)
Author:
vboxsync
Message:

GuestHost/SharedClipboard.h: Got rid of all the leading underscores that I could spot. Shuffled the members of SHCLDATABLOCK so we save 8 bytes on 64-bit machines. bugref:9437

Location:
trunk/src/VBox
Files:
5 edited

Legend:

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

    r82462 r82480  
    5151*   Structures and Typedefs                                                                                                      *
    5252*********************************************************************************************************************************/
    53 
    54 typedef struct _SHCLCONTEXT
     53struct SHCLCONTEXT
    5554{
    5655    /** Pointer to the VBoxClient service environment. */
     
    7069    SHCLTRANSFERCTX       TransferCtx;
    7170#endif
    72 } SHCLCONTEXT, *PSHCLCONTEXT;
     71};
    7372
    7473
     
    579578                        if (lp != NULL)
    580579                        {
    581                             SHCLDATABLOCK dataBlock = { uFormat, lp, (uint32_t)GlobalSize(hClip) };
     580                            SHCLDATABLOCK dataBlock;
     581                            dataBlock.uFormat = uFormat;
     582                            dataBlock.pvData  = lp;
     583                            dataBlock.cbData  = (uint32_t)GlobalSize(hClip);
    582584
    583585                            rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, &dataBlock);
     
    599601                        if (uniString != NULL)
    600602                        {
    601                             SHCLDATABLOCK dataBlock = { uFormat, uniString, ((uint32_t)lstrlenW(uniString) + 1) * 2 };
     603                            SHCLDATABLOCK dataBlock;
     604                            dataBlock.uFormat = uFormat;
     605                            dataBlock.pvData  = uniString;
     606                            dataBlock.cbData  = ((uint32_t)lstrlenW(uniString) + 1) * 2;
    602607
    603608                            rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, &dataBlock);
     
    623628                            if (lp != NULL)
    624629                            {
    625                                 SHCLDATABLOCK dataBlock = { uFormat, lp, (uint32_t)GlobalSize(hClip) };
     630                                SHCLDATABLOCK dataBlock;
     631                                dataBlock.uFormat = uFormat;
     632                                dataBlock.pvData  = lp;
     633                                dataBlock.cbData  = (uint32_t)GlobalSize(hClip);
    626634
    627635                                rc = VbglR3ClipboardWriteDataEx(&pEvent->cmdCtx, &dataBlock);
  • trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp

    r82315 r82480  
    5959 * Global clipboard context information.
    6060 */
    61 struct _SHCLCONTEXT
     61struct SHCLCONTEXT
    6262{
    6363    /** Client command context */
     
    166166 * it can be completed correctly.
    167167 */
    168 struct _CLIPREADCBREQ
     168struct CLIPREADCBREQ
    169169{
    170170    /** The data format that was requested. */
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-darwin.cpp

    r81843 r82480  
    3535*********************************************************************************************************************************/
    3636/** Global clipboard context information */
    37 struct _SHCLCONTEXT
     37struct SHCLCONTEXT
    3838{
    3939    /** We have a separate thread to poll for new clipboard content */
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r82462 r82480  
    5555static int vboxClipboardSvcWinSyncInternal(PSHCLCONTEXT pCtx);
    5656
    57 struct _SHCLCONTEXT
     57struct SHCLCONTEXT
    5858{
    5959    /** Handle for window message handling thread. */
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r82266 r82480  
    3939*   Structures and Typedefs                                                                                                      *
    4040*********************************************************************************************************************************/
    41 
    4241/**
    4342 * Global context information used by the host glue for the X11 clipboard backend.
    4443 */
    45 struct _SHCLCONTEXT
     44struct SHCLCONTEXT
    4645{
    4746    /** This mutex is grabbed during any critical operations on the clipboard
     
    164163
    165164/** Structure describing a request for clipoard data from the guest. */
    166 struct _CLIPREADCBREQ
     165struct CLIPREADCBREQ
    167166{
    168167    /** User-supplied data pointer, based on the request type. */
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