Changeset 85745 in vbox for trunk/src/VBox/HostServices/DragAndDrop
- Timestamp:
- Aug 13, 2020 8:37:09 AM (4 years ago)
- Location:
- trunk/src/VBox/HostServices/DragAndDrop
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/DragAndDrop/VBoxDragAndDropSvc.cpp
r85722 r85745 162 162 if (m_SvcCtx.pfnHostCallback) 163 163 { 164 int rc2 = m_SvcCtx.pfnHostCallback(m_SvcCtx.pvHostData, GUEST_DND_ DISCONNECT, &data, sizeof(data));164 int rc2 = m_SvcCtx.pfnHostCallback(m_SvcCtx.pvHostData, GUEST_DND_FN_DISCONNECT, &data, sizeof(data)); 165 165 if (RT_FAILURE(rc2)) 166 166 LogFlowFunc(("Warning: Unable to notify host about client %RU32 disconnect, rc=%Rrc\n", m_idClient, rc2)); … … 298 298 299 299 /** 300 * Implements GUEST_DND_ REPORT_FEATURES.300 * Implements GUEST_DND_FN_REPORT_FEATURES. 301 301 * 302 302 * @returns VBox status code. … … 344 344 345 345 /** 346 * Implements GUEST_DND_ QUERY_FEATURES.346 * Implements GUEST_DND_FN_QUERY_FEATURES. 347 347 * 348 348 * @returns VBox status code. … … 418 418 switch (u32Function) 419 419 { 420 case GUEST_DND_ GET_NEXT_HOST_MSG:420 case GUEST_DND_FN_GET_NEXT_HOST_MSG: 421 421 { 422 422 if (modeGet() != VBOX_DRAG_AND_DROP_MODE_OFF) … … 431 431 432 432 /* New since protocol v2. */ 433 case GUEST_DND_ CONNECT:433 case GUEST_DND_FN_CONNECT: 434 434 RT_FALL_THROUGH(); 435 435 /* New since VBox 6.1.x. */ 436 case GUEST_DND_ REPORT_FEATURES:436 case GUEST_DND_FN_REPORT_FEATURES: 437 437 RT_FALL_THROUGH(); 438 438 /* New since VBox 6.1.x. */ 439 case GUEST_DND_ QUERY_FEATURES:439 case GUEST_DND_FN_QUERY_FEATURES: 440 440 { 441 441 /* … … 448 448 } 449 449 450 case GUEST_DND_ HG_ACK_OP:451 case GUEST_DND_ HG_REQ_DATA:452 case GUEST_DND_ HG_EVT_PROGRESS:450 case GUEST_DND_FN_HG_ACK_OP: 451 case GUEST_DND_FN_HG_REQ_DATA: 452 case GUEST_DND_FN_HG_EVT_PROGRESS: 453 453 { 454 454 if ( modeGet() == VBOX_DRAG_AND_DROP_MODE_BIDIRECTIONAL … … 460 460 } 461 461 462 case GUEST_DND_ GH_ACK_PENDING:463 case GUEST_DND_ GH_SND_DATA_HDR:464 case GUEST_DND_ GH_SND_DATA:465 case GUEST_DND_ GH_SND_DIR:466 case GUEST_DND_ GH_SND_FILE_HDR:467 case GUEST_DND_ GH_SND_FILE_DATA:468 case GUEST_DND_ GH_EVT_ERROR:462 case GUEST_DND_FN_GH_ACK_PENDING: 463 case GUEST_DND_FN_GH_SND_DATA_HDR: 464 case GUEST_DND_FN_GH_SND_DATA: 465 case GUEST_DND_FN_GH_SND_DIR: 466 case GUEST_DND_FN_GH_SND_FILE_HDR: 467 case GUEST_DND_FN_GH_SND_FILE_DATA: 468 case GUEST_DND_FN_GH_EVT_ERROR: 469 469 { 470 470 #ifdef VBOX_WITH_DRAG_AND_DROP_GH … … 547 547 /* 548 548 * Note: Older VBox versions with enabled DnD guest->host support (< 5.0) 549 * used the same message ID (300) for GUEST_DND_ GET_NEXT_HOST_MSG and550 * HOST_DND_ GH_REQ_PENDING, which led this service returning549 * used the same message ID (300) for GUEST_DND_FN_GET_NEXT_HOST_MSG and 550 * HOST_DND_FN_GH_REQ_PENDING, which led this service returning 551 551 * VERR_INVALID_PARAMETER when the guest wanted to actually 552 * handle HOST_DND_ GH_REQ_PENDING.552 * handle HOST_DND_FN_GH_REQ_PENDING. 553 553 */ 554 case GUEST_DND_ GET_NEXT_HOST_MSG:555 { 556 LogFlowFunc(("GUEST_DND_ GET_NEXT_HOST_MSG\n"));554 case GUEST_DND_FN_GET_NEXT_HOST_MSG: 555 { 556 LogFlowFunc(("GUEST_DND_FN_GET_NEXT_HOST_MSG\n")); 557 557 if (cParms == 3) 558 558 { … … 599 599 break; 600 600 } 601 case GUEST_DND_ CONNECT:602 { 603 LogFlowFunc(("GUEST_DND_ CONNECT\n"));601 case GUEST_DND_FN_CONNECT: 602 { 603 LogFlowFunc(("GUEST_DND_FN_CONNECT\n")); 604 604 605 605 ASSERT_GUEST_BREAK(cParms >= 2); … … 635 635 break; 636 636 } 637 case GUEST_DND_ REPORT_FEATURES:638 { 639 LogFlowFunc(("GUEST_DND_ REPORT_FEATURES\n"));637 case GUEST_DND_FN_REPORT_FEATURES: 638 { 639 LogFlowFunc(("GUEST_DND_FN_REPORT_FEATURES\n")); 640 640 rc = clientReportFeatures(pClient, callHandle, cParms, paParms); 641 641 if (RT_SUCCESS(rc)) … … 654 654 break; 655 655 } 656 case GUEST_DND_ QUERY_FEATURES:657 { 658 LogFlowFunc(("GUEST_DND_ QUERY_FEATURES"));656 case GUEST_DND_FN_QUERY_FEATURES: 657 { 658 LogFlowFunc(("GUEST_DND_FN_QUERY_FEATURES")); 659 659 rc = clientQueryFeatures(pClient, callHandle, cParms, paParms); 660 660 break; 661 661 } 662 case GUEST_DND_ HG_ACK_OP:663 { 664 LogFlowFunc(("GUEST_DND_ HG_ACK_OP\n"));662 case GUEST_DND_FN_HG_ACK_OP: 663 { 664 LogFlowFunc(("GUEST_DND_FN_HG_ACK_OP\n")); 665 665 666 666 ASSERT_GUEST_BREAK(cParms >= 2); … … 677 677 break; 678 678 } 679 case GUEST_DND_ HG_REQ_DATA:680 { 681 LogFlowFunc(("GUEST_DND_ HG_REQ_DATA\n"));679 case GUEST_DND_FN_HG_REQ_DATA: 680 { 681 LogFlowFunc(("GUEST_DND_FN_HG_REQ_DATA\n")); 682 682 683 683 VBOXDNDCBHGREQDATADATA data; … … 711 711 break; 712 712 } 713 case GUEST_DND_ HG_EVT_PROGRESS:714 { 715 LogFlowFunc(("GUEST_DND_ HG_EVT_PROGRESS\n"));713 case GUEST_DND_FN_HG_EVT_PROGRESS: 714 { 715 LogFlowFunc(("GUEST_DND_FN_HG_EVT_PROGRESS\n")); 716 716 717 717 ASSERT_GUEST_BREAK(cParms >= 3); … … 733 733 } 734 734 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 735 case GUEST_DND_ GH_ACK_PENDING:736 { 737 LogFlowFunc(("GUEST_DND_ GH_ACK_PENDING\n"));735 case GUEST_DND_FN_GH_ACK_PENDING: 736 { 737 LogFlowFunc(("GUEST_DND_FN_GH_ACK_PENDING\n")); 738 738 739 739 VBOXDNDCBGHACKPENDINGDATA data; … … 775 775 } 776 776 /* New since protocol v3. */ 777 case GUEST_DND_ GH_SND_DATA_HDR:778 { 779 LogFlowFunc(("GUEST_DND_ GH_SND_DATA_HDR\n"));777 case GUEST_DND_FN_GH_SND_DATA_HDR: 778 { 779 LogFlowFunc(("GUEST_DND_FN_GH_SND_DATA_HDR\n")); 780 780 781 781 ASSERT_GUEST_BREAK(cParms == 12); … … 811 811 break; 812 812 } 813 case GUEST_DND_ GH_SND_DATA:814 { 815 LogFlowFunc(("GUEST_DND_ GH_SND_DATA\n"));813 case GUEST_DND_FN_GH_SND_DATA: 814 { 815 LogFlowFunc(("GUEST_DND_FN_GH_SND_DATA\n")); 816 816 817 817 switch (pClient->uProtocolVerDeprecated) … … 857 857 break; 858 858 } 859 case GUEST_DND_ GH_SND_DIR:860 { 861 LogFlowFunc(("GUEST_DND_ GH_SND_DIR\n"));859 case GUEST_DND_FN_GH_SND_DIR: 860 { 861 LogFlowFunc(("GUEST_DND_FN_GH_SND_DIR\n")); 862 862 863 863 ASSERT_GUEST_BREAK(cParms >= 3); … … 878 878 } 879 879 /* New since protocol v2 (>= VBox 5.0). */ 880 case GUEST_DND_ GH_SND_FILE_HDR:881 { 882 LogFlowFunc(("GUEST_DND_ GH_SND_FILE_HDR\n"));880 case GUEST_DND_FN_GH_SND_FILE_HDR: 881 { 882 LogFlowFunc(("GUEST_DND_FN_GH_SND_FILE_HDR\n")); 883 883 884 884 ASSERT_GUEST_BREAK(cParms == 6); … … 902 902 break; 903 903 } 904 case GUEST_DND_ GH_SND_FILE_DATA:905 { 906 LogFlowFunc(("GUEST_DND_ GH_SND_FILE_DATA\n"));904 case GUEST_DND_FN_GH_SND_FILE_DATA: 905 { 906 LogFlowFunc(("GUEST_DND_FN_GH_SND_FILE_DATA\n")); 907 907 908 908 switch (pClient->uProtocolVerDeprecated) … … 969 969 break; 970 970 } 971 case GUEST_DND_ GH_EVT_ERROR:972 { 973 LogFlowFunc(("GUEST_DND_ GH_EVT_ERROR\n"));971 case GUEST_DND_FN_GH_EVT_ERROR: 972 { 973 LogFlowFunc(("GUEST_DND_FN_GH_EVT_ERROR\n")); 974 974 975 975 ASSERT_GUEST_BREAK(cParms >= 1); … … 1074 1074 switch (u32Function) 1075 1075 { 1076 case HOST_DND_ SET_MODE:1076 case HOST_DND_FN_SET_MODE: 1077 1077 { 1078 1078 if (cParms != 1) … … 1085 1085 } 1086 1086 1087 case HOST_DND_ CANCEL:1087 case HOST_DND_FN_CANCEL: 1088 1088 { 1089 1089 LogFlowFunc(("Cancelling all waiting clients ...\n")); … … 1112 1112 AssertPtr(pClient); 1113 1113 1114 int rc2 = pClient->SetDeferredMsgInfo(HOST_DND_ CANCEL,1114 int rc2 = pClient->SetDeferredMsgInfo(HOST_DND_FN_CANCEL, 1115 1115 /* Protocol v3+ also contains the context ID. */ 1116 1116 pClient->uProtocolVerDeprecated >= 3 ? 1 : 0); … … 1128 1128 } 1129 1129 1130 case HOST_DND_ HG_EVT_ENTER:1130 case HOST_DND_FN_HG_EVT_ENTER: 1131 1131 { 1132 1132 /* Reset the message queue as a new DnD operation just began. */ … … 1205 1205 if (RT_SUCCESS(rcNext)) 1206 1206 { 1207 if (uMsgClient == GUEST_DND_ GET_NEXT_HOST_MSG)1207 if (uMsgClient == GUEST_DND_FN_GET_NEXT_HOST_MSG) 1208 1208 { 1209 1209 rc = pClient->SetDeferredMsgInfo(uMsgNext, cParmsNext); … … 1251 1251 if (pSelf->m_SvcCtx.pfnHostCallback) 1252 1252 { 1253 LogFlowFunc(("GUEST_DND_ HG_EVT_PROGRESS: uStatus=%RU32, uPercentage=%RU32, rc=%Rrc\n",1253 LogFlowFunc(("GUEST_DND_FN_HG_EVT_PROGRESS: uStatus=%RU32, uPercentage=%RU32, rc=%Rrc\n", 1254 1254 uStatus, uPercentage, rc)); 1255 1255 … … 1261 1261 1262 1262 return pSelf->m_SvcCtx.pfnHostCallback(pSelf->m_SvcCtx.pvHostData, 1263 GUEST_DND_ HG_EVT_PROGRESS,1263 GUEST_DND_FN_HG_EVT_PROGRESS, 1264 1264 &data, sizeof(data)); 1265 1265 } -
trunk/src/VBox/HostServices/DragAndDrop/dndmanager.h
r85121 r85745 69 69 DnDHGCancelMessage(void) 70 70 { 71 int rc2 = initData(DragAndDropSvc::HOST_DND_ CANCEL,71 int rc2 = initData(DragAndDropSvc::HOST_DND_FN_CANCEL, 72 72 0 /* cParms */, 0 /* aParms */); 73 73 AssertRC(rc2);
Note:
See TracChangeset
for help on using the changeset viewer.