Changeset 85745 in vbox
- Timestamp:
- Aug 13, 2020 8:37:09 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/DragAndDropSvc.h
r85722 r85745 49 49 * + Added VBOXDNDSNDDATAHDR and VBOXDNDCBSNDDATAHDRDATA to support (simple) accounting of objects 50 50 * being transferred, along with supplying separate meta data size (which is part of the total size being sent). 51 * + Added new HOST_DND_ HG_SND_DATA_HDR + GUEST_DND_GH_SND_DATA_HDR commands which now allow specifying an optional51 * + Added new HOST_DND_FN_HG_SND_DATA_HDR + GUEST_DND_FN_GH_SND_DATA_HDR commands which now allow specifying an optional 52 52 * compression type and defining a checksum for the overall data transfer. 53 53 * + Enhannced VBOXDNDGHSENDDATAMSG to support (rolling) checksums for the supplied data block. 54 54 * + VBOXDNDHGSENDDATAMSG and VBOXDNDGHSENDDATAMSG can now contain an optional checksum for the current data block. 55 55 * | VBOXDNDHGSENDFILEDATAMSG and VBOXDNDGHSENDFILEDATAMSG are now sharing the same HGCM mesasge. 56 * - Removed unused HOST_DND_ GH_RECV_DIR, HOST_DND_GH_RECV_FILE_DATA and HOST_DND_GH_RECV_FILE_HDR commands.56 * - Removed unused HOST_DND_FN_GH_RECV_DIR, HOST_DND_FN_GH_RECV_FILE_DATA and HOST_DND_FN_GH_RECV_FILE_HDR commands. 57 57 * 58 58 * VBox 6.1.x and up, current: 59 * + Added GUEST_DND_ QUERY_FEATURES + GUEST_DND_REPORT_FEATURES.59 * + Added GUEST_DND_FN_QUERY_FEATURES + GUEST_DND_FN_REPORT_FEATURES. 60 60 * - Protocol versioning support in VBOXDNDCONNECTMSG is now marked as being deprecated. 61 61 * 62 62 ** @todo: 63 63 * - Split up messages which use VBOXDNDHGACTIONMSG into own functions and remove parameters which 64 * are not actually needed / used by a function. Why does HOST_DND_ HG_EVT_MOVE need all the format stuff, for example?64 * are not actually needed / used by a function. Why does HOST_DND_FN_HG_EVT_MOVE need all the format stuff, for example? 65 65 */ 66 66 … … 91 91 { 92 92 /** The host sets a new DnD mode. */ 93 HOST_DND_ SET_MODE = 100,93 HOST_DND_FN_SET_MODE = 100, 94 94 /** The host requests to cancel the current DnD operation on 95 95 * the guest side. This can happen on user request on the host's … … 99 99 * not rely on an answer from the guest side in order to 100 100 * properly cancel the operation. */ 101 HOST_DND_ CANCEL = 204,101 HOST_DND_FN_CANCEL = 204, 102 102 103 103 /* … … 107 107 /** The host enters the VM window for starting an actual 108 108 * DnD operation. */ 109 HOST_DND_ HG_EVT_ENTER = 200,109 HOST_DND_FN_HG_EVT_ENTER = 200, 110 110 /** The host's DnD cursor moves within the VM window. */ 111 HOST_DND_ HG_EVT_MOVE = 201,111 HOST_DND_FN_HG_EVT_MOVE = 201, 112 112 /** The host leaves the guest VM window. */ 113 HOST_DND_ HG_EVT_LEAVE = 202,113 HOST_DND_FN_HG_EVT_LEAVE = 202, 114 114 /** The host issues a "drop" event, meaning that the host is 115 115 * ready to transfer data over to the guest. */ 116 HOST_DND_ HG_EVT_DROPPED = 203,116 HOST_DND_FN_HG_EVT_DROPPED = 203, 117 117 /** The host sends the data header at the beginning of a (new) 118 118 * data transfer. */ 119 HOST_DND_ HG_SND_DATA_HDR = 210,119 HOST_DND_FN_HG_SND_DATA_HDR = 210, 120 120 /** 121 121 * The host sends the actual meta data, based on 122 * the format(s) specified by HOST_DND_ HG_EVT_ENTER.122 * the format(s) specified by HOST_DND_FN_HG_EVT_ENTER. 123 123 * 124 124 * Protocol v1/v2: If the guest supplied buffer too small to send 125 * the actual data, the host will send a HOST_DND_ HG_SND_MORE_DATA125 * the actual data, the host will send a HOST_DND_FN_HG_SND_MORE_DATA 126 126 * message as follow-up. 127 127 * Protocol v3+: The incoming meta data size is specified upfront in the 128 * HOST_DND_ HG_SND_DATA_HDR message and must be handled accordingly.128 * HOST_DND_FN_HG_SND_DATA_HDR message and must be handled accordingly. 129 129 */ 130 HOST_DND_ HG_SND_DATA = 205,130 HOST_DND_FN_HG_SND_DATA = 205, 131 131 /** The host sends more data in case the data did not entirely fit in 132 * the HOST_DND_ HG_SND_DATA message. */132 * the HOST_DND_FN_HG_SND_DATA message. */ 133 133 /** @todo Deprecated function; do not use anymore. */ 134 HOST_DND_ HG_SND_MORE_DATA = 206,134 HOST_DND_FN_HG_SND_MORE_DATA = 206, 135 135 /** The host sends a directory entry to the guest. */ 136 HOST_DND_ HG_SND_DIR = 207,136 HOST_DND_FN_HG_SND_DIR = 207, 137 137 /** The host sends a file data chunk to the guest. */ 138 HOST_DND_ HG_SND_FILE_DATA = 208,138 HOST_DND_FN_HG_SND_FILE_DATA = 208, 139 139 /** The host sends a file header to the guest. 140 140 * Note: Only for protocol version 2 and up (>= VBox 5.0). */ 141 HOST_DND_ HG_SND_FILE_HDR = 209,141 HOST_DND_FN_HG_SND_FILE_HDR = 209, 142 142 143 143 /* … … 147 147 /** The host asks the guest whether a DnD operation 148 148 * is in progress when the mouse leaves the guest window. */ 149 HOST_DND_ GH_REQ_PENDING = 600,149 HOST_DND_FN_GH_REQ_PENDING = 600, 150 150 /** The host informs the guest that a DnD drop operation 151 151 * has been started and that the host wants the data in 152 152 * a specific MIME type. */ 153 HOST_DND_ GH_EVT_DROPPED = 601,153 HOST_DND_FN_GH_EVT_DROPPED = 601, 154 154 /** Blow the type up to 32-bit. */ 155 HOST_DND_ 32BIT_HACK = 0x7fffffff155 HOST_DND_FN_32BIT_HACK = 0x7fffffff 156 156 }; 157 157 … … 168 168 * protocol version and flags. 169 169 * Note: New since protocol version 2. */ 170 GUEST_DND_ CONNECT = 10,170 GUEST_DND_FN_CONNECT = 10, 171 171 172 172 /** The guest client disconnects from the HGCM service. */ 173 GUEST_DND_ DISCONNECT = 11,173 GUEST_DND_FN_DISCONNECT = 11, 174 174 175 175 /** Report guest side feature flags and retrieve the host ones. … … 185 185 * @since 6.1.x 186 186 */ 187 GUEST_DND_ REPORT_FEATURES = 12,187 GUEST_DND_FN_REPORT_FEATURES = 12, 188 188 189 189 /** Query the host ones feature masks. … … 199 199 * @since 6.1.x 200 200 */ 201 GUEST_DND_ QUERY_FEATURES = 13,201 GUEST_DND_FN_QUERY_FEATURES = 13, 202 202 203 203 /** … … 205 205 * on the guest side. This can be a blocking call. 206 206 */ 207 GUEST_DND_ GET_NEXT_HOST_MSG = 300,207 GUEST_DND_FN_GET_NEXT_HOST_MSG = 300, 208 208 209 209 /* … … 213 213 /** The guest acknowledges that a pending DnD operation from the host 214 214 * can be dropped on the currently selected area on the guest. */ 215 GUEST_DND_ HG_ACK_OP = 400,215 GUEST_DND_FN_HG_ACK_OP = 400, 216 216 /** The guest requests the actual DnD data to be sent from the host. */ 217 GUEST_DND_ HG_REQ_DATA = 401,217 GUEST_DND_FN_HG_REQ_DATA = 401, 218 218 /** The guest reports back its progress back to the host. */ 219 GUEST_DND_ HG_EVT_PROGRESS = 402,219 GUEST_DND_FN_HG_EVT_PROGRESS = 402, 220 220 221 221 /* … … 228 228 * dragged over to the host. 229 229 */ 230 GUEST_DND_ GH_ACK_PENDING = 500,230 GUEST_DND_FN_GH_ACK_PENDING = 500, 231 231 /** The guest sends the data header at the beginning of a (new) 232 232 * data transfer. */ 233 GUEST_DND_ GH_SND_DATA_HDR = 503,233 GUEST_DND_FN_GH_SND_DATA_HDR = 503, 234 234 /** 235 235 * The guest sends data of the requested format to the host. There can … … 237 237 * into one. 238 238 */ 239 GUEST_DND_ GH_SND_DATA = 501,239 GUEST_DND_FN_GH_SND_DATA = 501, 240 240 /** The guest reports an error back to the host. */ 241 GUEST_DND_ GH_EVT_ERROR = 502,241 GUEST_DND_FN_GH_EVT_ERROR = 502, 242 242 /** The guest sends a directory entry to the host. */ 243 GUEST_DND_ GH_SND_DIR = 700,243 GUEST_DND_FN_GH_SND_DIR = 700, 244 244 /** The guest sends file data to the host. 245 245 * Note: On protocol version 1 this also contains the file name 246 246 * and other attributes. */ 247 GUEST_DND_ GH_SND_FILE_DATA = 701,247 GUEST_DND_FN_GH_SND_FILE_DATA = 701, 248 248 /** The guest sends a file header to the host, marking the 249 249 * beginning of a (new) file transfer. 250 250 * Note: Available since protocol version 2 (VBox 5.0). */ 251 GUEST_DND_ GH_SND_FILE_HDR = 702,251 GUEST_DND_FN_GH_SND_FILE_HDR = 702, 252 252 /** Blow the type up to 32-bit. */ 253 GUEST_DND_ 32BIT_HACK = 0x7fffffff253 GUEST_DND_FN_32BIT_HACK = 0x7fffffff 254 254 }; 255 255 256 256 /** @name VBOX_DND_GF_XXX - Guest features. 257 * @sa GUEST_DND_ REPORT_FEATURES257 * @sa GUEST_DND_FN_REPORT_FEATURES 258 258 * @{ */ 259 259 /** No flags set. */ … … 297 297 * 298 298 * Used by: 299 * HOST_DND_ HG_EVT_ENTER300 * HOST_DND_ HG_EVT_MOVE301 * HOST_DND_ HG_EVT_DROPPED299 * HOST_DND_FN_HG_EVT_ENTER 300 * HOST_DND_FN_HG_EVT_MOVE 301 * HOST_DND_FN_HG_EVT_DROPPED 302 302 */ 303 303 typedef struct HGCMMsgHGAction … … 336 336 * 337 337 * Used by: 338 * HOST_DND_ HG_EVT_LEAVE338 * HOST_DND_FN_HG_EVT_LEAVE 339 339 */ 340 340 typedef struct HGCMMsgHGLeave … … 355 355 * 356 356 * Used by: 357 * HOST_DND_ HG_EVT_CANCEL357 * HOST_DND_FN_HG_EVT_CANCEL 358 358 */ 359 359 typedef struct HGCMMsgHGCancel … … 374 374 * 375 375 * Used by: 376 * HOST_DND_ HG_SND_DATA_HDR377 * GUEST_DND_ GH_SND_DATA_HDR376 * HOST_DND_FN_HG_SND_DATA_HDR 377 * GUEST_DND_FN_GH_SND_DATA_HDR 378 378 * 379 379 * New since protocol v3. … … 418 418 * 419 419 * Used by: 420 * HOST_DND_ HG_SND_DATA420 * HOST_DND_FN_HG_SND_DATA 421 421 */ 422 422 typedef struct HGCMMsgHGSendData … … 459 459 * 460 460 * Used by: 461 * HOST_DND_ HG_SND_MORE_DATA461 * HOST_DND_FN_HG_SND_MORE_DATA 462 462 */ 463 463 typedef struct HGCMMsgHGSendMoreData … … 473 473 * 474 474 * Used by: 475 * HOST_DND_ HG_SND_DIR476 * GUEST_DND_ GH_SND_DIR475 * HOST_DND_FN_HG_SND_DIR 476 * GUEST_DND_FN_GH_SND_DIR 477 477 */ 478 478 typedef struct HGCMMsgHGSendDir … … 510 510 * 511 511 * Used by: 512 * HOST_DND_ HG_SND_FILE_HDR513 * GUEST_DND_ GH_SND_FILE_HDR512 * HOST_DND_FN_HG_SND_FILE_HDR 513 * GUEST_DND_FN_GH_SND_FILE_HDR 514 514 */ 515 515 typedef struct HGCMMsgHGSendFileHdr … … 535 535 * 536 536 * Used by: 537 * HOST_DND_ HG_SND_FILE537 * HOST_DND_FN_HG_SND_FILE 538 538 */ 539 539 typedef struct HGCMMsgHGSendFileData … … 591 591 * 592 592 * Used by: 593 * HOST_DND_ GH_REQ_PENDING593 * HOST_DND_FN_GH_REQ_PENDING 594 594 */ 595 595 typedef struct HGCMMsgGHReqPending … … 619 619 * 620 620 * Used by: 621 * HOST_DND_ GH_EVT_DROPPED621 * HOST_DND_FN_GH_EVT_DROPPED 622 622 */ 623 623 typedef struct HGCMMsgGHDropped … … 660 660 * 661 661 * Used by: 662 * GUEST_DND_ GET_NEXT_HOST_MSG662 * GUEST_DND_FN_GET_NEXT_HOST_MSG 663 663 */ 664 664 typedef struct HGCMMsgGetNext … … 680 680 * 681 681 * Used by: 682 * GUEST_DND_ CONNECT682 * GUEST_DND_FN_CONNECT 683 683 */ 684 684 typedef struct HGCMMsgConnect … … 714 714 * 715 715 * Used by: 716 * GUEST_DND_ HG_ACK_OP716 * GUEST_DND_FN_HG_ACK_OP 717 717 */ 718 718 typedef struct HGCMMsgHGAck … … 739 739 * 740 740 * Used by: 741 * GUEST_DND_ HG_REQ_DATA741 * GUEST_DND_FN_HG_REQ_DATA 742 742 */ 743 743 typedef struct HGCMMsgHGReqData … … 788 788 * 789 789 * Used by: 790 * GUEST_DND_ GH_ACK_PENDING790 * GUEST_DND_FN_GH_ACK_PENDING 791 791 */ 792 792 typedef struct HGCMMsgGHAckPending … … 819 819 * 820 820 * Used by: 821 * GUEST_DND_ GH_SND_DATA_HDR821 * GUEST_DND_FN_GH_SND_DATA_HDR 822 822 * 823 823 * New since protocol v3. … … 829 829 * 830 830 * Used by: 831 * GUEST_DND_ GH_SND_DATA831 * GUEST_DND_FN_GH_SND_DATA 832 832 */ 833 833 typedef struct HGCMMsgGHSendData … … 865 865 * 866 866 * Used by: 867 * GUEST_DND_ GH_SND_DIR867 * GUEST_DND_FN_GH_SND_DIR 868 868 */ 869 869 typedef struct HGCMMsgHGSendDir HGCMMsgGHSendDir; … … 873 873 * 874 874 * Used by: 875 * GUEST_DND_ GH_SND_FILE_HDR875 * GUEST_DND_FN_GH_SND_FILE_HDR 876 876 * 877 877 * New since protocol v2. … … 883 883 * 884 884 * Used by: 885 * GUEST_DND_ GH_SND_FILE_DATA885 * GUEST_DND_FN_GH_SND_FILE_DATA 886 886 */ 887 887 typedef struct HGCMMsgHGSendFileData HGCMMsgGHSendFileData; … … 891 891 * 892 892 * Used by: 893 * GUEST_DND_ GH_EVT_ERROR893 * GUEST_DND_FN_GH_EVT_ERROR 894 894 */ 895 895 typedef struct HGCMMsgGHError … … 924 924 enum eDnDCallbackMagics 925 925 { 926 CB_MAGIC_DND_CONNECT = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ CONNECT, 0),927 CB_MAGIC_DND_REPORT_FEATURES = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ REPORT_FEATURES, 0),928 CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GET_NEXT_HOST_MSG, 0),929 CB_MAGIC_DND_HG_ACK_OP = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ HG_ACK_OP, 0),930 CB_MAGIC_DND_HG_REQ_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ HG_REQ_DATA, 0),931 CB_MAGIC_DND_HG_EVT_PROGRESS = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ HG_EVT_PROGRESS, 0),932 CB_MAGIC_DND_GH_ACK_PENDING = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_ACK_PENDING, 0),933 CB_MAGIC_DND_GH_SND_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_SND_DATA, 0),934 CB_MAGIC_DND_GH_SND_DATA_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_SND_DATA_HDR, 0),935 CB_MAGIC_DND_GH_SND_DIR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_SND_DIR, 0),936 CB_MAGIC_DND_GH_SND_FILE_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_SND_FILE_HDR, 0),937 CB_MAGIC_DND_GH_SND_FILE_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_SND_FILE_DATA, 0),938 CB_MAGIC_DND_GH_EVT_ERROR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_ GH_EVT_ERROR, 0)926 CB_MAGIC_DND_CONNECT = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_CONNECT, 0), 927 CB_MAGIC_DND_REPORT_FEATURES = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_REPORT_FEATURES, 0), 928 CB_MAGIC_DND_HG_GET_NEXT_HOST_MSG = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GET_NEXT_HOST_MSG, 0), 929 CB_MAGIC_DND_HG_ACK_OP = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_HG_ACK_OP, 0), 930 CB_MAGIC_DND_HG_REQ_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_HG_REQ_DATA, 0), 931 CB_MAGIC_DND_HG_EVT_PROGRESS = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_HG_EVT_PROGRESS, 0), 932 CB_MAGIC_DND_GH_ACK_PENDING = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_ACK_PENDING, 0), 933 CB_MAGIC_DND_GH_SND_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_SND_DATA, 0), 934 CB_MAGIC_DND_GH_SND_DATA_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_SND_DATA_HDR, 0), 935 CB_MAGIC_DND_GH_SND_DIR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_SND_DIR, 0), 936 CB_MAGIC_DND_GH_SND_FILE_HDR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_SND_FILE_HDR, 0), 937 CB_MAGIC_DND_GH_SND_FILE_DATA = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_SND_FILE_DATA, 0), 938 CB_MAGIC_DND_GH_EVT_ERROR = VBOX_DND_CB_MAGIC_MAKE(GUEST_DND_FN_GH_EVT_ERROR, 0) 939 939 }; 940 940 -
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDnD.cpp
r85695 r85745 570 570 } 571 571 572 /* Note: After HOST_DND_ HG_EVT_ENTER there immediately is a move572 /* Note: After HOST_DND_FN_HG_EVT_ENTER there immediately is a move 573 573 * event, so fall through is intentional here. */ 574 574 RT_FALL_THROUGH(); … … 1204 1204 /** 1205 1205 * Some notes regarding guest cursor movement: 1206 * - The host only sends an HOST_DND_ GH_REQ_PENDING message to the guest1206 * - The host only sends an HOST_DND_FN_GH_REQ_PENDING message to the guest 1207 1207 * if the mouse cursor is outside the VM's window. 1208 1208 * - The guest does not know anything about the host's cursor -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibDragAndDrop.cpp
r85712 r85745 73 73 74 74 HGCMMsgGetNext Msg; 75 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ GET_NEXT_HOST_MSG, 3);75 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_GET_NEXT_HOST_MSG, 3); 76 76 Msg.uMsg.SetUInt32(0); 77 77 Msg.cParms.SetUInt32(0); … … 172 172 /** 173 173 * Host -> Guest 174 * Utility function to receive a HOST_DND_ HG_EVT_LEAVE message from the host.174 * Utility function to receive a HOST_DND_FN_HG_EVT_LEAVE message from the host. 175 175 * 176 176 * @returns IPRT status code. … … 182 182 183 183 HGCMMsgHGLeave Msg; 184 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_EVT_LEAVE, 1);184 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_EVT_LEAVE, 1); 185 185 /** @todo Context ID not used yet. */ 186 186 Msg.u.v3.uContext.SetUInt32(0); … … 191 191 /** 192 192 * Host -> Guest 193 * Utility function to receive a HOST_DND_ HG_EVT_CANCEL message from the host.193 * Utility function to receive a HOST_DND_FN_HG_EVT_CANCEL message from the host. 194 194 * 195 195 * @returns IPRT status code. … … 201 201 202 202 HGCMMsgHGCancel Msg; 203 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ CANCEL, 1);203 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_CANCEL, 1); 204 204 /** @todo Context ID not used yet. */ 205 205 Msg.u.v3.uContext.SetUInt32(0); … … 210 210 /** 211 211 * Host -> Guest 212 * Utility function to receive a HOST_DND_ HG_SND_DIR message from the host.212 * Utility function to receive a HOST_DND_FN_HG_SND_DIR message from the host. 213 213 * 214 214 * @returns IPRT status code. … … 232 232 233 233 HGCMMsgHGSendDir Msg; 234 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_SND_DIR, 4);234 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_SND_DIR, 4); 235 235 /** @todo Context ID not used yet. */ 236 236 Msg.u.v3.uContext.SetUInt32(0); … … 254 254 /** 255 255 * Host -> Guest 256 * Utility function to receive a HOST_DND_ HG_SND_FILE_DATA message from the host.256 * Utility function to receive a HOST_DND_FN_HG_SND_FILE_DATA message from the host. 257 257 * 258 258 * @returns IPRT status code. … … 273 273 274 274 HGCMMsgHGSendFileData Msg; 275 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_SND_FILE_DATA, 5);275 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_SND_FILE_DATA, 5); 276 276 Msg.u.v3.uContext.SetUInt32(0); 277 277 Msg.u.v3.pvData.SetPtr(pvData, cbData); … … 294 294 /** 295 295 * Host -> Guest 296 * Utility function to receive the HOST_DND_ HG_SND_FILE_HDR message from the host.296 * Utility function to receive the HOST_DND_FN_HG_SND_FILE_HDR message from the host. 297 297 * 298 298 * @returns IPRT status code. … … 319 319 320 320 HGCMMsgHGSendFileHdr Msg; 321 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_SND_FILE_HDR, 6);321 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_SND_FILE_HDR, 6); 322 322 Msg.uContext.SetUInt32(0); /** @todo Not used yet. */ 323 323 Msg.pvName.SetPtr(pszFilename, cbFilename); … … 410 410 switch (uNextMsg) 411 411 { 412 case HOST_DND_ HG_SND_DIR:412 case HOST_DND_FN_HG_SND_DIR: 413 413 { 414 414 rc = vbglR3DnDHGRecvDir(pCtx, … … 417 417 &cbPathName, 418 418 &fMode); 419 LogFlowFunc(("HOST_DND_ HG_SND_DIR: "419 LogFlowFunc(("HOST_DND_FN_HG_SND_DIR: " 420 420 "pszPathName=%s, cbPathName=%RU32, fMode=0x%x, rc=%Rrc\n", 421 421 szPathName, cbPathName, fMode, rc)); … … 445 445 break; 446 446 } 447 case HOST_DND_ HG_SND_FILE_HDR:447 case HOST_DND_FN_HG_SND_FILE_HDR: 448 448 RT_FALL_THROUGH(); 449 case HOST_DND_ HG_SND_FILE_DATA:449 case HOST_DND_FN_HG_SND_FILE_DATA: 450 450 { 451 if (uNextMsg == HOST_DND_ HG_SND_FILE_HDR)451 if (uNextMsg == HOST_DND_FN_HG_SND_FILE_HDR) 452 452 { 453 453 rc = vbglR3DnDHGRecvFileHdr(pCtx, … … 457 457 &fMode, 458 458 &cbFileSize); 459 LogFlowFunc(("HOST_DND_ HG_SND_FILE_HDR: "459 LogFlowFunc(("HOST_DND_FN_HG_SND_FILE_HDR: " 460 460 "szPathName=%s, fFlags=0x%x, fMode=0x%x, cbFileSize=%RU64, rc=%Rrc\n", 461 461 szPathName, fFlags, fMode, cbFileSize, rc)); … … 467 467 cbChunkMax, 468 468 &cbChunkRead); 469 LogFlowFunc(("HOST_DND_ HG_SND_FILE_DATA: "469 LogFlowFunc(("HOST_DND_FN_HG_SND_FILE_DATA: " 470 470 "cbChunkRead=%RU32, rc=%Rrc\n", cbChunkRead, rc)); 471 471 } 472 472 473 473 if ( RT_SUCCESS(rc) 474 && uNextMsg == HOST_DND_ HG_SND_FILE_HDR)474 && uNextMsg == HOST_DND_FN_HG_SND_FILE_HDR) 475 475 { 476 476 char *pszPathAbs = RTPathJoinA(pszDropDir, szPathName); … … 520 520 521 521 if ( RT_SUCCESS(rc) 522 && uNextMsg == HOST_DND_ HG_SND_FILE_DATA522 && uNextMsg == HOST_DND_FN_HG_SND_FILE_DATA 523 523 && cbChunkRead) 524 524 { … … 527 527 if (RT_SUCCESS(rc)) 528 528 { 529 LogFlowFunc(("HOST_DND_ HG_SND_FILE_DATA: "529 LogFlowFunc(("HOST_DND_FN_HG_SND_FILE_DATA: " 530 530 "cbChunkRead=%RU32, cbChunkWritten=%RU32, cbFileWritten=%RU64 cbFileSize=%RU64\n", 531 531 cbChunkRead, cbChunkWritten, cbFileWritten + cbChunkWritten, cbFileSize)); … … 557 557 break; 558 558 } 559 case HOST_DND_ CANCEL:559 case HOST_DND_FN_CANCEL: 560 560 { 561 561 rc = vbglR3DnDHGRecvCancel(pCtx); … … 623 623 /** 624 624 * Host -> Guest 625 * Utility function to receive the HOST_DND_ HG_SND_DATA message from the host.625 * Utility function to receive the HOST_DND_FN_HG_SND_DATA message from the host. 626 626 * 627 627 * @returns IPRT status code. … … 644 644 645 645 HGCMMsgHGSendData Msg; 646 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_SND_DATA, 5);646 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_SND_DATA, 5); 647 647 Msg.u.v3.uContext.SetUInt32(0); 648 648 Msg.u.v3.pvData.SetPtr(pvData, cbData); … … 674 674 /** 675 675 * Host -> Guest 676 * Utility function to receive the HOST_DND_ HG_SND_DATA_HDR message from the host.676 * Utility function to receive the HOST_DND_FN_HG_SND_DATA_HDR message from the host. 677 677 * 678 678 * @returns IPRT status code. … … 688 688 689 689 HGCMMsgHGSendDataHdr Msg; 690 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ HG_SND_DATA_HDR, 12);690 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_HG_SND_DATA_HDR, 12); 691 691 Msg.uContext.SetUInt32(0); 692 692 Msg.uFlags.SetUInt32(0); … … 909 909 /** 910 910 * Guest -> Host 911 * Utility function to receive the HOST_DND_ GH_REQ_PENDING message from the host.911 * Utility function to receive the HOST_DND_FN_GH_REQ_PENDING message from the host. 912 912 * 913 913 * @returns IPRT status code. … … 921 921 922 922 HGCMMsgGHReqPending Msg; 923 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ GH_REQ_PENDING, 2);923 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_GH_REQ_PENDING, 2); 924 924 /** @todo Context ID not used yet. */ 925 925 Msg.u.v3.uContext.SetUInt32(0); … … 939 939 /** 940 940 * Guest -> Host 941 * Utility function to receive the HOST_DND_ GH_EVT_DROPPED message from the host.941 * Utility function to receive the HOST_DND_FN_GH_EVT_DROPPED message from the host. 942 942 * 943 943 * @returns IPRT status code. … … 962 962 963 963 HGCMMsgGHDropped Msg; 964 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_ GH_EVT_DROPPED, 4);964 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, HOST_DND_FN_GH_EVT_DROPPED, 4); 965 965 Msg.u.v3.uContext.SetUInt32(0); 966 966 Msg.u.v3.pvFormat.SetPtr(pszFormatTmp, cbFormatTmp); … … 1033 1033 */ 1034 1034 HGCMMsgConnect Msg; 1035 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ CONNECT, 3);1035 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_CONNECT, 3); 1036 1036 Msg.u.v3.uContext.SetUInt32(0); /** @todo Context ID not used yet. */ 1037 1037 Msg.u.v3.uProtocol.SetUInt32(pCtx->uProtocolDeprecated); /* Deprecated since VBox 6.1.x. */ … … 1103 1103 HGCMFunctionParameter f64Features1; 1104 1104 } Msg; 1105 VBGL_HGCM_HDR_INIT(&Msg.Hdr, idClient, GUEST_DND_ REPORT_FEATURES, 2);1105 VBGL_HGCM_HDR_INIT(&Msg.Hdr, idClient, GUEST_DND_FN_REPORT_FEATURES, 2); 1106 1106 VbglHGCMParmUInt64Set(&Msg.f64Features0, fGuestFeatures); 1107 1107 VbglHGCMParmUInt64Set(&Msg.f64Features1, VBOX_DND_GF_1_MUST_BE_ONE); … … 1170 1170 switch(uMsg) 1171 1171 { 1172 case HOST_DND_ HG_EVT_ENTER:1172 case HOST_DND_FN_HG_EVT_ENTER: 1173 1173 { 1174 1174 rc = vbglR3DnDHGRecvAction(pCtx, … … 1185 1185 break; 1186 1186 } 1187 case HOST_DND_ HG_EVT_MOVE:1187 case HOST_DND_FN_HG_EVT_MOVE: 1188 1188 { 1189 1189 rc = vbglR3DnDHGRecvAction(pCtx, … … 1200 1200 break; 1201 1201 } 1202 case HOST_DND_ HG_EVT_DROPPED:1202 case HOST_DND_FN_HG_EVT_DROPPED: 1203 1203 { 1204 1204 rc = vbglR3DnDHGRecvAction(pCtx, … … 1215 1215 break; 1216 1216 } 1217 case HOST_DND_ HG_EVT_LEAVE:1217 case HOST_DND_FN_HG_EVT_LEAVE: 1218 1218 { 1219 1219 rc = vbglR3DnDHGRecvLeave(pCtx); … … 1222 1222 break; 1223 1223 } 1224 case HOST_DND_ HG_SND_DATA_HDR:1224 case HOST_DND_FN_HG_SND_DATA_HDR: 1225 1225 { 1226 1226 rc = vbglR3DnDHGRecvDataMain(pCtx, &pEvent->u.HG_Received.Meta); … … 1229 1229 break; 1230 1230 } 1231 case HOST_DND_ HG_SND_DIR:1231 case HOST_DND_FN_HG_SND_DIR: 1232 1232 RT_FALL_THROUGH(); 1233 case HOST_DND_ HG_SND_FILE_HDR:1233 case HOST_DND_FN_HG_SND_FILE_HDR: 1234 1234 RT_FALL_THROUGH(); 1235 case HOST_DND_ HG_SND_FILE_DATA:1235 case HOST_DND_FN_HG_SND_FILE_DATA: 1236 1236 { 1237 1237 /* … … 1244 1244 break; 1245 1245 } 1246 case HOST_DND_ CANCEL:1246 case HOST_DND_FN_CANCEL: 1247 1247 { 1248 1248 rc = vbglR3DnDHGRecvCancel(pCtx); … … 1252 1252 } 1253 1253 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 1254 case HOST_DND_ GH_REQ_PENDING:1254 case HOST_DND_FN_GH_REQ_PENDING: 1255 1255 { 1256 1256 rc = vbglR3DnDGHRecvPending(pCtx, &pEvent->u.GH_IsPending.uScreenID); … … 1259 1259 break; 1260 1260 } 1261 case HOST_DND_ GH_EVT_DROPPED:1261 case HOST_DND_FN_GH_EVT_DROPPED: 1262 1262 { 1263 1263 rc = vbglR3DnDGHRecvDropped(pCtx, … … 1359 1359 1360 1360 HGCMMsgHGAck Msg; 1361 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ HG_ACK_OP, 2);1361 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_HG_ACK_OP, 2); 1362 1362 /** @todo Context ID not used yet. */ 1363 1363 Msg.u.v3.uContext.SetUInt32(0); … … 1385 1385 1386 1386 HGCMMsgHGReqData Msg; 1387 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ HG_REQ_DATA, 3);1387 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_HG_REQ_DATA, 3); 1388 1388 /** @todo Context ID not used yet. */ 1389 1389 Msg.u.v3.uContext.SetUInt32(0); … … 1410 1410 1411 1411 HGCMMsgHGProgress Msg; 1412 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ HG_EVT_PROGRESS, 4);1412 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_HG_EVT_PROGRESS, 4); 1413 1413 /** @todo Context ID not used yet. */ 1414 1414 Msg.u.v3.uContext.SetUInt32(0); … … 1445 1445 1446 1446 HGCMMsgGHAckPending Msg; 1447 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ GH_ACK_PENDING, 5);1447 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_GH_ACK_PENDING, 5); 1448 1448 /** @todo Context ID not used yet. */ 1449 1449 Msg.u.v3.uContext.SetUInt32(0); … … 1475 1475 1476 1476 HGCMMsgGHSendDataHdr MsgHdr; 1477 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_ GH_SND_DATA_HDR, 12);1477 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_FN_GH_SND_DATA_HDR, 12); 1478 1478 MsgHdr.uContext.SetUInt32(0); /** @todo Not used yet. */ 1479 1479 MsgHdr.uFlags.SetUInt32(0); /** @todo Not used yet. */ … … 1497 1497 { 1498 1498 HGCMMsgGHSendData MsgData; 1499 VBGL_HGCM_HDR_INIT(&MsgData.hdr, pCtx->uClientID, GUEST_DND_ GH_SND_DATA, 5);1499 VBGL_HGCM_HDR_INIT(&MsgData.hdr, pCtx->uClientID, GUEST_DND_FN_GH_SND_DATA, 5); 1500 1500 MsgData.u.v3.uContext.SetUInt32(0); /** @todo Not used yet. */ 1501 1501 MsgData.u.v3.pvChecksum.SetPtr(NULL, 0); /** @todo Not used yet. */ … … 1554 1554 1555 1555 HGCMMsgGHSendDir Msg; 1556 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ GH_SND_DIR, 4);1556 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_GH_SND_DIR, 4); 1557 1557 /** @todo Context ID not used yet. */ 1558 1558 Msg.u.v3.uContext.SetUInt32(0); … … 1602 1602 1603 1603 HGCMMsgGHSendFileHdr MsgHdr; 1604 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_ GH_SND_FILE_HDR, 6);1604 VBGL_HGCM_HDR_INIT(&MsgHdr.hdr, pCtx->uClientID, GUEST_DND_FN_GH_SND_FILE_HDR, 6); 1605 1605 MsgHdr.uContext.SetUInt32(0); /* Context ID; unused at the moment. */ 1606 1606 MsgHdr.pvName.SetPtr((void *)pcszPath, (uint32_t)(cchPath + 1)); /* Include termination. */ … … 1620 1620 */ 1621 1621 HGCMMsgGHSendFileData Msg; 1622 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ GH_SND_FILE_DATA, 5);1622 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_GH_SND_FILE_DATA, 5); 1623 1623 Msg.u.v3.uContext.SetUInt32(0); 1624 1624 Msg.u.v3.pvChecksum.SetPtr(NULL, 0); … … 1865 1865 1866 1866 HGCMMsgGHError Msg; 1867 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_ GH_EVT_ERROR, 2);1867 VBGL_HGCM_HDR_INIT(&Msg.hdr, pCtx->uClientID, GUEST_DND_FN_GH_EVT_ERROR, 2); 1868 1868 /** @todo Context ID not used yet. */ 1869 1869 Msg.u.v3.uContext.SetUInt32(0); -
trunk/src/VBox/Additions/x11/VBoxClient/draganddrop.cpp
r85566 r85745 3174 3174 } 3175 3175 3176 /* Note: After HOST_DND_ HG_EVT_ENTER there immediately is a move3176 /* Note: After HOST_DND_FN_HG_EVT_ENTER there immediately is a move 3177 3177 * event, so fall through is intentional here. */ 3178 3178 RT_FALL_THROUGH(); … … 3199 3199 } 3200 3200 3201 /* Note: VbglR3DnDRecvNextMsg() will return HOST_DND_ HG_SND_DATA_HDR when3201 /* Note: VbglR3DnDRecvNextMsg() will return HOST_DND_FN_HG_SND_DATA_HDR when 3202 3202 * the host has finished copying over all the data to the guest. 3203 3203 * -
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); -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r85309 r85745 9234 9234 9235 9235 int rc = pVMMDev->hgcmHostCall("VBoxDragAndDropSvc", 9236 DragAndDropSvc::HOST_DND_ SET_MODE, 1 /* cParms */, &parm);9236 DragAndDropSvc::HOST_DND_FN_SET_MODE, 1 /* cParms */, &parm); 9237 9237 if (RT_FAILURE(rc)) 9238 9238 LogRel(("Error changing drag and drop mode: %Rrc\n", rc)); -
trunk/src/VBox/Main/src-client/GuestDnDPrivate.cpp
r85744 r85745 527 527 switch (u32Function) 528 528 { 529 case DragAndDropSvc::GUEST_DND_ CONNECT:529 case DragAndDropSvc::GUEST_DND_FN_CONNECT: 530 530 { 531 531 DragAndDropSvc::PVBOXDNDCBCONNECTDATA pCBData = reinterpret_cast<DragAndDropSvc::PVBOXDNDCBCONNECTDATA>(pvParms); … … 543 543 } 544 544 545 case DragAndDropSvc::GUEST_DND_ REPORT_FEATURES:545 case DragAndDropSvc::GUEST_DND_FN_REPORT_FEATURES: 546 546 { 547 547 DragAndDropSvc::PVBOXDNDCBREPORTFEATURESDATA pCBData = reinterpret_cast<DragAndDropSvc::PVBOXDNDCBREPORTFEATURESDATA>(pvParms); … … 558 558 } 559 559 560 case DragAndDropSvc::GUEST_DND_ DISCONNECT:560 case DragAndDropSvc::GUEST_DND_FN_DISCONNECT: 561 561 { 562 562 LogThisFunc(("Client disconnected\n")); … … 565 565 } 566 566 567 case DragAndDropSvc::GUEST_DND_ HG_ACK_OP:567 case DragAndDropSvc::GUEST_DND_FN_HG_ACK_OP: 568 568 { 569 569 DragAndDropSvc::PVBOXDNDCBHGACKOPDATA pCBData = reinterpret_cast<DragAndDropSvc::PVBOXDNDCBHGACKOPDATA>(pvParms); … … 577 577 } 578 578 579 case DragAndDropSvc::GUEST_DND_ HG_REQ_DATA:579 case DragAndDropSvc::GUEST_DND_FN_HG_REQ_DATA: 580 580 { 581 581 DragAndDropSvc::PVBOXDNDCBHGREQDATADATA pCBData = reinterpret_cast<DragAndDropSvc::PVBOXDNDCBHGREQDATADATA>(pvParms); … … 606 606 } 607 607 608 case DragAndDropSvc::GUEST_DND_ HG_EVT_PROGRESS:608 case DragAndDropSvc::GUEST_DND_FN_HG_EVT_PROGRESS: 609 609 { 610 610 DragAndDropSvc::PVBOXDNDCBHGEVTPROGRESSDATA pCBData = … … 620 620 } 621 621 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 622 case DragAndDropSvc::GUEST_DND_ GH_ACK_PENDING:622 case DragAndDropSvc::GUEST_DND_FN_GH_ACK_PENDING: 623 623 { 624 624 DragAndDropSvc::PVBOXDNDCBGHACKPENDINGDATA pCBData = … … 1319 1319 { 1320 1320 GuestDnDMsg Msg; 1321 Msg.setType(HOST_DND_ CANCEL);1321 Msg.setType(HOST_DND_FN_CANCEL); 1322 1322 if (m_pState->m_uProtocolVersion >= 3) 1323 1323 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ -
trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp
r85744 r85745 275 275 276 276 GuestDnDMsg Msg; 277 Msg.setType(HOST_DND_ GH_REQ_PENDING);277 Msg.setType(HOST_DND_FN_GH_REQ_PENDING); 278 278 if (m_pState->m_uProtocolVersion >= 3) 279 279 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 1127 1127 * Register callbacks. 1128 1128 */ 1129 REGISTER_CALLBACK(GUEST_DND_ CONNECT);1130 REGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1131 REGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1129 REGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1130 REGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1131 REGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1132 1132 if (m_pState->m_uProtocolVersion >= 3) 1133 REGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA_HDR);1134 REGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA);1133 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA_HDR); 1134 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA); 1135 1135 1136 1136 do … … 1140 1140 */ 1141 1141 GuestDnDMsg Msg; 1142 Msg.setType(HOST_DND_ GH_EVT_DROPPED);1142 Msg.setType(HOST_DND_FN_GH_EVT_DROPPED); 1143 1143 if (m_pState->m_uProtocolVersion >= 3) 1144 1144 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 1162 1162 * Unregister callbacks. 1163 1163 */ 1164 UNREGISTER_CALLBACK(GUEST_DND_ CONNECT);1165 UNREGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1166 UNREGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1164 UNREGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1165 UNREGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1166 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1167 1167 if (m_pState->m_uProtocolVersion >= 3) 1168 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA_HDR);1169 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA);1168 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA_HDR); 1169 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA); 1170 1170 1171 1171 #undef REGISTER_CALLBACK … … 1240 1240 */ 1241 1241 /* Guest callbacks. */ 1242 REGISTER_CALLBACK(GUEST_DND_ CONNECT);1243 REGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1244 REGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1242 REGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1243 REGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1244 REGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1245 1245 if (m_pState->m_uProtocolVersion >= 3) 1246 REGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA_HDR);1247 REGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA);1248 REGISTER_CALLBACK(GUEST_DND_ GH_SND_DIR);1246 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA_HDR); 1247 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA); 1248 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DIR); 1249 1249 if (m_pState->m_uProtocolVersion >= 2) 1250 REGISTER_CALLBACK(GUEST_DND_ GH_SND_FILE_HDR);1251 REGISTER_CALLBACK(GUEST_DND_ GH_SND_FILE_DATA);1250 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_FILE_HDR); 1251 REGISTER_CALLBACK(GUEST_DND_FN_GH_SND_FILE_DATA); 1252 1252 1253 1253 const PDNDDROPPEDFILES pDF = &pCtx->Transfer.DroppedFiles; … … 1267 1267 */ 1268 1268 GuestDnDMsg Msg; 1269 Msg.setType(HOST_DND_ GH_EVT_DROPPED);1269 Msg.setType(HOST_DND_FN_GH_EVT_DROPPED); 1270 1270 if (m_pState->m_uProtocolVersion >= 3) 1271 1271 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 1293 1293 * Unregister callbacks. 1294 1294 */ 1295 UNREGISTER_CALLBACK(GUEST_DND_ CONNECT);1296 UNREGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1297 UNREGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1298 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA_HDR);1299 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_DATA);1300 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_DIR);1301 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_FILE_HDR);1302 UNREGISTER_CALLBACK(GUEST_DND_ GH_SND_FILE_DATA);1295 UNREGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1296 UNREGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1297 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1298 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA_HDR); 1299 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DATA); 1300 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_DIR); 1301 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_FILE_HDR); 1302 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_SND_FILE_DATA); 1303 1303 1304 1304 #undef REGISTER_CALLBACK … … 1369 1369 switch (uMsg) 1370 1370 { 1371 case GUEST_DND_ CONNECT:1371 case GUEST_DND_FN_CONNECT: 1372 1372 /* Nothing to do here (yet). */ 1373 1373 break; 1374 1374 1375 case GUEST_DND_ DISCONNECT:1375 case GUEST_DND_FN_DISCONNECT: 1376 1376 rc = VERR_CANCELLED; 1377 1377 break; 1378 1378 1379 1379 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 1380 case GUEST_DND_ GH_SND_DATA_HDR:1380 case GUEST_DND_FN_GH_SND_DATA_HDR: 1381 1381 { 1382 1382 PVBOXDNDCBSNDDATAHDRDATA pCBData = reinterpret_cast<PVBOXDNDCBSNDDATAHDRDATA>(pvParms); … … 1388 1388 break; 1389 1389 } 1390 case GUEST_DND_ GH_SND_DATA:1390 case GUEST_DND_FN_GH_SND_DATA: 1391 1391 { 1392 1392 PVBOXDNDCBSNDDATADATA pCBData = reinterpret_cast<PVBOXDNDCBSNDDATADATA>(pvParms); … … 1398 1398 break; 1399 1399 } 1400 case GUEST_DND_ GH_EVT_ERROR:1400 case GUEST_DND_FN_GH_EVT_ERROR: 1401 1401 { 1402 1402 PVBOXDNDCBEVTERRORDATA pCBData = reinterpret_cast<PVBOXDNDCBEVTERRORDATA>(pvParms); … … 1507 1507 switch (uMsg) 1508 1508 { 1509 case GUEST_DND_ CONNECT:1509 case GUEST_DND_FN_CONNECT: 1510 1510 /* Nothing to do here (yet). */ 1511 1511 break; 1512 1512 1513 case GUEST_DND_ DISCONNECT:1513 case GUEST_DND_FN_DISCONNECT: 1514 1514 rc = VERR_CANCELLED; 1515 1515 break; 1516 1516 1517 1517 #ifdef VBOX_WITH_DRAG_AND_DROP_GH 1518 case GUEST_DND_ GH_SND_DATA_HDR:1518 case GUEST_DND_FN_GH_SND_DATA_HDR: 1519 1519 { 1520 1520 PVBOXDNDCBSNDDATAHDRDATA pCBData = reinterpret_cast<PVBOXDNDCBSNDDATAHDRDATA>(pvParms); … … 1526 1526 break; 1527 1527 } 1528 case GUEST_DND_ GH_SND_DATA:1528 case GUEST_DND_FN_GH_SND_DATA: 1529 1529 { 1530 1530 PVBOXDNDCBSNDDATADATA pCBData = reinterpret_cast<PVBOXDNDCBSNDDATADATA>(pvParms); … … 1536 1536 break; 1537 1537 } 1538 case GUEST_DND_ GH_SND_DIR:1538 case GUEST_DND_FN_GH_SND_DIR: 1539 1539 { 1540 1540 PVBOXDNDCBSNDDIRDATA pCBData = reinterpret_cast<PVBOXDNDCBSNDDIRDATA>(pvParms); … … 1546 1546 break; 1547 1547 } 1548 case GUEST_DND_ GH_SND_FILE_HDR:1548 case GUEST_DND_FN_GH_SND_FILE_HDR: 1549 1549 { 1550 1550 PVBOXDNDCBSNDFILEHDRDATA pCBData = reinterpret_cast<PVBOXDNDCBSNDFILEHDRDATA>(pvParms); … … 1557 1557 break; 1558 1558 } 1559 case GUEST_DND_ GH_SND_FILE_DATA:1559 case GUEST_DND_FN_GH_SND_FILE_DATA: 1560 1560 { 1561 1561 PVBOXDNDCBSNDFILEDATADATA pCBData = reinterpret_cast<PVBOXDNDCBSNDFILEDATADATA>(pvParms); … … 1582 1582 break; 1583 1583 } 1584 case GUEST_DND_ GH_EVT_ERROR:1584 case GUEST_DND_FN_GH_EVT_ERROR: 1585 1585 { 1586 1586 PVBOXDNDCBEVTERRORDATA pCBData = reinterpret_cast<PVBOXDNDCBEVTERRORDATA>(pvParms); -
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r85744 r85745 315 315 { 316 316 GuestDnDMsg Msg; 317 Msg.setType(HOST_DND_ HG_EVT_ENTER);317 Msg.setType(HOST_DND_FN_HG_EVT_ENTER); 318 318 if (m_pState->m_uProtocolVersion >= 3) 319 319 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 392 392 { 393 393 GuestDnDMsg Msg; 394 Msg.setType(HOST_DND_ HG_EVT_MOVE);394 Msg.setType(HOST_DND_FN_HG_EVT_MOVE); 395 395 if (m_pState->m_uProtocolVersion >= 3) 396 396 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 439 439 440 440 GuestDnDMsg Msg; 441 Msg.setType(HOST_DND_ HG_EVT_LEAVE);441 Msg.setType(HOST_DND_FN_HG_EVT_LEAVE); 442 442 if (m_pState->m_uProtocolVersion >= 3) 443 443 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 515 515 { 516 516 GuestDnDMsg Msg; 517 Msg.setType(HOST_DND_ HG_EVT_DROPPED);517 Msg.setType(HOST_DND_FN_HG_EVT_DROPPED); 518 518 if (m_pState->m_uProtocolVersion >= 3) 519 519 Msg.appendUInt32(0); /** @todo ContextID not used yet. */ … … 851 851 { 852 852 GuestDnDMsg Msg; 853 Msg.setType(HOST_DND_ HG_SND_DATA);853 Msg.setType(HOST_DND_FN_HG_SND_DATA); 854 854 855 855 if (m_pState->m_uProtocolVersion < 3) … … 905 905 906 906 GuestDnDMsg Msg; 907 Msg.setType(HOST_DND_ HG_SND_DATA_HDR);907 Msg.setType(HOST_DND_FN_HG_SND_DATA_HDR); 908 908 909 909 LogRel2(("DnD: Sending meta data header to guest (%RU64 bytes total data, %RU32 bytes meta data, %RU64 objects)\n", … … 949 949 LogRel2(("DnD: Transferring host directory '%s' to guest\n", DnDTransferObjectGetSourcePath(pObj))); 950 950 951 pMsg->setType(HOST_DND_ HG_SND_DIR);951 pMsg->setType(HOST_DND_FN_HG_SND_DIR); 952 952 if (m_pState->m_uProtocolVersion >= 3) 953 953 pMsg->appendUInt32(0); /** @todo ContextID not used yet. */ … … 1010 1010 * The just registered callback will be called by the guest afterwards. 1011 1011 */ 1012 pMsg->setType(HOST_DND_ HG_SND_FILE_HDR);1012 pMsg->setType(HOST_DND_FN_HG_SND_FILE_HDR); 1013 1013 pMsg->appendUInt32(0); /** @todo ContextID not used yet. */ 1014 1014 pMsg->appendString(pcszDstPath); /* pvName */ … … 1072 1072 1073 1073 /* Set the message type. */ 1074 pMsg->setType(HOST_DND_ HG_SND_FILE_DATA);1074 pMsg->setType(HOST_DND_FN_HG_SND_FILE_DATA); 1075 1075 1076 1076 const char *pcszSrcPath = DnDTransferObjectGetSourcePath(pObj); … … 1078 1078 1079 1079 /* Protocol version 1 sends the file path *every* time with a new file chunk. 1080 * In protocol version 2 we only do this once with HOST_DND_ HG_SND_FILE_HDR. */1080 * In protocol version 2 we only do this once with HOST_DND_FN_HG_SND_FILE_HDR. */ 1081 1081 if (m_pState->m_uProtocolVersion <= 1) 1082 1082 { … … 1168 1168 switch (uMsg) 1169 1169 { 1170 case GUEST_DND_ CONNECT:1170 case GUEST_DND_FN_CONNECT: 1171 1171 /* Nothing to do here (yet). */ 1172 1172 break; 1173 1173 1174 case GUEST_DND_ DISCONNECT:1174 case GUEST_DND_FN_DISCONNECT: 1175 1175 rc = VERR_CANCELLED; 1176 1176 break; 1177 1177 1178 case GUEST_DND_ GET_NEXT_HOST_MSG:1178 case GUEST_DND_FN_GET_NEXT_HOST_MSG: 1179 1179 { 1180 1180 PVBOXDNDCBHGGETNEXTHOSTMSG pCBData = reinterpret_cast<PVBOXDNDCBHGGETNEXTHOSTMSG>(pvParms); … … 1197 1197 if (RT_SUCCESS(rc)) /* Return message type & required parameter count to the guest. */ 1198 1198 { 1199 LogFlowFunc(("GUEST_DND_ GET_NEXT_HOST_MSG -> %RU32 (%RU32 params)\n", pMsg->getType(), pMsg->getCount()));1199 LogFlowFunc(("GUEST_DND_FN_GET_NEXT_HOST_MSG -> %RU32 (%RU32 params)\n", pMsg->getType(), pMsg->getCount())); 1200 1200 pCBData->uMsg = pMsg->getType(); 1201 1201 pCBData->cParms = pMsg->getCount(); … … 1216 1216 break; 1217 1217 } 1218 case GUEST_DND_ GH_EVT_ERROR:1218 case GUEST_DND_FN_GH_EVT_ERROR: 1219 1219 { 1220 1220 PVBOXDNDCBEVTERRORDATA pCBData = reinterpret_cast<PVBOXDNDCBEVTERRORDATA>(pvParms); … … 1240 1240 break; 1241 1241 } 1242 case HOST_DND_ HG_SND_DIR:1243 case HOST_DND_ HG_SND_FILE_HDR:1244 case HOST_DND_ HG_SND_FILE_DATA:1242 case HOST_DND_FN_HG_SND_DIR: 1243 case HOST_DND_FN_HG_SND_FILE_HDR: 1244 case HOST_DND_FN_HG_SND_FILE_DATA: 1245 1245 { 1246 1246 PVBOXDNDCBHGGETNEXTHOSTMSGDATA pCBData … … 1400 1400 */ 1401 1401 /* Guest callbacks. */ 1402 REGISTER_CALLBACK(GUEST_DND_ CONNECT);1403 REGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1404 REGISTER_CALLBACK(GUEST_DND_ GET_NEXT_HOST_MSG);1405 REGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1402 REGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1403 REGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1404 REGISTER_CALLBACK(GUEST_DND_FN_GET_NEXT_HOST_MSG); 1405 REGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1406 1406 /* Host callbacks. */ 1407 REGISTER_CALLBACK(HOST_DND_ HG_SND_DIR);1407 REGISTER_CALLBACK(HOST_DND_FN_HG_SND_DIR); 1408 1408 if (m_pState->m_uProtocolVersion >= 2) 1409 REGISTER_CALLBACK(HOST_DND_ HG_SND_FILE_HDR);1410 REGISTER_CALLBACK(HOST_DND_ HG_SND_FILE_DATA);1409 REGISTER_CALLBACK(HOST_DND_FN_HG_SND_FILE_HDR); 1410 REGISTER_CALLBACK(HOST_DND_FN_HG_SND_FILE_DATA); 1411 1411 1412 1412 do … … 1495 1495 */ 1496 1496 /* Guest callbacks. */ 1497 UNREGISTER_CALLBACK(GUEST_DND_ CONNECT);1498 UNREGISTER_CALLBACK(GUEST_DND_ DISCONNECT);1499 UNREGISTER_CALLBACK(GUEST_DND_ GET_NEXT_HOST_MSG);1500 UNREGISTER_CALLBACK(GUEST_DND_ GH_EVT_ERROR);1497 UNREGISTER_CALLBACK(GUEST_DND_FN_CONNECT); 1498 UNREGISTER_CALLBACK(GUEST_DND_FN_DISCONNECT); 1499 UNREGISTER_CALLBACK(GUEST_DND_FN_GET_NEXT_HOST_MSG); 1500 UNREGISTER_CALLBACK(GUEST_DND_FN_GH_EVT_ERROR); 1501 1501 /* Host callbacks. */ 1502 UNREGISTER_CALLBACK(HOST_DND_ HG_SND_DIR);1502 UNREGISTER_CALLBACK(HOST_DND_FN_HG_SND_DIR); 1503 1503 if (m_pState->m_uProtocolVersion >= 2) 1504 UNREGISTER_CALLBACK(HOST_DND_ HG_SND_FILE_HDR);1505 UNREGISTER_CALLBACK(HOST_DND_ HG_SND_FILE_DATA);1504 UNREGISTER_CALLBACK(HOST_DND_FN_HG_SND_FILE_HDR); 1505 UNREGISTER_CALLBACK(HOST_DND_FN_HG_SND_FILE_DATA); 1506 1506 1507 1507 #undef REGISTER_CALLBACK … … 1606 1606 1607 1607 /** @todo At the moment we only allow sending up to 64K raw data. 1608 * For protocol v1+v2: Fix this by using HOST_DND_ HG_SND_MORE_DATA.1609 * For protocol v3 : Send another HOST_DND_ HG_SND_DATA message. */1608 * For protocol v1+v2: Fix this by using HOST_DND_FN_HG_SND_MORE_DATA. 1609 * For protocol v3 : Send another HOST_DND_FN_HG_SND_DATA message. */ 1610 1610 if (!pCtx->Meta.cbData) 1611 1611 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.