VirtualBox

Changeset 82493 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
Dec 7, 2019 11:37:51 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135345
Message:

VBox/HostServices/VBoxClipboardSvc.h,++: Moved the formats and context ID stuff (back) to where these belong. The VBoxClipboardSvc.h header defines the service interface, while the VBox/GuestHost/ stuff is an library interface that's implementation specific and ultimately optional (for clients anyway). bugref:9437

Location:
trunk/include/VBox/GuestHost
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r82491 r82493  
    4242
    4343#include <VBox/GuestHost/SharedClipboard.h>
     44#include <VBox/HostServices/VBoxClipboardSvc.h>
    4445
    4546
  • trunk/include/VBox/GuestHost/SharedClipboard.h

    r82483 r82493  
    5151
    5252
    53 /** A single Shared Clipboard format. */
     53/** A single Shared Clipboard format (VBOX_SHCL_FMT_XXX). */
    5454typedef uint32_t SHCLFORMAT;
    55 /** Pointer to a single Shared Clipboard format. */
     55/** Pointer to a single Shared Clipboard format (VBOX_SHCL_FMT_XXX). */
    5656typedef SHCLFORMAT *PSHCLFORMAT;
    5757
    58 /** Bit map of Shared Clipboard formats. */
     58/** Bit map (flags) of Shared Clipboard formats (VBOX_SHCL_FMT_XXX). */
    5959typedef uint32_t SHCLFORMATS;
    60 /** Pointer to a bit map of Shared Clipboard formats. */
     60/** Pointer to a bit map of Shared Clipboard formats (VBOX_SHCL_FMT_XXX). */
    6161typedef SHCLFORMATS *PSHCLFORMATS;
    6262
    63 /** @name VBOX_SHCL_FMT_XXX - Data formats (flags) for Shared Clipboard.
    64  * @todo r=bird: Wrong header, belongs in the host service!
    65  * @{
    66  */
    67 /** No format set. */
    68 #define VBOX_SHCL_FMT_NONE          0
    69 /** Shared Clipboard format is an Unicode text. */
    70 #define VBOX_SHCL_FMT_UNICODETEXT   RT_BIT(0)
    71 /** Shared Clipboard format is bitmap (BMP / DIB). */
    72 #define VBOX_SHCL_FMT_BITMAP        RT_BIT(1)
    73 /** Shared Clipboard format is HTML. */
    74 #define VBOX_SHCL_FMT_HTML          RT_BIT(2)
    75 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
    76 /** Shared Clipboard format is a transfer list. */
    77 # define VBOX_SHCL_FMT_URI_LIST     RT_BIT(3)
    78 #endif
    79 /** @}  */
    8063
    8164/**
     
    162145/** NIL shared clipboard event ID. */
    163146#define NIL_SHCLEVENTID                          UINT32_MAX
    164 
    165 /** Maximum number of concurrent Shared Clipboard client sessions a VM can have. */
    166 #define VBOX_SHCL_MAX_SESSIONS                   (UINT16_MAX - 1)
    167 /** Maximum number of concurrent Shared Clipboard transfers a single client can have. */
    168 #define VBOX_SHCL_MAX_TRANSFERS                  (UINT16_MAX - 1)
    169 /** Maximum number of events a single Shared Clipboard transfer can have. */
    170 #define VBOX_SHCL_MAX_EVENTS                     (UINT32_MAX - 1)
    171 
    172 /**
    173  * Creates a context ID out of a client ID, a transfer ID and an event ID (count).
    174  */
    175 #define VBOX_SHCL_CONTEXTID_MAKE(a_idSession, a_idTransfer, a_idEvent) \
    176     (  ((uint64_t)((a_idSession)  & 0xffff) << 48) \
    177      | ((uint64_t)((a_idTransfer) & 0xffff) << 32) \
    178      | ((uint32_t) (a_idEvent)) \
    179     )
    180 /** Creates a context ID out of a session ID. */
    181 #define VBOX_SHCL_CONTEXTID_MAKE_SESSION(a_idSession)    VBOX_SHCL_CONTEXTID_MAKE(a_idSession, 0, 0)
    182 /** Gets the session ID out of a context ID. */
    183 #define VBOX_SHCL_CONTEXTID_GET_SESSION(a_idContext)     ( (uint16_t)(((a_idContext) >> 48) & UINT16_MAX) )
    184 /** Gets the transfer ID out of a context ID. */
    185 #define VBOX_SHCL_CONTEXTID_GET_TRANSFER(a_idContext)    ( (uint16_t)(((a_idContext) >> 32) & UINT16_MAX) )
    186 /** Gets the transfer event out of a context ID. */
    187 #define VBOX_SHCL_CONTEXTID_GET_EVENT(a_idContext)       ( (uint32_t)( (a_idContext)        & UINT32_MAX) )
    188147
    189148/**
Note: See TracChangeset for help on using the changeset viewer.

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