COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1989 -- All Rights Reserved

PROJECT:	PC GEOS
FILE:		library.def

DECLARER:	-

INTENDED USERS:	All libraries and users of libraries and drivers
OVERRIDE CONST:	-

REQUIRES:
	-.def

DESCRIPTION:
	This file defines library/driver definition macros

	$Id: library.def,v 1.1 97/04/04 14:24:32 newdeal Exp $

------------------------------------------------------------------------------@

SetDef	__LIBRARY

StartKernel

global GeodeUseLibrary:far
global GeodeUseLibraryPermName:far
global GeodeFreeLibrary:far

global GEODEUSELIBRARY:far
global GEODEUSELIBRARYPERMNAME:far
global GEODEFREELIBRARY:far

;
;	Value passed to LibraryEntry routine:
;	PASS:		di	= LibraryCallType
;				LCT_ATTACH	= library just loaded
;				LCT_NEW_CLIENT	= client of the library just
;						  loaded
;				LCT_NEW_CLIENT_THREAD = client of the library
;							just created a new
;							thread.
;				LCT_CLIENT_THREAD_EXIT = thread of client of
;							 the library is about
;							 to exit.
;				LCT_CLIENT_EXIT	= client of the library is
;						  going away
;				LCT_DETACH	= library is about to be
;						  unloaded
;		cx	= handle of client geode, if LCT_NEW_CLIENT or
;			  LCT_CLIENT_EXIT
;			= di passed to GeodeLoad, if LCT_ATTACH
;		dx	= bp passed to GeodeLoad, if LCT_ATTACH
;	RETURN:		carry set on error
;
LibraryCallType 	etype word
LCT_ATTACH 		enum LibraryCallType
LCT_DETACH 		enum LibraryCallType
LCT_NEW_CLIENT		enum LibraryCallType
LCT_NEW_CLIENT_THREAD	enum LibraryCallType
LCT_CLIENT_THREAD_EXIT	enum LibraryCallType
LCT_CLIENT_EXIT		enum LibraryCallType


COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
		DefLib
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

SYNOPSIS:	Include a library-definition file as its definer.

PASS:		File to include.

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	ardeb	12/14/88	Initial version

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
DefLib		macro	file
_DECLARER_	= TRUE
include		file
		endm


EndKernel
