Changeset 81768 in vbox for trunk/include/VBox/HostServices
- Timestamp:
- Nov 11, 2019 4:36:41 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134559
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r81748 r81768 66 66 * We're using it as a version field with the high bit set. 67 67 */ 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) 68 74 /** Older saved states (VBox < 6.1). Includes legacy protocol state. */ 69 75 #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)72 76 73 77 /* … … 306 310 * Formely known as VBOX_SHCL_GUEST_FN_REPORT_FORMATS. */ 307 311 #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 */ 309 321 #define VBOX_SHCL_GUEST_FN_DATA_READ 3 310 322 /** Writes data in requested format to the host. */ … … 541 553 /** No flags set. */ 542 554 #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. */ 544 557 #define VBOX_SHCL_GF_0_CONTEXT_ID RT_BIT_64(0) 545 558 /** Bit that must be set in the 2nd parameter, will be cleared if the host reponds … … 635 648 /** uint64_t, out: Context ID. */ 636 649 HGCMFunctionParameter uContext; 650 /** uint32_t, out: Request flags; currently unused and must be set to 0. */ 651 HGCMFunctionParameter fFlags; 637 652 /** uint32_t, out: Requested format to read data in. */ 638 653 HGCMFunctionParameter uFormat; … … 641 656 } VBoxShClReadDataReqMsg; 642 657 643 #define VBOX_SHCL_CPARMS_READ_DATA_REQ 2658 #define VBOX_SHCL_CPARMS_READ_DATA_REQ 4 644 659 645 660 /** … … 650 665 VBGLIOCHGCMCALL hdr; 651 666 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; 661 698 } VBoxShClReadDataMsg; 662 699 663 #define VBOX_SHCL_CPARMS_READ_DATA 3700 #define VBOX_SHCL_CPARMS_READ_DATA 5 664 701 665 702 /** … … 683 720 /** uint64_t, out: Context ID. */ 684 721 HGCMFunctionParameter uContext; 722 /** uint32_t, out: Write flags; currently unused and must be set to 0. */ 723 HGCMFunctionParameter fFlags; 685 724 /** uint32_t, out: Requested format to read data in. */ 686 725 HGCMFunctionParameter uFormat; … … 693 732 } VBoxShClWriteDataMsg; 694 733 695 #define VBOX_SHCL_CPARMS_WRITE_DATA 4734 #define VBOX_SHCL_CPARMS_WRITE_DATA 5 696 735 697 736 /**
Note:
See TracChangeset
for help on using the changeset viewer.