VirtualBox

Changeset 81768 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
Nov 11, 2019 4:36:41 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134559
Message:

Shared Clipboard: Update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/VBoxClipboardSvc.h

    r81748 r81768  
    6666 * We're using it as a version field with the high bit set.
    6767 */
     68/** Latest Shared Clipboard SSM version. */
     69#define VBOX_SHCL_SSM_VER_LATEST     2
     70/** Adds the client's POD state and client state flags. */
     71#define VBOX_SHCL_SSM_VER_2          UINT32_C(0x80000004)
     72/** New saved state (since VBox 6.1 Beta 2). */
     73#define VBOX_SHCL_SSM_VER_1          UINT32_C(0x80000003)
    6874/** Older saved states (VBox < 6.1). Includes legacy protocol state. */
    6975#define VBOX_SHCL_SSM_VER_0          UINT32_C(0x80000002)
    70 /** New saved state (VBox >= 6.1). */
    71 #define VBOX_SHCL_SSM_VER_1          UINT32_C(0x80000003)
    7276
    7377/*
     
    306310 *  Formely known as VBOX_SHCL_GUEST_FN_REPORT_FORMATS. */
    307311#define VBOX_SHCL_GUEST_FN_FORMATS_REPORT         2
    308 /** Reads data in specified format from the host. */
     312/** Reads data in specified format from the host.
     313 *
     314 * @retval  VINF_SUCCESS on success.
     315 * @retval  For VBox >= 6.1: VINF_BUFFER_OVERLFLOW if not enough buffer space has been given to retrieve the actual data.
     316 *                           The call then must be repeated with a buffer size returned from the host in cbData.
     317 * @retval  VERR_INVALID_CLIENT_ID
     318 * @retval  VERR_WRONG_PARAMETER_COUNT
     319 * @retval  VERR_WRONG_PARAMETER_TYPE
     320 */
    309321#define VBOX_SHCL_GUEST_FN_DATA_READ              3
    310322/** Writes data in requested format to the host. */
     
    541553/** No flags set. */
    542554#define VBOX_SHCL_GF_NONE                         0
    543 /** Guest can handle context IDs (uint64_t, in paParam[0]). */
     555/** Guest can handle context IDs (uint64_t, in paParam[0]).
     556 *  This is true for Guest Additions < 6.1. */
    544557#define VBOX_SHCL_GF_0_CONTEXT_ID                 RT_BIT_64(0)
    545558/** Bit that must be set in the 2nd parameter, will be cleared if the host reponds
     
    635648    /** uint64_t, out: Context ID. */
    636649    HGCMFunctionParameter uContext;
     650    /** uint32_t, out: Request flags; currently unused and must be set to 0. */
     651    HGCMFunctionParameter fFlags;
    637652    /** uint32_t, out: Requested format to read data in. */
    638653    HGCMFunctionParameter uFormat;
     
    641656} VBoxShClReadDataReqMsg;
    642657
    643 #define VBOX_SHCL_CPARMS_READ_DATA_REQ 2
     658#define VBOX_SHCL_CPARMS_READ_DATA_REQ 4
    644659
    645660/**
     
    650665    VBGLIOCHGCMCALL hdr;
    651666
    652     /** uint32_t, out: Requested format. */
    653     HGCMFunctionParameter format; /* IN uint32_t */
    654     /** ptr, out: The data buffer. */
    655     HGCMFunctionParameter ptr;    /* IN linear pointer. */
    656     /** uint32_t, out: Size of returned data, if > ptr->cb, then no data was
    657      *  actually transferred and the guest must repeat the call.
    658      */
    659     HGCMFunctionParameter size;   /* OUT uint32_t */
    660 
     667    union
     668    {
     669        struct
     670        {
     671            /** uint32_t, out: Requested format. */
     672            HGCMFunctionParameter format; /* IN uint32_t */
     673            /** ptr, out: The data buffer. */
     674            HGCMFunctionParameter ptr;    /* IN linear pointer. */
     675            /** uint32_t, out: Size of returned data, if > ptr->cb, then no data was
     676             *  actually transferred and the guest must repeat the call.
     677             */
     678            HGCMFunctionParameter size;   /* OUT uint32_t */
     679        } v0;
     680        struct
     681        {
     682            /** uint64_t, out: Context ID. */
     683            HGCMFunctionParameter uContext;
     684            /** uint32_t, out: Read flags; currently unused and must be set to 0. */
     685            HGCMFunctionParameter fFlags;
     686            /** uint32_t, out: Requested format. */
     687            HGCMFunctionParameter uFormat;
     688            /** uint32_t, in/out:
     689             *  On input:  How much data to read max.
     690             *  On output: Size of returned data, if > ptr->cb, then no data was
     691             *  actually transferred and the guest must repeat the call.
     692             */
     693            HGCMFunctionParameter cbData;
     694            /** ptr, out: The data buffer. */
     695            HGCMFunctionParameter pvData;
     696        } v1;
     697    } u;
    661698} VBoxShClReadDataMsg;
    662699
    663 #define VBOX_SHCL_CPARMS_READ_DATA 3
     700#define VBOX_SHCL_CPARMS_READ_DATA 5
    664701
    665702/**
     
    683720            /** uint64_t, out: Context ID. */
    684721            HGCMFunctionParameter uContext;
     722            /** uint32_t, out: Write flags; currently unused and must be set to 0. */
     723            HGCMFunctionParameter fFlags;
    685724            /** uint32_t, out: Requested format to read data in. */
    686725            HGCMFunctionParameter uFormat;
     
    693732} VBoxShClWriteDataMsg;
    694733
    695 #define VBOX_SHCL_CPARMS_WRITE_DATA 4
     734#define VBOX_SHCL_CPARMS_WRITE_DATA 5
    696735
    697736/**
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