Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CogVM source as per VMMaker.oscog-eem.3316
Bow to the inevitable and go with as traditional platforms/Cross style include file for the ClipboardExtendedPlugin (int is not wide enough to hold an oop on 64-bits). Harden the fetch functions on iOS and unix to check for out-of-memory. The plugin now seems to work on unix but much work needs to be done to platforms/unix/vm-display-x11/sqUnixX11.c because playing with e.g. firefox shows that copying HTML text has no effect on the results passed up from clipboardGetTypeNames et al.
- Loading branch information
1 parent
ef43c43
commit 4f91346
Showing
6 changed files
with
83 additions
and
98 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
platforms/Cross/plugins/ClipboardExtendedPlugin/ClipboardExtendedPlugin.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef _SQ_CLIPBOARD_PLUGIN_H_ | ||
#define _SQ_CLIPBOARD_PLUGIN_H_ | ||
|
||
// Platform-specific interface for the ClipboardExtendedPlugin | ||
// If a more specific type than void * is required, define CLIPBOARDTYPE to that | ||
// type before including this file in your platform support code. | ||
|
||
#if !defined(CLIPBOARDTYPE) | ||
# define CLIPBOARDTYPE void * | ||
#endif | ||
|
||
void sqPasteboardClear(CLIPBOARDTYPE inPasteboard); | ||
sqInt sqPasteboardGetItemCount(CLIPBOARDTYPE inPasteboard); | ||
sqInt sqPasteboardCopyItemFlavorsitemNumber(CLIPBOARDTYPE inPasteboard, sqInt formatNumber); | ||
void *sqCreateClipboard(void); | ||
void sqPasteboardPutItemFlavordatalengthformatTypeformatLength(CLIPBOARDTYPE inPasteboard, char *inData, sqInt dataLength, char *format, sqInt formatLength); | ||
void sqPasteboardPutItemFlavordatalengthformatType(CLIPBOARDTYPE inPasteboard, char *inData, sqInt dataLength, sqInt format); | ||
sqInt sqPasteboardCopyItemFlavorDataformatformatLength(CLIPBOARDTYPE inPasteboard, char *format, sqInt formatLength); | ||
sqInt sqPasteboardCopyItemFlavorDataformat(CLIPBOARDTYPE inPasteboard, sqInt format); | ||
sqInt sqPasteboardhasDataInFormatformatLength(CLIPBOARDTYPE inPasteboard, char *format, sqInt formatLength); | ||
sqInt sqPasteboardhasDataInFormat(CLIPBOARDTYPE inPasteboard, sqInt format); | ||
|
||
#endif // _SQ_CLIPBOARD_PLUGIN_H_ |
47 changes: 0 additions & 47 deletions
47
platforms/iOS/plugins/ClipboardExtendedPlugin/sqMacExtendedClipboard.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters