Author: piumarta Date: 2012-07-30 16:20:27 -0700 (Mon, 30 Jul 2012) New Revision: 2574
Added: trunk/platforms/Cross/plugins/CameraPlugin/ trunk/platforms/Cross/plugins/CameraPlugin/CameraPlugin.h trunk/platforms/Cross/plugins/ScratchPlugin/ trunk/platforms/Cross/plugins/ScratchPlugin/ScratchPlugin.h trunk/platforms/Cross/plugins/UnicodePlugin/ trunk/platforms/Cross/plugins/UnicodePlugin/UnicodePlugin.h trunk/platforms/Cross/plugins/WeDoPlugin/ trunk/platforms/Cross/plugins/WeDoPlugin/WeDoPlugin.h Log: add header files for Scratch plugins
Added: trunk/platforms/Cross/plugins/CameraPlugin/CameraPlugin.h =================================================================== --- trunk/platforms/Cross/plugins/CameraPlugin/CameraPlugin.h (rev 0) +++ trunk/platforms/Cross/plugins/CameraPlugin/CameraPlugin.h 2012-07-30 23:20:27 UTC (rev 2574) @@ -0,0 +1,11 @@ +#ifndef _SQ_CAMERA_PLUGIN_H_ +#define _SQ_CAMERA_PLUGIN_H_ + +int CameraOpen(int cameraNum, int frameWidth, int frameHeight); +void CameraClose(int cameraNum); +int CameraExtent(int cameraNum); +int CameraGetFrame(int cameraNum, unsigned char* buf, int pixelCount); +char* CameraName(int cameraNum); +int CameraGetParam(int cameraNum, int paramNum); + +#endif /* _SQ_CAMERA_PLUGIN_H_ */
Added: trunk/platforms/Cross/plugins/ScratchPlugin/ScratchPlugin.h =================================================================== --- trunk/platforms/Cross/plugins/ScratchPlugin/ScratchPlugin.h (rev 0) +++ trunk/platforms/Cross/plugins/ScratchPlugin/ScratchPlugin.h 2012-07-30 23:20:27 UTC (rev 2574) @@ -0,0 +1,30 @@ +#ifndef _SQ_SCRATCH_PLUGIN_H_ +#define _SQ_SCRATCH_PLUGIN_H_ + +/* OS utilities */ + +void OpenURL(char *url); +void SetScratchWindowTitle(char *title); +void GetFolderPathForID(int folderID, char *path, int maxPath); +int WinShortToLongPath(char *shortPath, char* longPath, int maxPath); +int IsFileOrFolderHidden(char *fullPath); +void SetUnicodePasteBuffer(short int *utf16, int count); + +/* serial port enumeration */ +int SerialPortCount(void); +void SerialPortName(int portIndex, char *bsdPath, int maxPathSize); + +/* serial port open/close */ +int SerialPortOpenPortNamed(char *portName, int baudRate); +void SerialPortClose(int portNum); +int SerialPortIsOpen(int portNum); + +/* serial port read/write */ +int SerialPortRead(int portNum, char *bufPtr, int bufSize); +int SerialPortWrite(int portNum, char *bufPtr, int bufSize); + +/* serial port port options */ +int SerialPortSetOption(int portNum, int optionNum, int newValue); +int SerialPortGetOption(int portNum, int optionNum); + +#endif /* _SQ_SCRATCH_PLUGIN_H_ */
Property changes on: trunk/platforms/Cross/plugins/ScratchPlugin/ScratchPlugin.h ___________________________________________________________________ Added: svn:executable + *
Added: trunk/platforms/Cross/plugins/UnicodePlugin/UnicodePlugin.h =================================================================== --- trunk/platforms/Cross/plugins/UnicodePlugin/UnicodePlugin.h (rev 0) +++ trunk/platforms/Cross/plugins/UnicodePlugin/UnicodePlugin.h 2012-07-30 23:20:27 UTC (rev 2574) @@ -0,0 +1,14 @@ +#ifndef _SQ_UNICODE_PLUGIN_H_ +#define _SQ_UNICODE_PLUGIN_H_ + +int unicodeClipboardGet(unsigned short *utf16, int utf16Length); +void unicodeClipboardPut(unsigned short *utf16, int utf16Length); +int unicodeClipboardSize(void); +void unicodeDrawString(char *utf8, int utf8Length, int *wPtr, int *hPtr, unsigned int *bitmapPtr); +int unicodeGetFontList(char *str, int strLength); +int unicodeGetXRanges(char *utf8, int utf8Length, int *resultPtr, int resultLength); +void unicodeMeasureString(char *utf8, int utf8Length, int *wPtr, int *hPtr); +void unicodeSetColors(int fgRed, int fgGreen, int fgBlue, int bgRed, int bgGreen, int bgBlue, int mapBGToTransparent); +void unicodeSetFont(char *fontName, int fontSize, int boldFlag, int italicFlag, int antiAliasFlag); + +#endif /* _SQ_UNICODE_PLUGIN_H_ */
Added: trunk/platforms/Cross/plugins/WeDoPlugin/WeDoPlugin.h =================================================================== --- trunk/platforms/Cross/plugins/WeDoPlugin/WeDoPlugin.h (rev 0) +++ trunk/platforms/Cross/plugins/WeDoPlugin/WeDoPlugin.h 2012-07-30 23:20:27 UTC (rev 2574) @@ -0,0 +1,9 @@ +#ifndef _SQ_WEDO_PLUGIN_H_ +#define _SQ_WEDO_PLUGIN_H_ + +int WeDoOpenPort(void); +int WeDoClosePort(void); +int WeDoRead(char *bufPtr, int bufSize); +int WeDoWrite(char *bufPtr, int bufSize); + +#endif /* _SQ_WEDO_PLUGIN_H_ */
vm-dev@lists.squeakfoundation.org