Changeset 100522 in vbox for trunk/include
- Timestamp:
- Jul 11, 2023 4:52:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard-transfers.h
r100468 r100522 519 519 520 520 /** 521 * Structure for a Shared Clipboard transfer object.522 */523 typedef struct _SHCLTRANSFEROBJ524 {525 /** Handle of the object. */526 SHCLOBJHANDLE uHandle;527 /** Absolute (local) path of the object. Source-style path. */528 char *pszPathAbs;529 /** Object information. */530 SHCLFSOBJINFO objInfo;531 /** Object type. */532 SHCLSOURCE enmSource;533 /** Current state. */534 SHCLTRANSFEROBJSTATE State;535 } SHCLTRANSFEROBJ;536 /** Pointer to a Shared Clipboard transfer object. */537 typedef SHCLTRANSFEROBJ *PSHCLTRANSFEROBJ;538 539 /**540 521 * Enumeration for specifying a Shared Clipboard object type. 541 522 */ … … 553 534 SHCLOBJTYPE_32BIT_SIZE_HACK = 0x7fffffff 554 535 } SHCLOBJTYPE; 536 537 /** 538 * Structure for a single Shared Clipboard transfer object. 539 */ 540 typedef struct _SHCLTRANSFEROBJ 541 { 542 /** The list node. */ 543 RTLISTNODE Node; 544 /** Handle of the object. */ 545 SHCLOBJHANDLE hObj; 546 /** Absolute (local) path of the object. Source-style path. */ 547 char *pszPathLocalAbs; 548 /** Object file system information. */ 549 SHCLFSOBJINFO objInfo; 550 /** Source the object originates from. */ 551 SHCLSOURCE enmSource; 552 /** Current state. */ 553 SHCLTRANSFEROBJSTATE State; 554 /** Type of object handle. */ 555 SHCLOBJTYPE enmType; 556 /** Data union, based on \a enmType. */ 557 union 558 { 559 /** Local data. */ 560 struct 561 { 562 union 563 { 564 RTDIR hDir; 565 RTFILE hFile; 566 }; 567 } Local; 568 } u; 569 } SHCLTRANSFEROBJ; 570 /** Pointer to a Shared Clipboard transfer object. */ 571 typedef SHCLTRANSFEROBJ *PSHCLTRANSFEROBJ; 555 572 556 573 /** … … 586 603 587 604 /** 588 * Structure for keeping transfer object handle information.589 * This is using to map own (local) handles to the underlying file system.590 */591 typedef struct _SHCLOBJHANDLEINFO592 {593 /** The list node. */594 RTLISTNODE Node;595 /** The object's handle. */596 SHCLOBJHANDLE hObj;597 /** Type of object handle. */598 SHCLOBJTYPE enmType;599 /** Absolute local path of the object. */600 char *pszPathLocalAbs;601 /** Data union, based on \a enmType. */602 union603 {604 /** Local data. */605 struct606 {607 union608 {609 RTDIR hDir;610 RTFILE hFile;611 };612 } Local;613 } u;614 } SHCLOBJHANDLEINFO;615 /** Pointer to a Shared Clipboard transfer object handle. */616 typedef SHCLOBJHANDLEINFO *PSHCLOBJHANDLEINFO;617 618 /**619 605 * Structure for maintaining an Shared Clipboard transfer state. 620 606 * Everything in here will be part of a saved state (later). … … 853 839 DECLCALLBACKMEMBER(void, pfnOnStarted,(PSHCLTRANSFERCALLBACKCTX pCbCtx)); 854 840 /** 855 * Called when the transfer has been complete .841 * Called when the transfer has been completed. 856 842 * 857 843 * @param pCbCtx Pointer to callback context to use. … … 1106 1092 bool ShClTransferObjCtxIsValid(PSHCLCLIENTTRANSFEROBJCTX pObjCtx); 1107 1093 1108 int ShClTransferObj HandleInfoInit(PSHCLOBJHANDLEINFO pInfo);1109 void ShClTransferObj HandleInfoDestroy(PSHCLOBJHANDLEINFO pInfo);1094 int ShClTransferObjInit(PSHCLTRANSFEROBJ pObj); 1095 void ShClTransferObjDestroy(PSHCLTRANSFEROBJ pObj); 1110 1096 1111 1097 int ShClTransferObjOpenParmsInit(PSHCLOBJOPENCREATEPARMS pParms); … … 1118 1104 int ShClTransferObjRead(PSHCLTRANSFER pTransfer, SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t fFlags, uint32_t *pcbRead); 1119 1105 int ShClTransferObjWrite(PSHCLTRANSFER pTransfer, SHCLOBJHANDLE hObj, void *pvBuf, uint32_t cbBuf, uint32_t fFlags, uint32_t *pcbWritten); 1120 PSHCL OBJHANDLEINFOShClTransferObjGet(PSHCLTRANSFER pTransfer, SHCLOBJHANDLE hObj);1106 PSHCLTRANSFEROBJ ShClTransferObjGet(PSHCLTRANSFER pTransfer, SHCLOBJHANDLE hObj); 1121 1107 1122 1108 PSHCLOBJDATACHUNK ShClTransferObjDataChunkDup(PSHCLOBJDATACHUNK pDataChunk);
Note:
See TracChangeset
for help on using the changeset viewer.