VirtualBox

Changeset 82279 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 29, 2019 11:42:20 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135103
Message:

Shared Clipboard: Resolved some more @todos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/clipboard-helper.h

    r81369 r82279  
    3636
    3737/** Constants needed for string conversions done by the Linux/Mac clipboard code. */
    38 enum {
     38enum
     39{
    3940    /** In Linux, lines end with a linefeed character. */
    40     LINEFEED = 0xa,
     41    VBOX_SHCL_LINEFEED = 0xa,
    4142    /** In Windows, lines end with a carriage return and a linefeed character. */
    42     CARRIAGERETURN = 0xd,
     43    VBOX_SHCL_CARRIAGERETURN = 0xd,
    4344    /** Little endian "real" UTF-16 strings start with this marker. */
    44     UTF16LEMARKER = 0xfeff,
     45    VBOX_SHCL_UTF16LEMARKER = 0xfeff,
    4546    /** Big endian "real" UTF-16 strings start with this marker. */
    46     UTF16BEMARKER = 0xfffe
     47    VBOX_SHCL_UTF16BEMARKER = 0xfffe
    4748};
    4849
     
    109110typedef struct BMFILEHEADER
    110111{
    111 /** @todo r=bird: this type centric prefixing is what give hungarian notation a bad name... */
    112     uint16_t    u16Type;
    113     uint32_t    u32Size;
    114     uint16_t    u16Reserved1;
    115     uint16_t    u16Reserved2;
    116     uint32_t    u32OffBits;
     112    uint16_t uType;
     113    uint32_t uSize;
     114    uint16_t uReserved1;
     115    uint16_t uReserved2;
     116    uint32_t uOffBits;
    117117} BMFILEHEADER;
     118#pragma pack()
     119
    118120/** Pointer to a BMFILEHEADER structure. */
    119121typedef BMFILEHEADER *PBMFILEHEADER;
     
    127129typedef struct BMINFOHEADER
    128130{
    129 /** @todo r=bird: this type centric prefixing is what give hungarian notation a bad name... */
    130     uint32_t    u32Size;
    131     uint32_t    u32Width;
    132     uint32_t    u32Height;
    133     uint16_t    u16Planes;
    134     uint16_t    u16BitCount;
    135     uint32_t    u32Compression;
    136     uint32_t    u32SizeImage;
    137     uint32_t    u32XBitsPerMeter;
    138     uint32_t    u32YBitsPerMeter;
    139     uint32_t    u32ClrUsed;
    140     uint32_t    u32ClrImportant;
     131    uint32_t uSize;
     132    uint32_t uWidth;
     133    uint32_t uHeight;
     134    uint16_t uPlanes;
     135    uint16_t uBitCount;
     136    uint32_t uCompression;
     137    uint32_t uSizeImage;
     138    uint32_t uXBitsPerMeter;
     139    uint32_t uYBitsPerMeter;
     140    uint32_t uClrUsed;
     141    uint32_t uClrImportant;
    141142} BMINFOHEADER;
    142143/** Pointer to a BMINFOHEADER structure. */
    143144typedef BMINFOHEADER *PBMINFOHEADER;
    144 #pragma pack() /** @todo r=bird: Only BMFILEHEADER needs packing. The BMINFOHEADER is perfectly aligned. */
    145145
    146146/**
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