Changeset 78648 in vbox for trunk/include/VBox
- Timestamp:
- May 22, 2019 9:30:34 AM (6 years ago)
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard-uri.h
r78581 r78648 329 329 }; 330 330 331 /** 332 * Structure for keeping Shared Clipboard meta data. 333 * 334 * For URI transfers this represents a string list with the file object root entries in it. 335 */ 336 typedef struct _SHAREDCLIPBOARDMETADATA 337 { 338 /** Actual meta data block. */ 339 void *pvMeta; 340 /** Total size (in bytes) of the allocated meta data block .*/ 341 size_t cbMeta; 342 /** How many bytes are being used in the meta data block. */ 343 size_t cbUsed; 344 } SHAREDCLIPBOARDMETADATA, *PSHAREDCLIPBOARDMETADATA; 345 346 int SharedClipboardMetaDataInit(PSHAREDCLIPBOARDMETADATA pMeta); 347 void SharedClipboardMetaDataDestroy(PSHAREDCLIPBOARDMETADATA pMeta); 348 int SharedClipboardMetaDataAdd(PSHAREDCLIPBOARDMETADATA pMeta, const void *pvDataAdd, uint32_t cbDataAdd); 349 int SharedClipboardMetaDataResize(PSHAREDCLIPBOARDMETADATA pMeta, size_t cbNewSize); 350 size_t SharedClipboardMetaDataGetUsed(PSHAREDCLIPBOARDMETADATA pMeta); 351 size_t SharedClipboardMetaDataGetSize(PSHAREDCLIPBOARDMETADATA pMeta); 352 const void *SharedClipboardMetaDataRaw(PSHAREDCLIPBOARDMETADATA pMeta); 353 331 354 #endif /* !VBOX_INCLUDED_GuestHost_SharedClipboard_uri_h */ 332 355 -
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r78624 r78648 202 202 } VBoxClipboardWriteDataHdrMsg; 203 203 204 typedef struct _VBOXCLIPBOARDWRITEDATACHUNK 205 { 206 /** Data block buffer. */ 207 void *pvData; 208 /** Size (in bytes) of data block. */ 209 uint32_t cbData; 210 /** (Rolling) Checksum. Not yet implemented. */ 211 void *pvChecksum; 212 /** Size (in bytes) of checksum. Not yet implemented. */ 213 uint32_t cbChecksum; 214 } VBOXCLIPBOARDWRITEDATACHUNK, *PVBOXCLIPBOARDWRITEDATACHUNK; 204 #define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_HDR 12 215 205 216 206 /** … … 236 226 } VBoxClipboardWriteDataChunkMsg; 237 227 228 #define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA_CHUNK 5 229 238 230 /** 239 231 * Sends a directory entry. … … 255 247 HGCMFunctionParameter fMode; /* OUT uint32_t */ 256 248 } VBoxClipboardWriteDirMsg; 249 250 #define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DIR 4 257 251 258 252 /** … … 280 274 } VBoxClipboardWriteFileHdrMsg; 281 275 276 #define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_HDR 6 277 282 278 /** 283 279 * Sends data of a file entry. … … 303 299 } VBoxClipboardWriteFileDataMsg; 304 300 301 #define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_FILE_DATA 5 302 305 303 /** 306 304 * Sends an error event. … … 340 338 CB_MAGIC_CLIPBOARD_WRITE_ERROR = VBOX_CLIPBOARD_CB_MAGIC_MAKE(VBOX_SHARED_CLIPBOARD_FN_WRITE_ERROR, 0) 341 339 }; 342 343 typedef struct _VBOXCLIPBOARDCBHEADERDATA344 {345 /** Magic number to identify the structure. */346 uint32_t uMagic;347 /** Context ID to identify callback data. */348 uint32_t uContextID;349 } VBOXCLIPBOARDCBHEADERDATA, *PVBOXCLIPBOARDCBHEADERDATA;350 340 351 341 /** … … 382 372 } VBOXCLIPBOARDDATAHDR, *PVBOXCLIPBOARDDATAHDR; 383 373 384 typedef struct _VBOXCLIPBOARDCBWRITEDATAHDRDATA 385 { 386 /** Callback data header. */ 387 VBOXCLIPBOARDCBHEADERDATA hdr; 388 /** Actual header data. */ 389 VBOXCLIPBOARDDATAHDR data; 390 } VBOXCLIPBOARDCBWRITEDATAHDRDATA, *PVBOXCLIPBOARDCBWRITEDATAHDRDATA; 391 392 typedef struct VBOXCLIPBOARDSNDDATA 374 typedef struct _VBOXCLIPBOARDDATACHUNK 393 375 { 394 376 /** Data block buffer. */ … … 400 382 /** Size (in bytes) of checksum. Not yet implemented. */ 401 383 uint32_t cbChecksum; 402 } VBOXCLIPBOARDSNDDATA, *PVBOXCLIPBOARDSNDDATA; 403 404 typedef struct VBOXCLIPBOARDCBSNDDATADATA 405 { 406 /** Callback data header. */ 407 VBOXCLIPBOARDCBHEADERDATA hdr; 408 /** Actual data. */ 409 VBOXCLIPBOARDSNDDATA data; 410 } VBOXCLIPBOARDCBDATADATA, *PVBOXCLIPBOARDCBSNDDATADATA; 411 412 typedef struct _VBOXCLIPBOARDCBWRITEDIRDATA 413 { 414 /** Callback data header. */ 415 VBOXCLIPBOARDCBHEADERDATA hdr; 384 } VBOXCLIPBOARDDATACHUNK, *PVBOXCLIPBOARDDATACHUNK; 385 386 typedef struct _VBOXCLIPBOARDDIRDATA 387 { 416 388 /** Directory path. */ 417 389 char *pszPath; … … 420 392 /** Directory creation mode. */ 421 393 uint32_t fMode; 422 } VBOXCLIPBOARDCBWRITEDIRDATA, *PVBOXCLIPBOARDCBWRITEDIRDATA; 423 424 typedef struct _VBOXCLIPBOARDCBWRITEFILEHDRDATA 425 { 426 /** Callback data header. */ 427 VBOXCLIPBOARDCBHEADERDATA hdr; 394 } VBOXCLIPBOARDDIRDATA, *PVBOXCLIPBOARDDIRDATA; 395 396 typedef struct _VBOXCLIPBOARDFILEHDR 397 { 428 398 /** File path (name). */ 429 399 char *pszFilePath; … … 436 406 /** Additional flags. Not used at the moment. */ 437 407 uint32_t fFlags; 438 } VBOXCLIPBOARDCBWRITEFILEHDRDATA, *PVBOXCLIPBOARDCBWRITEFILEHDRDATA; 439 440 typedef struct _VBOXCLIPBOARDCBWRITEFILEDATADATA 441 { 442 /** Callback data header. */ 443 VBOXCLIPBOARDCBHEADERDATA hdr; 408 } VBOXCLIPBOARDFILEHDR, *PVBOXCLIPBOARDFILEHDR; 409 410 typedef struct _VBOXCLIPBOARDFILEDATA 411 { 444 412 /** Current file data chunk. */ 445 413 void *pvData; … … 450 418 /** Size (in bytes) of current data chunk. */ 451 419 uint32_t cbChecksum; 452 } VBOXCLIPBOARDCBWRITEFILEDATADATA, *PVBOXCLIPBOARDCBWRITEFILEDATADATA; 453 454 typedef struct _VBOXCLIPBOARDCBEVTERRORDATA 455 { 456 /** Callback data header. */ 457 VBOXCLIPBOARDCBHEADERDATA hdr; 420 } VBOXCLIPBOARDFILEDATA, *PVBOXCLIPBOARDFILEDATA; 421 422 typedef struct _VBOXCLIPBOARDERRORDATA 423 { 458 424 int32_t rc; 459 } VBOXCLIPBOARD CBEVTERRORDATA, *PVBOXCLIPBOARDCBEVTERRORDATA;425 } VBOXCLIPBOARDERRORDATA, *PVBOXCLIPBOARDERRORDATA; 460 426 # endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */ 461 427 … … 464 430 void VBoxSvcClipboardUnlock(void); 465 431 432 bool VBoxSvcClipboardDataHdrIsValid(PVBOXCLIPBOARDDATAHDR pData); 433 bool VBoxSvcClipboardDataChunkIsValid(PVBOXCLIPBOARDDATACHUNK pData); 434 bool VBoxSvcClipboardDirDataIsValid(PVBOXCLIPBOARDDIRDATA pData); 435 bool VBoxSvcClipboardFileHdrIsValid(PVBOXCLIPBOARDFILEHDR pFileHdr, PVBOXCLIPBOARDDATAHDR pDataHdr); 436 bool VBoxSvcClipboardFileDataIsValid(PVBOXCLIPBOARDFILEDATA pData, PVBOXCLIPBOARDDATAHDR pDataHdr); 437 466 438 #endif /* !VBOX_INCLUDED_HostServices_VBoxClipboardSvc_h */
Note:
See TracChangeset
for help on using the changeset viewer.