VirtualBox

Changeset 100655 in vbox for trunk/include


Ignore:
Timestamp:
Jul 19, 2023 4:06:24 PM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard/VRDE: Integrated the logic of ShClSvcIsBackendActive() in ShClSvcReportFormats(), so that the specific backends don't need to be in charge for that anymore. Renamed VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE -> VBOX_CLIPBOARD_EXT_FN_FORMAT_REPORT_TO_HOST to emphasize its usage. Added VBOX_CLIPBOARD_EXT_FN_FORMAT_REPORT_TO_GUEST; see comment for details.

The whole concept of VRDE being a (one and only) service extension nowadays isn't optimal anymore and needs to be replaced with a more generic mechanism, which is out of this scope for this task. So just adapt this as needed and keep the current way.

bugref:9437

File:
1 edited

Legend:

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

    r100647 r100655  
    4747
    4848/** Sets (or unsets) a clipboard extension callback. */
    49 #define VBOX_CLIPBOARD_EXT_FN_SET_CALLBACK         (0)
    50 /** The guest announces clipboard formats to the extension. */
    51 #define VBOX_CLIPBOARD_EXT_FN_FORMAT_ANNOUNCE      (1)
     49#define VBOX_CLIPBOARD_EXT_FN_SET_CALLBACK               (0)
     50/** The guest reports clipboard formats to the extension. */
     51#define VBOX_CLIPBOARD_EXT_FN_FORMAT_REPORT_TO_HOST      (1)
     52/** The clipboard service wants to report formats to the guest. */
     53#define VBOX_CLIPBOARD_EXT_FN_FORMAT_REPORT_TO_GUEST     (2)
    5254/** The clipboard service requests clipboard data from the extension. */
    53 #define VBOX_CLIPBOARD_EXT_FN_DATA_READ            (2)
     55#define VBOX_CLIPBOARD_EXT_FN_DATA_READ                  (3)
    5456/** The clipboard service writes clipboard data to the extension. */
    55 #define VBOX_CLIPBOARD_EXT_FN_DATA_WRITE           (3)
     57#define VBOX_CLIPBOARD_EXT_FN_DATA_WRITE                 (4)
    5658/** The clipboard service announces an error to the extension. */
    57 #define VBOX_CLIPBOARD_EXT_FN_ERROR                (4)
     59#define VBOX_CLIPBOARD_EXT_FN_ERROR                      (5)
    5860
    5961typedef DECLCALLBACKTYPE(int, FNSHCLEXTCALLBACK,(uint32_t u32Function, uint32_t u32Format, void *pvData, uint32_t cbData));
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