[Vm-dev] changes to Cross headers files

Ian Piumarta piumarta at speakeasy.net
Mon Apr 21 18:59:05 UTC 2008


Hi,

I'm about to commit a few changes to the Cross sources to support the  
OLPC VM and its virtual image.  If anyone has any objections, now is  
the time to raise them.

Cheers,
Ian

Index: plugins/DropPlugin/DropPlugin.h
===================================================================
--- plugins/DropPlugin/DropPlugin.h	(revision 1742)
+++ plugins/DropPlugin/DropPlugin.h	(working copy)
@@ -9,4 +9,5 @@
int dropRequestFileHandle(int dropIndex); /* return READ-ONLY file  
handle OOP or nilObject if error */
int sqSecFileAccessCallback(void *);
void sqSetNumberOfDropFiles(int numberOfFiles);
-void sqSetFileInformation(int dropIndex, void *dropFile);
\ No newline at end of file
+void sqSetFileInformation(int dropIndex, void *dropFile);
+void sqDragTriggerData(char *aByteArray, int dataLength, char  
*aFormat, int formatLength);
Index: plugins/SoundPlugin/SoundPlugin.h
===================================================================
--- plugins/SoundPlugin/SoundPlugin.h	(revision 1742)
+++ plugins/SoundPlugin/SoundPlugin.h	(working copy)
@@ -18,5 +18,10 @@
int snd_StopRecording(void);
double snd_GetRecordingSampleRate(void);
int snd_RecordSamplesIntoAtLength(int buf, int startSliceIndex, int  
bufferSizeInBytes);
-void snd_Volume(double *left, double *right); // 
johnmci at smalltalkconsulting.com Nov 6th 2000
-void snd_SetVolume(double left, double right);// 
johnmci at smalltalkconsulting.com Nov 6th 2000
+void snd_Volume(double *left, double *right);  /*  
johnmci at smalltalkconsulting.com Nov 6th 2000 */
+void snd_SetVolume(double left, double right); /*  
johnmci at smalltalkconsulting.com Nov 6th 2000 */
+
+/* mixer interface */
+int snd_GetSwitch(int id, int captureFlag, int channel);
+int snd_SetSwitch(int id, int captureFlag, int parameter);
+int snd_SetDevice(int id, char *name);
Index: vm/sq.h
===================================================================
--- vm/sq.h	(revision 1742)
+++ vm/sq.h	(working copy)
@@ -284,10 +284,11 @@
    int windowIndex;		/* host window structure */
} sqDragDropFilesEvent;
-#define DragEnter	1 /* drag operation from OS entered Squeak window	 */
+#define DragEnter	1 /* drag operation from OS entered Squeak window */
#define DragMove	2 /* drag operation from OS moved within Squeak  
window */
-#define DragLeave	3 /* drag operation from OS left Squeak window	 */
-#define DragDrop	4 /* drag operation dropped contents onto  
Squeak.      */
+#define DragLeave	3 /* drag operation from OS left Squeak window */
+#define DragDrop	4 /* drag operation dropped contents onto Squeak. */
+#define DragRequest	5 /* data request from other app. */
/* menu event */
typedef struct sqMenuEvent



More information about the Vm-dev mailing list