Changeset 75498 in vbox for trunk/src/VBox/HostServices/SharedClipboard
- Timestamp:
- Nov 16, 2018 12:03:41 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126655
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxClipboard-win.cpp
r69500 r75498 1 /* $Id$ */ 1 2 /** @file 2 * Shared Clipboard :Win32 host.3 * Shared Clipboard Service - Win32 host. 3 4 */ 4 5 … … 15 16 */ 16 17 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 22 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 17 23 #include <iprt/win/windows.h> 18 24 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxClipboard.h
r69500 r75498 1 /* $Id$ */ 1 2 /** @file 2 * 3 * Shared Clipboard 3 * Shared Clipboard Service - Internal Header. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef __ VBOXCLIPBOARD__H19 #define __ VBOXCLIPBOARD__H18 #ifndef ___VBOXCLIPBOARD_H 19 #define ___VBOXCLIPBOARD_H 20 20 21 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD22 21 #include <VBox/hgcmsvc.h> 23 22 #include <VBox/log.h> … … 98 97 #endif 99 98 100 #endif /* __VBOXCLIPBOARD__H */ 99 #endif /* !___VBOXCLIPBOARD_H */ 100 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboard.rc
r69500 r75498 1 1 /* $Id$ */ 2 2 /** @file 3 * VBoxSharedClipboard- Resource file containing version info and icon.3 * Shared Clipboard Service - Resource file containing version info and icon. 4 4 */ 5 5 -
trunk/src/VBox/HostServices/SharedClipboard/darwin-pasteboard.cpp
r69500 r75498 1 1 /* $Id$ */ 2 2 /** @file 3 * Shared Clipboard :Mac OS X host implementation.3 * Shared Clipboard Service - Mac OS X host implementation. 4 4 */ 5 5 … … 18 18 */ 19 19 20 #define LOG_GROUP LOG_GROUP_HGCM 20 /********************************************************************************************************************************* 21 * Header Files * 22 *********************************************************************************************************************************/ 23 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 21 24 #include <Carbon/Carbon.h> 22 25 … … 29 32 #include "VBox/GuestHost/clipboard-helper.h" 30 33 34 35 /********************************************************************************************************************************* 36 * Defined Constants And Macros * 37 *********************************************************************************************************************************/ 31 38 /* For debugging */ 32 39 //#define SHOW_CLIPBOARD_CONTENT 40 33 41 34 42 /** -
trunk/src/VBox/HostServices/SharedClipboard/darwin-pasteboard.h
r69500 r75498 1 1 /* $Id$ */ 2 2 /** @file 3 * Shared Clipboard :Mac OS X host implementation.3 * Shared Clipboard Service - Mac OS X host implementation. 4 4 */ 5 5 … … 21 21 typedef struct OpaquePasteboardRef *PasteboardRef; 22 22 23 int initPasteboard 24 void destroyPasteboard 23 int initPasteboard(PasteboardRef *pPasteboardRef); 24 void destroyPasteboard(PasteboardRef *pPasteboardRef); 25 25 26 int queryNewPasteboardFormats 27 int readFromPasteboard 28 int writeToPasteboard 26 int queryNewPasteboardFormats(PasteboardRef pPasteboard, uint32_t *pfFormats, bool *pfChanged); 27 int readFromPasteboard(PasteboardRef pPasteboard, uint32_t fFormat, void *pv, uint32_t cb, uint32_t *pcbActual); 28 int writeToPasteboard(PasteboardRef pPasteboard, void *pv, uint32_t cb, uint32_t fFormat); 29 29 30 30 #endif -
trunk/src/VBox/HostServices/SharedClipboard/darwin.cpp
r69500 r75498 1 1 /* $Id$ */ 2 2 /** @file 3 * Shared Clipboard :Mac OS X host.3 * Shared Clipboard Service - Mac OS X host. 4 4 */ 5 5 … … 16 16 */ 17 17 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 22 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 18 23 #include <VBox/HostServices/VBoxClipboardSvc.h> 19 24 … … 25 30 #include "darwin-pasteboard.h" 26 31 32 33 /********************************************************************************************************************************* 34 * Structures and Typedefs * 35 *********************************************************************************************************************************/ 27 36 /** Global clipboard context information */ 28 37 struct _VBOXCLIPBOARDCONTEXT … … 38 47 }; 39 48 49 50 /********************************************************************************************************************************* 51 * Global Variables * 52 *********************************************************************************************************************************/ 40 53 /** Only one client is supported. There seems to be no need for more clients. */ 41 54 static VBOXCLIPBOARDCONTEXT g_ctx; -
trunk/src/VBox/HostServices/SharedClipboard/service.cpp
r73097 r75498 1 1 /* $Id$ */ 2 2 /** @file 3 * Shared Clipboard :Host service entry points.3 * Shared Clipboard Service - Host service entry points. 4 4 */ 5 5 … … 70 70 */ 71 71 72 /********************************************************************************************************************************* 73 * Header Files * 74 *********************************************************************************************************************************/ 75 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 72 76 #include <VBox/HostServices/VBoxClipboardSvc.h> 73 77 #include <VBox/HostServices/VBoxClipboardExt.h> … … 81 85 #include "VBoxClipboard.h" 82 86 83 static void VBoxHGCMParmUInt32Set (VBOXHGCMSVCPARM *pParm, uint32_t u32) 84 { 85 pParm->type = VBOX_HGCM_SVC_PARM_32BIT; 86 pParm->u.uint32 = u32; 87 } 88 89 static int VBoxHGCMParmUInt32Get (VBOXHGCMSVCPARM *pParm, uint32_t *pu32) 90 { 91 if (pParm->type == VBOX_HGCM_SVC_PARM_32BIT) 92 { 93 *pu32 = pParm->u.uint32; 94 return VINF_SUCCESS; 95 } 96 97 return VERR_INVALID_PARAMETER; 98 } 99 100 #if 0 101 static void VBoxHGCMParmPtrSet (VBOXHGCMSVCPARM *pParm, void *pv, uint32_t cb) 102 { 103 pParm->type = VBOX_HGCM_SVC_PARM_PTR; 104 pParm->u.pointer.size = cb; 105 pParm->u.pointer.addr = pv; 106 } 107 #endif 108 109 static int VBoxHGCMParmPtrGet (VBOXHGCMSVCPARM *pParm, void **ppv, uint32_t *pcb) 110 { 111 if (pParm->type == VBOX_HGCM_SVC_PARM_PTR) 112 { 113 *ppv = pParm->u.pointer.addr; 114 *pcb = pParm->u.pointer.size; 115 return VINF_SUCCESS; 116 } 117 118 return VERR_INVALID_PARAMETER; 119 } 120 87 88 /********************************************************************************************************************************* 89 * Global Variables * 90 *********************************************************************************************************************************/ 121 91 static PVBOXHGCMSVCHELPERS g_pHelpers; 122 92 … … 136 106 /** Is the clipboard running in headless mode? */ 137 107 static bool g_fHeadless = false; 108 109 110 static void VBoxHGCMParmUInt32Set (VBOXHGCMSVCPARM *pParm, uint32_t u32) 111 { 112 pParm->type = VBOX_HGCM_SVC_PARM_32BIT; 113 pParm->u.uint32 = u32; 114 } 115 116 static int VBoxHGCMParmUInt32Get (VBOXHGCMSVCPARM *pParm, uint32_t *pu32) 117 { 118 if (pParm->type == VBOX_HGCM_SVC_PARM_32BIT) 119 { 120 *pu32 = pParm->u.uint32; 121 return VINF_SUCCESS; 122 } 123 124 return VERR_INVALID_PARAMETER; 125 } 126 127 #if 0 128 static void VBoxHGCMParmPtrSet (VBOXHGCMSVCPARM *pParm, void *pv, uint32_t cb) 129 { 130 pParm->type = VBOX_HGCM_SVC_PARM_PTR; 131 pParm->u.pointer.size = cb; 132 pParm->u.pointer.addr = pv; 133 } 134 #endif 135 136 static int VBoxHGCMParmPtrGet (VBOXHGCMSVCPARM *pParm, void **ppv, uint32_t *pcb) 137 { 138 if (pParm->type == VBOX_HGCM_SVC_PARM_PTR) 139 { 140 *ppv = pParm->u.pointer.addr; 141 *pcb = pParm->u.pointer.size; 142 return VINF_SUCCESS; 143 } 144 145 return VERR_INVALID_PARAMETER; 146 } 147 138 148 139 149 static uint32_t vboxSvcClipboardMode (void) -
trunk/src/VBox/HostServices/SharedClipboard/x11-clipboard.cpp
r69656 r75498 1 /* $Id$ */ 1 2 /** @file 2 * 3 * Shared Clipboard: 4 * Linux host. 3 * Shared Clipboard Service - Linux host. 5 4 */ 6 5 … … 17 16 */ 18 17 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 19 22 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 20 21 #include <string.h>22 23 23 #include <iprt/assert.h> 24 24 #include <iprt/critsect.h> … … 26 26 #include <iprt/mem.h> 27 27 #include <iprt/semaphore.h> 28 #include <iprt/string.h> 28 29 29 30 #include <VBox/GuestHost/SharedClipboard.h> -
trunk/src/VBox/HostServices/SharedClipboard/x11-stub.cpp
r70243 r75498 1 /* $Id$*/ 1 2 /** @file 2 * 3 * Shared Clipboard: 4 * Linux host, a stub version with no functionality for use on headless hosts. 3 * Shared Clipboard Service - Linux host, a stub version with no functionality for use on headless hosts. 5 4 */ 6 5 … … 17 16 */ 18 17 18 19 /********************************************************************************************************************************* 20 * Header Files * 21 *********************************************************************************************************************************/ 22 #define LOG_GROUP LOG_GROUP_SHARED_CLIPBOARD 19 23 #include <VBox/HostServices/VBoxClipboardSvc.h> 20 24 … … 32 36 33 37 #include "VBoxClipboard.h" 38 39 34 40 35 41 /** Initialise the host side of the shared clipboard - called by the hgcm layer. */ … … 129 135 LogFlowFunc(("called, returning.\n")); 130 136 } 137
Note:
See TracChangeset
for help on using the changeset viewer.