Wiki source for PlatformVMAPI
These are the basic api routines you need to implement when you compile the source code without
the majority of the plugins
[[ioExit sqInt ioExit(void)]]
[[ioDisablePowerManager sqInt ioDisablePowerManager(sqInt disableIfNonZero)]]
[[ioMicroMSecs sqInt ioMicroMSecs(void)]]
[[ioMicroMSecs sqInt ioMSecs(void)]]
[[ioMicroMSecs sqInt ioLowResMSecs(void)]]
[[ioRelinquishProcessorForMicroseconds sqInt ioRelinquishProcessorForMicroseconds(sqInt microSeconds)]]
[[dirLookup sqInt dir_Lookup(char *pathString, . . . )]]
[[dirCreate sqInt dir_Create(char *pathString, sqInt pathStringLength)]]
[[dirDelete sqInt dir_Delete(char *pathString, sqInt pathStringLength)]]
[[dirDelimitor sqInt dir_Delimitor(void)]]
[[dirSetMacFileTypeAndCreator sqInt dir_SetMacFileTypeAndCreator(char *filename, sqInt filenameSize, char *fType, char *fCreator)]]
[[dirGetMacFileTypeAndCreator sqInt dir_GetMacFileTypeAndCreator(char *filename, sqInt filenameSize, char *fType, char *fCreator)]]
[[dirPathToWorkingDir sqInt dir_PathToWorkingDir(char *pathName, sqInt pathNameMax)]]
[[sqFTruncate int sqFTruncate(filenum, fileoffset)]]
[[getAttributeIntoLength sqInt getAttributeIntoLength(sqInt indexNumber, sqInt byteArrayIndex, sqInt length)]]
[[attributeSize sqInt attributeSize(sqInt indexNumber) ]]
[[sqGetFilenameFromString sqInt sqGetFilenameFromString(char * aCharBuffer, char * aFilenameString,
sqInt filenameLength, sqInt resolveAlias) ]]
[[ioScreenSize sqInt ioScreenSize(void)]]
[[ioScreenDepth sqInt ioScreenDepth(void)]]
[[ioHasDisplayDepth sqInt ioHasDisplayDepth(sqInt depth)]]
[[ioForceDisplayUpdate sqInt ioForceDisplayUpdate(void)]]
[[displayioShowDisplay sqInt display_ioShowDisplay(sqInt dispBitsIndex, sqInt width, sqInt height, sqInt depth,
sqInt affectedL, sqInt affectedR, sqInt affectedT, sqInt affectedB)]]
[[ioProcessEvents sqInt ioProcessEvents(void)]]
[[ioSetInputSemaphore sqInt ioSetInputSemaphore(sqInt semaIndex)]]
[[ioGetNextEvent sqInt ioGetNextEvent( sqInputEvent *evt)]]
[[ioBeep sqInt ioBeep(void)]]
[[sqAllocateMemory sqInt sqAllocateMemory(minHeapSize, desiredHeapSize)]]
[[sqGrowMemoryBy sqInt sqGrowMemoryBy(sqInt oldLimit, sqInt delta)]]
[[sqShrinkMemoryBy sqInt sqShrinkMemoryBy(sqInt oldLimit, sqInt delta)]]
[[sqMemoryExtraBytesLeft sqInt sqMemoryExtraBytesLeft(sqInt includingSwap)]]
[[reserveExtraCHeapBytes sqInt reserveExtraCHeapBytes(origHeapSize, bytesToReserve))]]
[[imageName imageName]]
[[getImageName char *getImageName(void)]]
[[imageNamePutLength sqInt imageNamePutLength(sqInt sqImageNameIndex, sqInt length)]]
[[imageNameGetLength sqInt imageNameGetLength(sqInt sqImageNameIndex, sqInt length)]]
[[imageNameSize sqInt imageNameSize(void)]]
[[vmPathSize sqInt vmPathSize(void)]]
[[vmPathGetLength sqInt vmPathGetLength(sqInt sqVMPathIndex, sqInt length)]]
[[sqImageFile sqImageFileClose sqImageFileOpen sqImageFilePosition sqImageFileRead sqImageFileSeek sqImageFileWrite sqImageFileStartLocation]]
[[insufficientMemorySpecifiedError insufficientMemorySpecifiedError]]
[[insufficientMemoryAvailableError insufficientMemoryAvailableError]]
[[unableToReadImageError unableToReadImageError]]
[[browserPluginReturnIfNeeded browserPluginReturnIfNeeded]]
[[browserPluginInitialiseIfNeeded browserPluginInitialiseIfNeeded]]
[[ioFormPrint sqInt ioFormPrint(sqInt bitsAddr, sqInt width, sqInt height, sqInt depth,
double hScale, double vScale, sqInt landscapeFlag);]]
[[ioSetFullScreen sqInt ioSetFullScreen(sqInt fullScreen)]]
[[ioSeconds sqInt ioSeconds(void)]]
[[ioSetCursor sqInt ioSetCursor(sqInt cursorBitsIndex, sqInt offsetX, sqInt offsetY)]]
[[ioSetCursorWithMask sqInt ioSetCursorWithMask(sqInt cursorBitsIndex, sqInt cursorMaskIndex, sqInt offsetX, sqInt offsetY)]]
[[ioSetCursorARGB sqInt ioSetCursorARGB(sqInt cursorBitsIndex, sqInt extentX, sqInt extentY, sqInt offsetX, sqInt offsetY)]]
[[ioSetDisplayMode sqInt ioSetDisplayMode(sqInt width, sqInt height, sqInt depth, sqInt fullscreenFlag)]]
[[ioGetButtonState
sqInt ioGetButtonState(void);
sqInt ioGetKeystroke(void);
sqInt ioMousePoint(void);
sqInt ioPeekKeystroke(void);]]
[[ioCanRenameImage sqInt ioCanRenameImage(void);
sqInt ioCanWriteImage(void);
sqInt ioDisableImageWrite(void);]]
[[secCanCreatePathOfSize
secCanDeletePathOfSize
secCanGetFileTypeOfSize
secCanListPathOfSize
secCanSetFileTypeOfSize
secDisableFileAccess
secCanDeleteFileOfSize
secCanOpenFileOfSizeWritable
secCanRenameFileOfSize
secHasFileAccess]]
[[secDisableSocketAccess secDisableSocketAccess
secHasSocketAccess
secCanConnectToPort
secCanListenOnPort
secCanCreateSocketOfType]]
[[clearProfile sqInt clearProfile(void)
sqInt dumpProfile(void)
sqInt startProfiling(void)
sqInt stopProfiling(void)]]
[[clipboardSize sqInt clipboardSize(void)]]
[[clipboardReadIntoAt sqInt clipboardReadIntoAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)]]
[[sqInt clipboardWriteFromAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)]]
[[ioLoadModule void *ioLoadModule(char *pluginName)]]
[[ioFindExternalFunctionIn void *ioFindExternalFunctionIn(char *lookupName, void *moduleHandle)]]
[[ioFreeModule sqInt ioFreeModule(void *moduleHandle)]]
the majority of the plugins
[[ioExit sqInt ioExit(void)]]
[[ioDisablePowerManager sqInt ioDisablePowerManager(sqInt disableIfNonZero)]]
[[ioMicroMSecs sqInt ioMicroMSecs(void)]]
[[ioMicroMSecs sqInt ioMSecs(void)]]
[[ioMicroMSecs sqInt ioLowResMSecs(void)]]
[[ioRelinquishProcessorForMicroseconds sqInt ioRelinquishProcessorForMicroseconds(sqInt microSeconds)]]
[[dirLookup sqInt dir_Lookup(char *pathString, . . . )]]
[[dirCreate sqInt dir_Create(char *pathString, sqInt pathStringLength)]]
[[dirDelete sqInt dir_Delete(char *pathString, sqInt pathStringLength)]]
[[dirDelimitor sqInt dir_Delimitor(void)]]
[[dirSetMacFileTypeAndCreator sqInt dir_SetMacFileTypeAndCreator(char *filename, sqInt filenameSize, char *fType, char *fCreator)]]
[[dirGetMacFileTypeAndCreator sqInt dir_GetMacFileTypeAndCreator(char *filename, sqInt filenameSize, char *fType, char *fCreator)]]
[[dirPathToWorkingDir sqInt dir_PathToWorkingDir(char *pathName, sqInt pathNameMax)]]
[[sqFTruncate int sqFTruncate(filenum, fileoffset)]]
[[getAttributeIntoLength sqInt getAttributeIntoLength(sqInt indexNumber, sqInt byteArrayIndex, sqInt length)]]
[[attributeSize sqInt attributeSize(sqInt indexNumber) ]]
[[sqGetFilenameFromString sqInt sqGetFilenameFromString(char * aCharBuffer, char * aFilenameString,
sqInt filenameLength, sqInt resolveAlias) ]]
[[ioScreenSize sqInt ioScreenSize(void)]]
[[ioScreenDepth sqInt ioScreenDepth(void)]]
[[ioHasDisplayDepth sqInt ioHasDisplayDepth(sqInt depth)]]
[[ioForceDisplayUpdate sqInt ioForceDisplayUpdate(void)]]
[[displayioShowDisplay sqInt display_ioShowDisplay(sqInt dispBitsIndex, sqInt width, sqInt height, sqInt depth,
sqInt affectedL, sqInt affectedR, sqInt affectedT, sqInt affectedB)]]
[[ioProcessEvents sqInt ioProcessEvents(void)]]
[[ioSetInputSemaphore sqInt ioSetInputSemaphore(sqInt semaIndex)]]
[[ioGetNextEvent sqInt ioGetNextEvent( sqInputEvent *evt)]]
[[ioBeep sqInt ioBeep(void)]]
[[sqAllocateMemory sqInt sqAllocateMemory(minHeapSize, desiredHeapSize)]]
[[sqGrowMemoryBy sqInt sqGrowMemoryBy(sqInt oldLimit, sqInt delta)]]
[[sqShrinkMemoryBy sqInt sqShrinkMemoryBy(sqInt oldLimit, sqInt delta)]]
[[sqMemoryExtraBytesLeft sqInt sqMemoryExtraBytesLeft(sqInt includingSwap)]]
[[reserveExtraCHeapBytes sqInt reserveExtraCHeapBytes(origHeapSize, bytesToReserve))]]
[[imageName imageName]]
[[getImageName char *getImageName(void)]]
[[imageNamePutLength sqInt imageNamePutLength(sqInt sqImageNameIndex, sqInt length)]]
[[imageNameGetLength sqInt imageNameGetLength(sqInt sqImageNameIndex, sqInt length)]]
[[imageNameSize sqInt imageNameSize(void)]]
[[vmPathSize sqInt vmPathSize(void)]]
[[vmPathGetLength sqInt vmPathGetLength(sqInt sqVMPathIndex, sqInt length)]]
[[sqImageFile sqImageFileClose sqImageFileOpen sqImageFilePosition sqImageFileRead sqImageFileSeek sqImageFileWrite sqImageFileStartLocation]]
[[insufficientMemorySpecifiedError insufficientMemorySpecifiedError]]
[[insufficientMemoryAvailableError insufficientMemoryAvailableError]]
[[unableToReadImageError unableToReadImageError]]
[[browserPluginReturnIfNeeded browserPluginReturnIfNeeded]]
[[browserPluginInitialiseIfNeeded browserPluginInitialiseIfNeeded]]
[[ioFormPrint sqInt ioFormPrint(sqInt bitsAddr, sqInt width, sqInt height, sqInt depth,
double hScale, double vScale, sqInt landscapeFlag);]]
[[ioSetFullScreen sqInt ioSetFullScreen(sqInt fullScreen)]]
[[ioSeconds sqInt ioSeconds(void)]]
[[ioSetCursor sqInt ioSetCursor(sqInt cursorBitsIndex, sqInt offsetX, sqInt offsetY)]]
[[ioSetCursorWithMask sqInt ioSetCursorWithMask(sqInt cursorBitsIndex, sqInt cursorMaskIndex, sqInt offsetX, sqInt offsetY)]]
[[ioSetCursorARGB sqInt ioSetCursorARGB(sqInt cursorBitsIndex, sqInt extentX, sqInt extentY, sqInt offsetX, sqInt offsetY)]]
[[ioSetDisplayMode sqInt ioSetDisplayMode(sqInt width, sqInt height, sqInt depth, sqInt fullscreenFlag)]]
[[ioGetButtonState
sqInt ioGetButtonState(void);
sqInt ioGetKeystroke(void);
sqInt ioMousePoint(void);
sqInt ioPeekKeystroke(void);]]
[[ioCanRenameImage sqInt ioCanRenameImage(void);
sqInt ioCanWriteImage(void);
sqInt ioDisableImageWrite(void);]]
[[secCanCreatePathOfSize
secCanDeletePathOfSize
secCanGetFileTypeOfSize
secCanListPathOfSize
secCanSetFileTypeOfSize
secDisableFileAccess
secCanDeleteFileOfSize
secCanOpenFileOfSizeWritable
secCanRenameFileOfSize
secHasFileAccess]]
[[secDisableSocketAccess secDisableSocketAccess
secHasSocketAccess
secCanConnectToPort
secCanListenOnPort
secCanCreateSocketOfType]]
[[clearProfile sqInt clearProfile(void)
sqInt dumpProfile(void)
sqInt startProfiling(void)
sqInt stopProfiling(void)]]
[[clipboardSize sqInt clipboardSize(void)]]
[[clipboardReadIntoAt sqInt clipboardReadIntoAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)]]
[[sqInt clipboardWriteFromAt(sqInt count, sqInt byteArrayIndex, sqInt startIndex)]]
[[ioLoadModule void *ioLoadModule(char *pluginName)]]
[[ioFindExternalFunctionIn void *ioFindExternalFunctionIn(char *lookupName, void *moduleHandle)]]
[[ioFreeModule sqInt ioFreeModule(void *moduleHandle)]]