VirtualBox

Ignore:
Timestamp:
Sep 17, 2019 9:05:21 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133415
Message:

Shared Clipboard/URI: More code for transfer channel handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/VBoxClipboardSvc.h

    r80662 r80845  
    109109#define VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT               3
    110110
    111 /** Initiates a new transfer (read / write) on the guest side. */
    112 #define VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_TRANSFER_START           50
     111/** Sends a transfer status to the guest side. */
     112#define VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_TRANSFER_STATUS          50
    113113/** Reads the root list header from the guest. */
    114114#define VBOX_SHARED_CLIPBOARD_HOST_MSG_URI_ROOT_LIST_HDR_READ       51
     
    226226#define VBOX_SHARED_CLIPBOARD_MAX_CHUNK_SIZE                  _64K
    227227
    228 /**
    229  * Creates a context ID out of a source ID and and event ID.
    230  */
    231 #define VBOX_SHARED_CLIPBOARD_CONTEXTID_MAKE(uSourceID, uEventID) \
    232     RT_MAKE_U32(uEventID, uSourceID)
    233 /** Gets the source ID out of a context ID. */
    234 #define VBOX_SHARED_CLIPBOARD_CONTEXTID_GET_SOURCE(uContextID) \
    235     RT_HI_U16(uContextID)
    236 /** Gets the event ID out of a context ID. */
    237 #define VBOX_SHARED_CLIPBOARD_CONTEXTID_GET_EVENT(uContextID) \
    238     RT_LO_U16(uContextID)
    239 
    240228/*
    241229 * HGCM parameter structures.
     
    354342#define VBOX_SHARED_CLIPBOARD_CPARMS_WRITE_DATA 4
    355343
    356 typedef struct _VBoxClipboardTransferReport
     344/**
     345 * Reports a transfer status.
     346 */
     347typedef struct _VBoxClipboardTransferStatusMsg
    357348{
    358349    VBGLIOCHGCMCALL hdr;
     
    360351    /** uint32_t, out: Context ID. */
    361352    HGCMFunctionParameter uContext;
    362     /** uint32_t, out: Status to report. */
    363     HGCMFunctionParameter uStatus;
    364 } VBoxClipboardTransferReport;
    365 
    366 #define VBOX_SHARED_CLIPBOARD_CPARMS_TRANSFER_REPORT 2
     353    /** uint32_t, out: Direction of transfer; of type SHCLURITRANSFERDIR_. */
     354    HGCMFunctionParameter enmDir;
     355    /** uint32_t, out: Status to report; of type SHCLURITRANSFERSTATUS_. */
     356    HGCMFunctionParameter enmStatus;
     357    /** uint32_t, out: Result code to report. Optional. */
     358    HGCMFunctionParameter rc;
     359    /** uint32_t, out: Reporting flags. Currently unused and must be 0. */
     360    HGCMFunctionParameter fFlags;
     361} VBoxClipboardTransferStatusMsg;
     362
     363#define VBOX_SHARED_CLIPBOARD_CPARMS_TRANSFER_STATUS 5
    367364
    368365/**
     
    401398
    402399/**
    403  * Transfert status message.
     400 * Status messag for lists and objects.
    404401 */
    405402typedef struct _VBoxClipboardStatusMsg
     
    419416#define VBOX_SHARED_CLIPBOARD_CPARMS_STATUS 4
    420417
     418/** Invalid message type, do not use. */
    421419#define VBOX_SHCL_REPLYMSGTYPE_INVALID           0
    422 #define VBOX_SHCL_REPLYMSGTYPE_LIST_OPEN         1
    423 #define VBOX_SHCL_REPLYMSGTYPE_LIST_CLOSE        2
    424 #define VBOX_SHCL_REPLYMSGTYPE_OBJ_OPEN          3
    425 #define VBOX_SHCL_REPLYMSGTYPE_OBJ_CLOSE         4
     420/** Replies a transfer status. */
     421#define VBOX_SHCL_REPLYMSGTYPE_TRANSFER_STATUS   1
     422/** Replies a list open status. */
     423#define VBOX_SHCL_REPLYMSGTYPE_LIST_OPEN         2
     424/** Replies a list close status. */
     425#define VBOX_SHCL_REPLYMSGTYPE_LIST_CLOSE        3
     426/** Replies an object open status. */
     427#define VBOX_SHCL_REPLYMSGTYPE_OBJ_OPEN          4
     428/** Replies an object close status. */
     429#define VBOX_SHCL_REPLYMSGTYPE_OBJ_CLOSE         5
    426430
    427431/**
     
    444448    union
    445449    {
     450        struct
     451        {
     452            HGCMFunctionParameter enmStatus;
     453        } TransferStatus;
    446454        struct
    447455        {
     
    459467} VBoxClipboardReplyMsg;
    460468
     469/** Minimum parameters (HGCM function parameters minus the union) a reply message must have. */
    461470#define VBOX_SHARED_CLIPBOARD_CPARMS_REPLY_MIN 5
    462471
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette