*
*	Name:				romtag.a
*
*	Description:	ROMTAG and configuration info for omnilib.
*
*	Copyright:		1992 by David Jones.
*
*	Distribution:
*		This program is free software; you can redistribute it and/or modify
*		it under the terms of the GNU General Public License as published by
*		the Free Software Foundation; either version 2 of the License, or
*		(at your option) any later version.
*
*		This program is distributed in the hope that it will be useful,
*		but WITHOUT ANY WARRANTY; without even the implied warranty of
*		MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*		GNU General Public License for more details.
*
*		You should have received a copy of the GNU General Public License
*		along with this program; if not, write to:
*
*				The Free Software Foundation		David Jones
*				675 Mass Ave							6730 Tooney Drive
*				Cambridge, MA							Orleans, Ontario
*				02139										K1C 6R4
*				USA										Canada
*
*	Usenet:	gnu@prep.ai.mit.edu					aa457@freenet.carleton.ca
*	Fidonet:												1:163/109.8
*
*		$Log: $
*
*

		include	'exec/resident.i'
		include	'exec/libraries.i'

*
*  You need to define macros giving basic information about your library.
*	If you use Commodore's bumprev utility to create 2.0 version strings,
*	then the _rev.i file already defines most of these.
*
*	You need to define:
*		LIBNAME		name of library.  "xferq.library"
*		VSTRING		Library ID string. "XferQ 1.6 (30.1.93)",13,10,0
*		VERSTAG		2.0 version string. "$VER: XferQ 1.6 (30.1.93)",0
*		VERSION		Version number		1
*		REVISION		Revision number	6
*
*	See the LIBNAME macro as an example of how to define string macros.
*	Bumprev output is used for the rest.
*

		include	'xferq_rev.i'

LIBNAME	MACRO
		dc.b	'xferq.library',0
		ENDM

		XDEF	_LibName
		XDEF	_LibID
		XDEF	_VerString
		XDEF	_FuncTable
		XDEF	_Version
		XDEF	_Revision

		XREF	_InitTab

DEF	MACRO
		XREF		_LIB\1
		dc.l		_LIB\1
		ENDM

*
*	You will always get some doofus who will try to execute us.  Let's
*	execute him instead.
*

DoofusKick:
		moveq		#-1,D0
		rts

*
*  This is the RomTag structure.
*

_RomTag:
		dc.w	RTC_MATCHWORD
		dc.l	_RomTag
		dc.l	_LibName		; end of ROMTag.  Safe to assign to _LibName.
		dc.b	RTF_AUTOINIT
		dc.b	VERSION	; version
		dc.b	NT_LIBRARY
		dc.b	0				; pri
		dc.l	_LibName
		dc.l	_LibID
		dc.l	_InitTab

_Version:
		dc.w	VERSION

_Revision:
		dc.w	REVISION

_LibName:
		LIBNAME

_LibID:
		VSTRING

_VerString:
		VERSTAG

		CNOP 0,2

		; don't touch these

_FuncTable:
		DEF	Open
		DEF	Close
		DEF	Expunge
		DEF	ExtFunc

*
*	This is the second chunk of code that you will have to modify.
*	Place definitions for your functions here.  The DEF macro is used
*	to do this (see above).  The list is terminated with dc.l -1.
*
*	In the C code, define each function as LIBwhatever.
*
*	The functions must appear here in the same order as they appear in the
*	.fd file.  Also, do not touch any of the function definitions above
*	this comment.
*

		DEF	RexxQuery
		DEF	Hook
		DEF	WPL1
		DEF	WPL2
		
		DEF	AddWork
		DEF	AddWorkQuick
		DEF	AnyWork
		DEF	GetWork
		DEF	FindWork
		DEF	UnlockWork
		DEF	RemoveWork
		DEF	MaxSitePri
		DEF	WalkQueueCallBack
		DEF	GetSiteList
		DEF	FlushQueue
		
		DEF	BeginSession
		DEF	EndSession
		DEF	SessionUp
		DEF	SortSession
		DEF	WalkSessionCallBack
		
		DEF	NextSeq
		
		DEF	GetAddress
		DEF	PutAddress
		DEF	CmpAddress
		DEF	Map
		DEF	Filter
		
		DEF	GetError
		DEF	ErrorMsg
		
		DEF	CreateObject
		DEF	DropObject
		DEF	ExamObject
		DEF	ModifyObject
		DEF	CopyObject

		DEF	HoldMailer
		DEF	ReleaseMailer
		
		DEF	ParseString
		DEF	BuildString
		DEF	ScanDirCallBack
		
		DEF	ReadQueue
		DEF	WriteQueue
		
		DEF	SetLocalError
		DEF	GetLocalError
		DEF	SetAppConfig
		DEF	GetAppConfig
		
		dc.l	-1

		END
