Changeset 80858 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Sep 17, 2019 1:03:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r80849 r80858 436 436 int rc; 437 437 438 PSHCLROOTLIST pRootList = SharedClipboard URIRootListAlloc();438 PSHCLROOTLIST pRootList = SharedClipboardTransferRootListAlloc(); 439 439 if (pRootList) 440 440 { … … 469 469 } 470 470 else 471 SharedClipboard URIRootListFree(pRootList);471 SharedClipboardTransferRootListFree(pRootList); 472 472 } 473 473 else … … 479 479 480 480 VBGLR3DECL(int) VbglR3ClipboarTransferStatusRecv(PVBGLR3SHCLCMDCTX pCtx, 481 PSHCL URITRANSFERDIR pEnmDir, PSHCLURITRANSFERREPORT pReport)481 PSHCLTRANSFERDIR pEnmDir, PSHCLTRANSFERREPORT pReport) 482 482 { 483 483 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 491 491 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_TRANSFER_STATUS); 492 492 493 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_TRANSFER_STATUS);493 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_TRANSFER_STATUS); 494 494 Msg.enmDir.SetUInt32(0); 495 495 Msg.enmStatus.SetUInt32(0); … … 515 515 } 516 516 517 VBGLR3DECL(int) VbglR3ClipboardTransferStatusReply(PVBGLR3SHCLCMDCTX pCtx, PSHCL URITRANSFER pTransfer,518 SHCL URITRANSFERSTATUS uStatus, int rcTransfer)517 VBGLR3DECL(int) VbglR3ClipboardTransferStatusReply(PVBGLR3SHCLCMDCTX pCtx, PSHCLTRANSFER pTransfer, 518 SHCLTRANSFERSTATUS uStatus, int rcTransfer) 519 519 { 520 520 AssertPtrReturn(pCtx, VERR_INVALID_POINTER); … … 556 556 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_ROOT_LIST_HDR_READ); 557 557 558 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_ROOT_LIST_HDR_READ);558 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_HDR_READ); 559 559 Msg.ReqParms.fRoots.SetUInt32(0); 560 560 … … 605 605 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_ROOT_LIST_ENTRY_READ_REQ); 606 606 607 Msg.Parms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_ROOT_LIST_ENTRY_READ);607 Msg.Parms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_ENTRY_READ); 608 608 Msg.Parms.fInfo.SetUInt32(0); 609 609 Msg.Parms.uIndex.SetUInt32(0); … … 689 689 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_LIST_OPEN); 690 690 691 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_LIST_OPEN);691 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN); 692 692 Msg.fList.SetUInt32(0); 693 693 Msg.cbPath.SetUInt32(pOpenParms->cbPath); … … 748 748 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_LIST_CLOSE); 749 749 750 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_LIST_CLOSE);750 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_CLOSE); 751 751 Msg.uHandle.SetUInt64(0); 752 752 … … 795 795 796 796 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, 797 VBOX_SHCL_HOST_MSG_ URI_LIST_CLOSE, VBOX_SHCL_CPARMS_LIST_CLOSE);797 VBOX_SHCL_HOST_MSG_TRANSFER_LIST_CLOSE, VBOX_SHCL_CPARMS_LIST_CLOSE); 798 798 799 799 Msg.uContext.SetUInt32(pCtx->uContextID); … … 854 854 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_LIST_HDR_READ_REQ); 855 855 856 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_LIST_HDR_READ);856 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_READ); 857 857 Msg.ReqParms.uHandle.SetUInt64(0); 858 858 Msg.ReqParms.fFlags.SetUInt32(0); … … 941 941 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_LIST_ENTRY_READ); 942 942 943 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_LIST_ENTRY_READ);943 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_READ); 944 944 Msg.ReqParms.uHandle.SetUInt64(0); 945 945 Msg.ReqParms.fInfo.SetUInt32(0); … … 996 996 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_OBJ_OPEN); 997 997 998 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_OBJ_OPEN);998 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN); 999 999 Msg.uHandle.SetUInt64(0); 1000 1000 Msg.cbPath.SetUInt32(pCreateParms->cbPath); … … 1080 1080 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_OBJ_CLOSE); 1081 1081 1082 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_OBJ_CLOSE);1082 Msg.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_CLOSE); 1083 1083 Msg.uHandle.SetUInt64(0); 1084 1084 … … 1152 1152 VBOX_SHCL_GUEST_FN_MSG_GET, VBOX_SHCL_CPARMS_OBJ_READ_REQ); 1153 1153 1154 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_ URI_OBJ_READ);1154 Msg.ReqParms.uContext.SetUInt32(VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_READ); 1155 1155 Msg.ReqParms.uHandle.SetUInt64(0); 1156 1156 Msg.ReqParms.cbToRead.SetUInt32(0); … … 1255 1255 * @param ppTransfer Where to return the transfer object on success. Optional. 1256 1256 */ 1257 static int vbglR3ClipboardTransferStart(PVBGLR3SHCLCMDCTX pCmdCtx, PSHCL URICTX pTransferCtx,1258 SHCL URITRANSFERID uTransferID, SHCLURITRANSFERDIR enmDir, SHCLSOURCE enmSource,1259 PSHCL URITRANSFER *ppTransfer)1260 { 1261 PSHCL URITRANSFER pTransfer;1262 int rc = SharedClipboard URITransferCreate(&pTransfer);1263 if (RT_SUCCESS(rc)) 1264 { 1265 rc = SharedClipboard URICtxTransferRegisterByIndex(pTransferCtx, pTransfer, uTransferID);1266 if (RT_SUCCESS(rc)) 1267 { 1268 rc = SharedClipboard URITransferInit(pTransfer, uTransferID, enmDir, enmSource);1257 static int vbglR3ClipboardTransferStart(PVBGLR3SHCLCMDCTX pCmdCtx, PSHCLTRANSFERCTX pTransferCtx, 1258 SHCLTRANSFERID uTransferID, SHCLTRANSFERDIR enmDir, SHCLSOURCE enmSource, 1259 PSHCLTRANSFER *ppTransfer) 1260 { 1261 PSHCLTRANSFER pTransfer; 1262 int rc = SharedClipboardTransferCreate(&pTransfer); 1263 if (RT_SUCCESS(rc)) 1264 { 1265 rc = SharedClipboardTransferCtxTransferRegisterByIndex(pTransferCtx, pTransfer, uTransferID); 1266 if (RT_SUCCESS(rc)) 1267 { 1268 rc = SharedClipboardTransferInit(pTransfer, uTransferID, enmDir, enmSource); 1269 1269 if (RT_FAILURE(rc)) 1270 SharedClipboard URICtxTransferUnregister(pTransferCtx, uTransferID);1270 SharedClipboardTransferCtxTransferUnregister(pTransferCtx, uTransferID); 1271 1271 } 1272 1272 } … … 1285 1285 int rc2 = VbglR3ClipboardTransferStatusReply(pCmdCtx, pTransfer, 1286 1286 RT_SUCCESS(rc) 1287 ? SHCL URITRANSFERSTATUS_STARTED : SHCLURITRANSFERSTATUS_ERROR, rc);1287 ? SHCLTRANSFERSTATUS_STARTED : SHCLTRANSFERSTATUS_ERROR, rc); 1288 1288 AssertRC(rc2); 1289 1289 … … 1300 1300 * @param uTransferID ID of transfer to stop. 1301 1301 */ 1302 static int vbglR3ClipboardTransferStop(PVBGLR3SHCLCMDCTX pCmdCtx, PSHCL URICTX pTransferCtx,1303 SHCL URITRANSFERID uTransferID)1302 static int vbglR3ClipboardTransferStop(PVBGLR3SHCLCMDCTX pCmdCtx, PSHCLTRANSFERCTX pTransferCtx, 1303 SHCLTRANSFERID uTransferID) 1304 1304 { 1305 1305 int rc; 1306 1306 1307 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx, uTransferID);1307 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, uTransferID); 1308 1308 if (pTransfer) 1309 1309 { 1310 rc = SharedClipboard URITransferClose(pTransfer);1311 if (RT_SUCCESS(rc)) 1312 rc = SharedClipboard URICtxTransferUnregister(pTransferCtx, uTransferID);1310 rc = SharedClipboardTransferClose(pTransfer); 1311 if (RT_SUCCESS(rc)) 1312 rc = SharedClipboardTransferCtxTransferUnregister(pTransferCtx, uTransferID); 1313 1313 1314 1314 if (RT_SUCCESS(rc)) … … 1322 1322 int rc2 = VbglR3ClipboardTransferStatusReply(pCmdCtx, pTransfer, 1323 1323 RT_SUCCESS(rc) 1324 ? SHCL URITRANSFERSTATUS_STOPPED : SHCLURITRANSFERSTATUS_ERROR, rc);1324 ? SHCLTRANSFERSTATUS_STOPPED : SHCLTRANSFERSTATUS_ERROR, rc); 1325 1325 AssertRC(rc2); 1326 1326 } … … 1333 1333 1334 1334 VBGLR3DECL(int) VbglR3ClipboardEventGetNextEx(uint32_t idMsg, uint32_t cParms, 1335 PVBGLR3SHCLCMDCTX pCmdCtx, PSHCL URICTX pTransferCtx,1335 PVBGLR3SHCLCMDCTX pCmdCtx, PSHCLTRANSFERCTX pTransferCtx, 1336 1336 PVBGLR3CLIPBOARDEVENT pEvent) 1337 1337 { … … 1346 1346 switch (idMsg) 1347 1347 { 1348 case VBOX_SHCL_HOST_MSG_ URI_TRANSFER_STATUS:1349 { 1350 SHCL URITRANSFERDIR enmDir;1351 SHCL URITRANSFERREPORT transferReport;1348 case VBOX_SHCL_HOST_MSG_TRANSFER_TRANSFER_STATUS: 1349 { 1350 SHCLTRANSFERDIR enmDir; 1351 SHCLTRANSFERREPORT transferReport; 1352 1352 rc = VbglR3ClipboarTransferStatusRecv(pCmdCtx, &enmDir, &transferReport); 1353 1353 if (RT_SUCCESS(rc)) 1354 1354 { 1355 const SHCL URITRANSFERID uTransferID = VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID);1355 const SHCLTRANSFERID uTransferID = VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID); 1356 1356 1357 1357 LogFlowFunc(("[Transfer %RU16] %s\n", uTransferID, VBoxShClTransferStatusToStr(transferReport.uStatus))); … … 1359 1359 switch (transferReport.uStatus) 1360 1360 { 1361 case SHCL URITRANSFERSTATUS_READY:1361 case SHCLTRANSFERSTATUS_READY: 1362 1362 RT_FALL_THROUGH(); 1363 case SHCL URITRANSFERSTATUS_STARTED:1363 case SHCLTRANSFERSTATUS_STARTED: 1364 1364 { 1365 SHCLSOURCE enmSource = enmDir == SHCL URITRANSFERDIR_READ1365 SHCLSOURCE enmSource = enmDir == SHCLTRANSFERDIR_READ 1366 1366 ? SHCLSOURCE_LOCAL 1367 1367 : SHCLSOURCE_REMOTE; … … 1376 1376 } 1377 1377 1378 case SHCL URITRANSFERSTATUS_CANCELED:1378 case SHCLTRANSFERSTATUS_CANCELED: 1379 1379 RT_FALL_THROUGH(); 1380 case SHCL URITRANSFERSTATUS_KILLED:1380 case SHCLTRANSFERSTATUS_KILLED: 1381 1381 RT_FALL_THROUGH(); 1382 case SHCL URITRANSFERSTATUS_ERROR:1382 case SHCLTRANSFERSTATUS_ERROR: 1383 1383 { 1384 1384 rc = vbglR3ClipboardTransferStop(pCmdCtx, pTransferCtx, … … 1408 1408 } 1409 1409 1410 case VBOX_SHCL_HOST_MSG_ URI_ROOT_LIST_HDR_READ:1410 case VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_HDR_READ: 1411 1411 { 1412 1412 uint32_t fRoots; … … 1417 1417 if (RT_SUCCESS(rc)) 1418 1418 { 1419 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1420 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1419 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1420 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1421 1421 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1422 1422 … … 1424 1424 RT_ZERO(rootListHdr); 1425 1425 1426 rootListHdr.cRoots = SharedClipboard URILTransferRootsCount(pTransfer);1426 rootListHdr.cRoots = SharedClipboardTransferLTransferRootsCount(pTransfer); 1427 1427 1428 1428 LogFlowFunc(("cRoots=%RU32\n", rootListHdr.cRoots)); … … 1433 1433 } 1434 1434 1435 case VBOX_SHCL_HOST_MSG_ URI_ROOT_LIST_ENTRY_READ:1435 case VBOX_SHCL_HOST_MSG_TRANSFER_ROOT_LIST_ENTRY_READ: 1436 1436 { 1437 1437 uint32_t uIndex; … … 1440 1440 if (RT_SUCCESS(rc)) 1441 1441 { 1442 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1443 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1442 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1443 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1444 1444 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1445 1445 1446 1446 SHCLROOTLISTENTRY rootListEntry; 1447 rc = SharedClipboard URILTransferRootsEntry(pTransfer, uIndex, &rootListEntry);1447 rc = SharedClipboardTransferLTransferRootsEntry(pTransfer, uIndex, &rootListEntry); 1448 1448 if (RT_SUCCESS(rc)) 1449 1449 rc = VbglR3ClipboardRootListEntryReadReply(pCmdCtx, uIndex, &rootListEntry); … … 1452 1452 } 1453 1453 1454 case VBOX_SHCL_HOST_MSG_ URI_LIST_OPEN:1454 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_OPEN: 1455 1455 { 1456 1456 SHCLLISTOPENPARMS openParmsList; 1457 rc = SharedClipboard URIListOpenParmsInit(&openParmsList);1457 rc = SharedClipboardTransferListOpenParmsInit(&openParmsList); 1458 1458 if (RT_SUCCESS(rc)) 1459 1459 { … … 1461 1461 if (RT_SUCCESS(rc)) 1462 1462 { 1463 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1464 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1463 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1464 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1465 1465 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1466 1466 … … 1468 1468 1469 1469 SHCLLISTHANDLE hList = SHCLLISTHANDLE_INVALID; 1470 rc = SharedClipboard URITransferListOpen(pTransfer, &openParmsList, &hList);1470 rc = SharedClipboardTransferListOpen(pTransfer, &openParmsList, &hList); 1471 1471 1472 1472 /* Reply in any case. */ … … 1475 1475 } 1476 1476 1477 SharedClipboard URIListOpenParmsDestroy(&openParmsList);1477 SharedClipboardTransferListOpenParmsDestroy(&openParmsList); 1478 1478 } 1479 1479 … … 1481 1481 } 1482 1482 1483 case VBOX_SHCL_HOST_MSG_ URI_LIST_CLOSE:1483 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_CLOSE: 1484 1484 { 1485 1485 SHCLLISTHANDLE hList; … … 1487 1487 if (RT_SUCCESS(rc)) 1488 1488 { 1489 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1490 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1489 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1490 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1491 1491 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1492 1492 1493 rc = SharedClipboard URITransferListClose(pTransfer, hList);1493 rc = SharedClipboardTransferListClose(pTransfer, hList); 1494 1494 1495 1495 /* Reply in any case. */ … … 1501 1501 } 1502 1502 1503 case VBOX_SHCL_HOST_MSG_ URI_LIST_HDR_READ:1503 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_READ: 1504 1504 { 1505 1505 /** @todo Handle filter + list features. */ … … 1510 1510 if (RT_SUCCESS(rc)) 1511 1511 { 1512 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1513 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1512 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1513 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1514 1514 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1515 1515 1516 1516 SHCLLISTHDR hdrList; 1517 rc = SharedClipboard URITransferListGetHeader(pTransfer, hList, &hdrList);1517 rc = SharedClipboardTransferListGetHeader(pTransfer, hList, &hdrList); 1518 1518 if (RT_SUCCESS(rc)) 1519 1519 { 1520 1520 rc = VbglR3ClipboardListHdrWrite(pCmdCtx, hList, &hdrList); 1521 1521 1522 SharedClipboard URIListHdrDestroy(&hdrList);1522 SharedClipboardTransferListHdrDestroy(&hdrList); 1523 1523 } 1524 1524 } … … 1528 1528 1529 1529 #if 0 1530 case VBOX_SHCL_HOST_MSG_ URI_LIST_HDR_WRITE:1531 { 1532 LogFlowFunc(("VBOX_SHCL_HOST_MSG_ URI_LIST_HDR_WRITE\n"));1530 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_WRITE: 1531 { 1532 LogFlowFunc(("VBOX_SHCL_HOST_MSG_TRANSFER_LIST_HDR_WRITE\n")); 1533 1533 1534 1534 SHCLLISTHDR hdrList; 1535 rc = SharedClipboard URIListHdrInit(&hdrList);1535 rc = SharedClipboardTransferListHdrInit(&hdrList); 1536 1536 if (RT_SUCCESS(rc)) 1537 1537 { … … 1542 1542 #endif 1543 1543 1544 case VBOX_SHCL_HOST_MSG_ URI_LIST_ENTRY_READ:1545 { 1546 LogFlowFunc(("VBOX_SHCL_HOST_MSG_ URI_LIST_ENTRY_READ\n"));1544 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_READ: 1545 { 1546 LogFlowFunc(("VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_READ\n")); 1547 1547 1548 1548 SHCLLISTENTRY entryList; 1549 rc = SharedClipboard URIListEntryInit(&entryList);1549 rc = SharedClipboardTransferListEntryInit(&entryList); 1550 1550 if (RT_SUCCESS(rc)) 1551 1551 { … … 1555 1555 if (RT_SUCCESS(rc)) 1556 1556 { 1557 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1558 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1557 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1558 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1559 1559 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1560 1560 1561 rc = SharedClipboard URITransferListRead(pTransfer, hList, &entryList);1561 rc = SharedClipboardTransferListRead(pTransfer, hList, &entryList); 1562 1562 if (RT_SUCCESS(rc)) 1563 1563 { … … 1573 1573 } 1574 1574 1575 SharedClipboard URIListEntryDestroy(&entryList);1575 SharedClipboardTransferListEntryDestroy(&entryList); 1576 1576 } 1577 1577 … … 1580 1580 1581 1581 #if 0 1582 case VBOX_SHCL_HOST_MSG_ URI_LIST_ENTRY_WRITE:1583 { 1584 LogFlowFunc(("VBOX_SHCL_HOST_MSG_ URI_LIST_ENTRY_WRITE\n"));1582 case VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_WRITE: 1583 { 1584 LogFlowFunc(("VBOX_SHCL_HOST_MSG_TRANSFER_LIST_ENTRY_WRITE\n")); 1585 1585 pEvent->enmType = VBGLR3CLIPBOARDEVENTTYPE_URI_LIST_ENTRY_WRITE; 1586 1586 break; … … 1588 1588 #endif 1589 1589 1590 case VBOX_SHCL_HOST_MSG_ URI_OBJ_OPEN:1590 case VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_OPEN: 1591 1591 { 1592 1592 SHCLOBJOPENCREATEPARMS openParms; 1593 rc = SharedClipboard URIObjectOpenParmsInit(&openParms);1593 rc = SharedClipboardTransferObjectOpenParmsInit(&openParms); 1594 1594 if (RT_SUCCESS(rc)) 1595 1595 { … … 1597 1597 if (RT_SUCCESS(rc)) 1598 1598 { 1599 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1600 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1599 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1600 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1601 1601 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1602 1602 1603 1603 SHCLOBJHANDLE hObj; 1604 rc = SharedClipboard URIObjectOpen(pTransfer, &openParms, &hObj);1604 rc = SharedClipboardTransferObjectOpen(pTransfer, &openParms, &hObj); 1605 1605 1606 1606 /* Reply in any case. */ … … 1609 1609 } 1610 1610 1611 SharedClipboard URIObjectOpenParmsDestroy(&openParms);1611 SharedClipboardTransferObjectOpenParmsDestroy(&openParms); 1612 1612 } 1613 1613 … … 1615 1615 } 1616 1616 1617 case VBOX_SHCL_HOST_MSG_ URI_OBJ_CLOSE:1617 case VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_CLOSE: 1618 1618 { 1619 1619 SHCLOBJHANDLE hObj; … … 1621 1621 if (RT_SUCCESS(rc)) 1622 1622 { 1623 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1624 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1623 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1624 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1625 1625 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1626 1626 1627 rc = SharedClipboard URIObjectClose(pTransfer, hObj);1627 rc = SharedClipboardTransferObjectClose(pTransfer, hObj); 1628 1628 1629 1629 /* Reply in any case. */ … … 1635 1635 } 1636 1636 1637 case VBOX_SHCL_HOST_MSG_ URI_OBJ_READ:1637 case VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_READ: 1638 1638 { 1639 1639 SHCLOBJHANDLE hObj; … … 1643 1643 if (RT_SUCCESS(rc)) 1644 1644 { 1645 PSHCL URITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(pTransferCtx,1646 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID));1645 PSHCLTRANSFER pTransfer = SharedClipboardTransferCtxGetTransfer(pTransferCtx, 1646 VBOX_SHCL_CONTEXTID_GET_TRANSFER(pCmdCtx->uContextID)); 1647 1647 AssertPtrBreakStmt(pTransfer, VERR_NOT_FOUND); 1648 1648 … … 1658 1658 { 1659 1659 uint32_t cbRead; 1660 rc = SharedClipboard URIObjectRead(pTransfer, hObj, pvBuf, cbToRead, &cbRead, fFlags);1660 rc = SharedClipboardTransferObjectRead(pTransfer, hObj, pvBuf, cbToRead, &cbRead, fFlags); 1661 1661 if (RT_SUCCESS(rc)) 1662 1662 rc = VbglR3ClipboardObjWrite(pCmdCtx, hObj, pvBuf, cbRead, NULL /* pcbWritten */); … … 1672 1672 1673 1673 #if 0 1674 case VBOX_SHCL_HOST_MSG_ URI_OBJ_WRITE:1675 { 1676 LogFlowFunc(("VBOX_SHCL_HOST_MSG_ URI_OBJ_WRITE\n"));1674 case VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_WRITE: 1675 { 1676 LogFlowFunc(("VBOX_SHCL_HOST_MSG_TRANSFER_OBJ_WRITE\n")); 1677 1677 break; 1678 1678 }
Note:
See TracChangeset
for help on using the changeset viewer.