Changeset 76408 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp
- Timestamp:
- Dec 23, 2018 4:38:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/x11-clipboard.cpp
r69668 r76408 24 24 * changed. */ 25 25 26 27 /********************************************************************************************************************************* 28 * Header Files * 29 *********************************************************************************************************************************/ 26 30 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 27 31 … … 47 51 #include <iprt/semaphore.h> 48 52 #include <iprt/thread.h> 53 #include <iprt/utf16.h> 49 54 50 55 #include <VBox/log.h> … … 55 60 #include <VBox/HostServices/VBoxClipboardSvc.h> 56 61 62 63 /********************************************************************************************************************************* 64 * Defined Constants And Macros * 65 *********************************************************************************************************************************/ 57 66 /* The serialisation mechanism looks like it is not needed (everything using it 58 67 * runs on one thread, and the flag is always cleared at the end of calls which … … 62 71 #endif 63 72 64 class formats; 65 static Atom clipGetAtom(CLIPBACKEND *pCtx, const char *pszName); 66 73 74 /********************************************************************************************************************************* 75 * Structures and Typedefs * 76 *********************************************************************************************************************************/ 67 77 /** The different clipboard formats which we support. */ 68 78 enum CLIPFORMAT … … 73 83 UTF8, 74 84 BMP, 75 85 HTML 76 86 }; 77 87 88 typedef unsigned CLIPX11FORMAT; 89 90 91 /********************************************************************************************************************************* 92 * Internal Functions * 93 *********************************************************************************************************************************/ 94 class formats; 95 static Atom clipGetAtom(CLIPBACKEND *pCtx, const char *pszName); 96 97 98 /********************************************************************************************************************************* 99 * Global Variables * 100 *********************************************************************************************************************************/ 78 101 /** The table mapping X11 names to data formats and to the corresponding 79 102 * VBox clipboard formats (currently only Unicode) */ … … 109 132 }; 110 133 111 typedef unsigned CLIPX11FORMAT;112 113 134 enum 114 135 { … … 116 137 MAX_CLIP_X11_FORMATS = RT_ELEMENTS(g_aFormats) 117 138 }; 139 118 140 119 141 /** Return the atom corresponding to a supported X11 format.
Note:
See TracChangeset
for help on using the changeset viewer.