Changeset 106789 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Oct 30, 2024 12:29:50 PM (3 months ago)
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-ipc.cpp
r106788 r106789 115 115 switch (pPacket->idCmd) 116 116 { 117 case vbcl::ipc:: CLIP_FORMATS:118 case vbcl::ipc:: CLIP_FORMAT:117 case vbcl::ipc::VBOX_FORMATS: 118 case vbcl::ipc::VBOX_FORMAT: 119 119 cbPayload = sizeof(vbcl::ipc::data::formats_packet_t); 120 120 break; 121 121 122 case vbcl::ipc:: CLIP_DATA:122 case vbcl::ipc::VBOX_DATA: 123 123 { 124 124 vbcl::ipc::data::data_packet_t *pDataEx = (vbcl::ipc::data::data_packet_t *)pPacket; … … 255 255 Packet.Hdr.u64Crc = 0; 256 256 Packet.Hdr.uSessionId = uSessionId; 257 Packet.Hdr.idCmd = CLIP_FORMATS;257 Packet.Hdr.idCmd = VBOX_FORMATS; 258 258 Packet.Hdr.cbData = sizeof(Packet); 259 259 … … 283 283 if (RT_SUCCESS(rc)) 284 284 { 285 if ( pPacket->Hdr.idCmd == CLIP_FORMATS285 if ( pPacket->Hdr.idCmd == VBOX_FORMATS 286 286 && vbcl::ipc::packet_verify(&pPacket->Hdr, pPacket->Hdr.cbData)) 287 287 { … … 312 312 Packet.Hdr.u64Crc = 0; 313 313 Packet.Hdr.uSessionId = uSessionId; 314 Packet.Hdr.idCmd = CLIP_FORMAT;314 Packet.Hdr.idCmd = VBOX_FORMAT; 315 315 Packet.Hdr.cbData = sizeof(Packet); 316 316 … … 340 340 if (RT_SUCCESS(rc)) 341 341 { 342 if ( pPacket->Hdr.idCmd == CLIP_FORMAT342 if ( pPacket->Hdr.idCmd == VBOX_FORMAT 343 343 && vbcl::ipc::packet_verify(&pPacket->Hdr, pPacket->Hdr.cbData)) 344 344 { … … 377 377 pPacket->Hdr.u64Crc = 0; 378 378 pPacket->Hdr.uSessionId = uSessionId; 379 pPacket->Hdr.idCmd = CLIP_DATA;379 pPacket->Hdr.idCmd = VBOX_DATA; 380 380 pPacket->Hdr.cbData = sizeof(vbcl::ipc::data::data_packet_t) + cbData; 381 381 pPacket->cbData = cbData; … … 407 407 if (RT_SUCCESS(rc)) 408 408 { 409 if ( pPacket->Hdr.idCmd == CLIP_DATA409 if ( pPacket->Hdr.idCmd == VBOX_DATA 410 410 && vbcl::ipc::packet_verify(&pPacket->Hdr, pPacket->Hdr.cbData)) 411 411 { -
trunk/src/VBox/Additions/x11/VBoxClient/wayland-helper-ipc.h
r106788 r106789 81 81 /** Send or receive list of clipboard formats which 82 82 * host or guest announces. */ 83 CLIP_FORMATS,83 VBOX_FORMATS, 84 84 /** Send or receive a clipboard format which host 85 85 * or guest requests. */ 86 CLIP_FORMAT,86 VBOX_FORMAT, 87 87 /** Send or receive clipboard data in given format. */ 88 CLIP_DATA,88 VBOX_DATA, 89 89 /** Termination of commands list. */ 90 90 CMD_MAX … … 160 160 namespace data 161 161 { 162 /** Payload for IPC commands CLIP_FORMATS and CLIP_FORMAT. */162 /** Payload for IPC commands VBOX_FORMATS and VBOX_FORMAT. */ 163 163 typedef struct 164 164 { … … 169 169 } formats_packet_t; 170 170 171 /** Payload for IPC command CLIP_DATA. */171 /** Payload for IPC command VBOX_DATA. */ 172 172 typedef struct 173 173 { … … 195 195 const flow_t HGCopyFlow[4] = 196 196 { 197 { CLIP_FORMATS, FLOW_DIRECTION_CLIENT },198 { CLIP_FORMAT, FLOW_DIRECTION_SERVER },199 { CLIP_DATA, FLOW_DIRECTION_CLIENT },197 { VBOX_FORMATS, FLOW_DIRECTION_CLIENT }, 198 { VBOX_FORMAT, FLOW_DIRECTION_SERVER }, 199 { VBOX_DATA, FLOW_DIRECTION_CLIENT }, 200 200 { CMD_MAX, false } 201 201 }; … … 204 204 const flow_t GHCopyFlow[3] = 205 205 { 206 { CLIP_FORMAT, FLOW_DIRECTION_CLIENT },207 { CLIP_DATA, FLOW_DIRECTION_SERVER },206 { VBOX_FORMAT, FLOW_DIRECTION_CLIENT }, 207 { VBOX_DATA, FLOW_DIRECTION_SERVER }, 208 208 { CMD_MAX, false } 209 209 }; … … 213 213 const flow_t GHAnnounceAndCopyFlow[4] = 214 214 { 215 { CLIP_FORMATS, FLOW_DIRECTION_SERVER },216 { CLIP_FORMAT, FLOW_DIRECTION_CLIENT },217 { CLIP_DATA, FLOW_DIRECTION_SERVER },215 { VBOX_FORMATS, FLOW_DIRECTION_SERVER }, 216 { VBOX_FORMAT, FLOW_DIRECTION_CLIENT }, 217 { VBOX_DATA, FLOW_DIRECTION_SERVER }, 218 218 { CMD_MAX, false } 219 219 }; … … 369 369 switch(enmCmd) 370 370 { 371 case CLIP_FORMATS:371 case VBOX_FORMATS: 372 372 { 373 373 if (fShouldSend) … … 378 378 } 379 379 380 case CLIP_FORMAT:380 case VBOX_FORMAT: 381 381 { 382 382 if (fShouldSend) … … 387 387 } 388 388 389 case CLIP_DATA:389 case VBOX_DATA: 390 390 { 391 391 if (fShouldSend)
Note:
See TracChangeset
for help on using the changeset viewer.