Changeset 82525 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- Dec 9, 2019 7:48:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r82515 r82525 293 293 ClipboardClientQueue g_listClientsDeferred; 294 294 295 /** Host feature mask for VBOX_SHCL_GUEST_FN_REPORT_FEATURES/VBOX_SHCL_GUEST_FN_QUERY_FEATURES. */ 296 static uint64_t const g_fHostFeatures0 = VBOX_SHCL_HF_NONE; 295 /** Host feature mask (VBOX_SHCL_HF_0_XXX) for VBOX_SHCL_GUEST_FN_REPORT_FEATURES 296 * and VBOX_SHCL_GUEST_FN_QUERY_FEATURES. */ 297 static uint64_t const g_fHostFeatures0 = VBOX_SHCL_HF_0_CONTEXT_ID; 297 298 298 299 … … 1849 1850 1850 1851 case VBOX_SHCL_GUEST_FN_CONNECT: 1851 { 1852 if (cParms != VBOX_SHCL_CPARMS_CONNECT) 1853 { 1854 rc = VERR_INVALID_PARAMETER; 1855 } 1856 else if ( paParms[0].type != VBOX_HGCM_SVC_PARM_32BIT /* cbChunkSize */ 1857 || paParms[1].type != VBOX_HGCM_SVC_PARM_32BIT /* enmCompression */ 1858 || paParms[2].type != VBOX_HGCM_SVC_PARM_32BIT) /* enmChecksumType */ 1859 { 1860 rc = VERR_INVALID_PARAMETER; 1861 } 1862 else if (ShClSvcGetMode() == VBOX_SHCL_MODE_OFF) 1863 { 1864 rc = VERR_ACCESS_DENIED; 1865 } 1866 else 1867 { 1868 /* Report back supported chunk size to the guest. */ 1869 HGCMSvcSetU32(&paParms[0], _64K); /* Chunk size */ /** @todo Make chunk size dynamic. */ 1870 1871 rc = VINF_SUCCESS; 1872 } 1852 LogRel(("6.1.0 beta or rc additions detected. Please upgrade!\n")); 1853 rc = VERR_NOT_IMPLEMENTED; 1873 1854 break; 1874 }1875 1855 1876 1856 case VBOX_SHCL_GUEST_FN_REPORT_FEATURES:
Note:
See TracChangeset
for help on using the changeset viewer.