VirtualBox

Changeset 83624 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Apr 8, 2020 4:29:25 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137054
Message:

SharedClipboard: Eliminated SHCLFORMATDATA and did some minor darwin cleanups. bugref:9620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r82880 r83624  
    253253 *
    254254 * @returns VBox status code.
    255  * @param   pCtx                Shared Clipboard command context to use for the connection.
    256  * @param   pFormats            Where to store the received formats from the host.
    257  */
    258 static int vbglR3ClipboardFormatsReportRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLFORMATDATA pFormats)
    259 {
    260     AssertPtrReturn(pCtx,     VERR_INVALID_POINTER);
    261     AssertPtrReturn(pFormats, VERR_INVALID_POINTER);
    262 
    263     pFormats->fFlags = 0;
    264     pFormats->Formats = 0;
     255 * @param   pCtx        Shared Clipboard command context to use for the
     256 *                      connection.
     257 * @param   pfFormats   Where to store the received formats from the host.
     258 */
     259static int vbglR3ClipboardFormatsReportRecv(PVBGLR3SHCLCMDCTX pCtx, PSHCLFORMATS pfFormats)
     260{
     261    AssertPtrReturn(pCtx, VERR_INVALID_POINTER);
     262    AssertPtrReturn(pfFormats, VERR_INVALID_POINTER);
     263
     264    *pfFormats = 0;
    265265
    266266    struct
     
    278278    if (RT_SUCCESS(rc))
    279279    {
    280         rc = Msg.f32Formats.GetUInt32(&pFormats->Formats);
     280        rc = Msg.f32Formats.GetUInt32(pfFormats);
    281281        AssertRC(rc);
    282282    }
     
    23322332            case VBOX_SHCL_HOST_MSG_FORMATS_REPORT:
    23332333                pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_REPORT_FORMATS;
    2334                 pEvent->u.ReportedFormats.Formats = cParms;
     2334                pEvent->u.fReportedFormats = cParms;
    23352335                break;
    23362336
     
    23722372            case VBOX_SHCL_HOST_MSG_FORMATS_REPORT:
    23732373            {
    2374                 rc = vbglR3ClipboardFormatsReportRecv(pCtx, &pEvent->u.ReportedFormats);
     2374                rc = vbglR3ClipboardFormatsReportRecv(pCtx, &pEvent->u.fReportedFormats);
    23752375                if (RT_SUCCESS(rc))
    23762376                    pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_REPORT_FORMATS;
     
    24322432            case VBOX_SHCL_HOST_MSG_FORMATS_REPORT:
    24332433                pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_REPORT_FORMATS;
    2434                 pEvent->u.ReportedFormats.Formats = cParms;
     2434                pEvent->u.fReportedFormats = cParms;
    24352435                break;
    24362436
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette