COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	Copyright (c) Geoworks 1997.  All rights reserved.

PROJECT:	GEOS
MODULE:		fscript library
FILE:		fscript.def

AUTHOR:		Chris Thomas, Jan 22, 1997

MACROS:
	Name			Description
	----			-----------

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	cthomas	1/22/97   	Initial revision

DESCRIPTION:

	
		
	$Id: fscript.def,v 1.1 97/04/04 14:27:03 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@

SetDef __FSCRIPT

StartLibrary	fscript

;---------------------------------------------------------------------------
;  Exported functions
;---------------------------------------------------------------------------

;
; Viewer library functionality
;
global	FScriptEditViewerOpen:far
global	FScriptEditViewerDetach:far
global	FScriptEditViewerChangeDocument:far
global	FScriptEditViewerClose:far

;
; Script Compiler functions
;
global	FScriptCompile:far
global	FScriptAttachExecutableToDocument:far
global	FScriptDeleteExecutable:far

;
; Script Execution functions
;
global	FScriptGetExecutable:far
global	FScriptStartExecution:far
global	FScriptProcessInput:far
global	FScriptProcessTimeout:far
global	FScriptEndExecution:far

global	FScriptGetLocalIPAddress:far
global	FScriptGetDNSAddress:far


;---------------------------------------------------------------------------
;  Constants
;---------------------------------------------------------------------------

;
; Constants associated with FScript documents
;
FSCRIPT_FILE_MANUFACTURER_ID	equ	MANUFACTURER_ID_NOKIA
FSCRIPT_FILE_MAJOR_PROTOCOL	equ	NOTES_FILE_MAJOR_PROTOCOL
FSCRIPT_FILE_MINOR_PROTOCOL	equ	0
FSCRIPT_FILE_TOKEN		equ	'PPPS'

;
; Values returned from FScriptProcessInput & FScriptProcessTimeout
;
FScriptResult		etype	word
	FSR_CONTINUE	enum	FScriptResult
	FSR_COMPLETE	enum	FScriptResult
	FSR_ABORT	enum	FScriptResult
	FSR_ABORT_NO_NOTIFY	enum	FScriptResult

;---------------------------------------------------------------------------
;  Structures
;---------------------------------------------------------------------------

FSCRIPT_NO_ERROR	equ	-1

FScriptExecutableHeader	struct
	FSEH_initialState	word	0
	FSEH_errorLocation	word	FSCRIPT_NO_ERROR
	FSEH_codeOrError	label	byte
FScriptExecutableHeader	ends



;---------------------------------------------------------------------------
;  Classes
;---------------------------------------------------------------------------
FScriptEditControlClass	class	NotesEditControlClass

	FScriptEditControlFeatures	record
		:16
	FScriptEditControlFeatures	end

	FSECF_DEFAULT_FEATURES	equ 0

FScriptEditControlClass	endc	

EndLibrary	fscript

