Changeset 7242 in vbox
- Timestamp:
- Mar 3, 2008 3:22:38 PM (17 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/darwin-pasteboard.cpp
r7241 r7242 65 65 * @param pfFormats Pointer for the bit combination of the 66 66 * supported types. 67 * @param pbChanged True if something has changed after the 68 * last call. 67 69 * 68 70 * @returns IPRT status code. 69 71 */ 70 int queryNewPasteboardFormats (PasteboardRef pPasteboard, uint32_t *pfFormats )72 int queryNewPasteboardFormats (PasteboardRef pPasteboard, uint32_t *pfFormats, bool *pbChanged) 71 73 { 72 74 Log (("queryNewPasteboardFormats\n")); 73 75 74 76 OSStatus err = noErr; 77 *pbChanged = true; 75 78 76 79 PasteboardSyncFlags syncFlags; … … 79 82 /* If nothing changed return */ 80 83 if (!(syncFlags & kPasteboardModified)) 84 { 85 *pbChanged = false; 81 86 return VINF_SUCCESS; 87 } 82 88 83 89 /* Are some items in the pasteboard? */ -
trunk/src/VBox/HostServices/SharedClipboard/darwin-pasteboard.h
r7241 r7242 25 25 void destroyPasteboard (PasteboardRef *pPasteboardRef); 26 26 27 int queryNewPasteboardFormats (PasteboardRef pPasteboard, uint32_t *pfFormats );27 int queryNewPasteboardFormats (PasteboardRef pPasteboard, uint32_t *pfFormats, bool *pbChanged); 28 28 int readFromPasteboard (PasteboardRef pPasteboard, uint32_t fFormat, void *pv, uint32_t cb, uint32_t *pcbActual); 29 29 int writeToPasteboard (PasteboardRef pPasteboard, void *pv, uint32_t cb, uint32_t fFormat); -
trunk/src/VBox/HostServices/SharedClipboard/darwin.cpp
r7241 r7242 54 54 55 55 uint32_t fFormats = 0; 56 bool bChanged = false; 56 57 /* Retrieve the formats currently in the clipboard and supported by vbox */ 57 int rc = queryNewPasteboardFormats (pCtx->pasteboard, &fFormats );58 59 if ( fFormats > 0)58 int rc = queryNewPasteboardFormats (pCtx->pasteboard, &fFormats, &bChanged); 59 60 if (bChanged) 60 61 { 61 62 vboxSvcClipboardReportMsg (pCtx->pClient, VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS, fFormats);
Note:
See TracChangeset
for help on using the changeset viewer.