Changeset 99405 in vbox for trunk/src/VBox/GuestHost/SharedClipboard
- Timestamp:
- Apr 14, 2023 3:43:12 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156855
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r99403 r99405 1165 1165 1166 1166 /** 1167 * Creates a clipboard transfer. 1168 * 1169 * @returns VBox status code. 1167 * Creates a clipboard transfer, extended version. 1168 * 1169 * @returns VBox status code. 1170 * @param cbMaxChunkSize Maximum transfer chunk size (in bytes) to use. 1171 * @param cMaxListHandles Maximum list entries the transfer can have. 1172 * @param cMaxObjHandles Maximum transfer objects the transfer can have. 1170 1173 * @param ppTransfer Where to return the created clipboard transfer struct. 1171 1174 * Must be destroyed by ShClTransferDestroy(). 1172 1175 */ 1173 int ShClTransferCreate(PSHCLTRANSFER *ppTransfer) 1174 { 1176 int ShClTransferCreateEx(uint32_t cbMaxChunkSize, uint32_t cMaxListHandles, uint32_t cMaxObjHandles, 1177 PSHCLTRANSFER *ppTransfer) 1178 { 1179 1180 1175 1181 AssertPtrReturn(ppTransfer, VERR_INVALID_POINTER); 1176 1182 … … 1197 1203 pTransfer->uTimeoutMs = RT_MS_30SEC; 1198 1204 #endif 1199 pTransfer->cbMaxChunkSize = _64K; /** @todo Make this configurable. */1200 pTransfer->cMaxListHandles = _4K; /** @todo Ditto. */1201 pTransfer->cMaxObjHandles = _4K; /** @todo Ditto. */1205 pTransfer->cbMaxChunkSize = cbMaxChunkSize; 1206 pTransfer->cMaxListHandles = cMaxListHandles; 1207 pTransfer->cMaxObjHandles = cMaxObjHandles; 1202 1208 1203 1209 pTransfer->pvUser = NULL; … … 1226 1232 LogFlowFuncLeaveRC(rc); 1227 1233 return rc; 1234 } 1235 1236 /** 1237 * Creates a clipboard transfer with default settings. 1238 * 1239 * @returns VBox status code. 1240 * @param ppTransfer Where to return the created clipboard transfer struct. 1241 * Must be destroyed by ShClTransferDestroy(). 1242 */ 1243 int ShClTransferCreate(PSHCLTRANSFER *ppTransfer) 1244 { 1245 return ShClTransferCreateEx(SHCL_TRANSFER_DEFAULT_MAX_CHUNK_SIZE, 1246 SHCL_TRANSFER_DEFAULT_MAX_LIST_HANDLES, 1247 SHCL_TRANSFER_DEFAULT_MAX_OBJ_HANDLES, 1248 ppTransfer); 1228 1249 } 1229 1250
Note:
See TracChangeset
for help on using the changeset viewer.