Update of /cvsroot/squeak/squeak/platforms/Mac OS/vm
In directory usw-pr-cvs1:/tmp/cvs-serv3861/squeak/platforms/Mac OS/vm
Added Files:
osExports.c
Log Message:
3.2.7b5 create for vmmaker changes
--- NEW FILE: osExports.c ---
/* note: this file is only a backward compatible wrapper
for the old-style "platform.exports" definitions.
If your platform has migrated to the new exports
style you may as well insert the exports right here */
#include <stdio.h>
#include "sqMacUIEvents.h"
#include "serialPlugin.h"
/* duh ... this is ugly */
#define XFN(export) {"", #export, (void*)export},
#define XFN2(plugin, export) {#plugin, #export, (void*)plugin##_##export}
WindowPtr getSTWindow(void);
void setMessageHook(eventMessageHook theHook);
void setPostMessageHook(eventMessageHook theHook);
char * GetAttributeString(int id);
int serialPortSetControl(int portNum,int control, char *data);
int serialPortIsOpen(int portNum);
int serialPortNames(int portNum, char *portName, char *inName, char *outName);
Boolean IsKeyDown(void);
void *os_exports[][3] = {
XFN(getSTWindow)
XFN(setMessageHook)
XFN(setPostMessageHook)
XFN(GetAttributeString)
XFN(recordDragDropEvent)
XFN(serialPortSetControl)
XFN(serialPortIsOpen)
XFN(serialPortClose)
XFN(serialPortCount)
XFN(serialPortNames)
XFN(serialPortOpen)
XFN(serialPortReadInto)
XFN(serialPortWriteFrom)
XFN(IsKeyDown)
XFN(getUIToLock)
#ifdef PLUGIN
/* Plugin support primitives
We should make these primitives a proper plugin
but right now we just need the exports. */
XFN(primitivePluginBrowserReady)
XFN(primitivePluginRequestURLStream)
XFN(primitivePluginRequestURL)
XFN(primitivePluginPostURL)
XFN(primitivePluginRequestFileHandle)
XFN(primitivePluginDestroyRequest)
XFN(primitivePluginRequestState)
#endif
{NULL, NULL, NULL}
};
|