/*
							-----------------------
								 PPMC_Setup.h
								© 1992 REELSOFT
							-----------------------
*/

#include	<libraries/dos.h>
#include	<libraries/ppbase.h>
#include	<libraries/reqtools.h>

#ifdef	LATTICE

#ifdef	PPMC_CX
#include	<proto/commodities.h>
#endif
#include	<proto/dos.h>
#include	<proto/exec.h>
#include	<proto/gadtools.h>
#include	<proto/graphics.h>
#include	<proto/powerpacker.h>
#include	<proto/reqtools.h>
#include	<proto/wb.h>

#else
#ifdef	PPMC_CX
#include	<clib/commodities_protos.h>
#endif
#include	<clib/dos_protos.h>
#include	<clib/exec_protos.h>
#include	<clib/gadtools_protos.h>
#include	<clib/graphics_protos.h>
#include	<clib/powerpacker_protos.h>
#include	<clib/reqtools_protos.h>
#include	<clib/wb_protos.h>

#endif

#include	<stdlib.h>
#include	<string.h>

#include	"PPMC_Defines.h"

struct	ReqToolsBase	*ReqToolsBase ;
struct	PPBase			*PPBase ;
struct	IntuitionBase	*IntuitionBase ;
struct	GfxBase			*GfxBase ;
struct	WorkbenchBase	*WorkbenchBase ;
struct	Library			*DiskfontBase,
						*GadToolsBase,
						*UtilityBase ;
#ifdef	PPMC_CX
struct	Library			*CxBase,
#endif

struct	AppWindow		*appwin ;
struct	MsgPort			*msgport ;

#ifdef	PPMC_CX
struct	MsgPort			*BrokerMP ;
CxObj					*broker ;
struct	NewBroker		newbroker = {	NB_VERSION,
										PPMC_NAME,
										WNDTITLE,
										CXDESCRIPT,
										0, 0, 0, 0, 0
						} ;
#endif

extern	struct	TextFont	PPMCFont ;
VOID	FontInit_PPMC ( VOID ) ;

//	Definitions for cback.o...
#ifdef	PPMC_CBACK
				LONG	_stack			= 4000 ;
				BYTE	*_procname		= PPMC_NAME ;
				LONG	_priority		= 0 ;
				LONG	_BackGroundIO	= 1 ;
#ifdef	_DCC
        		UBYTE   *_template		= 0 ;
        		UBYTE   *_exthelp		= 0 ;
#endif
		extern	BPTR	_Backstdout ;
#endif

//	Cleanup defines...
#define				FROM_REQTOOLS		1
#define				FROM_PPACKER		2
#define				FROM_INTUITION		3
#define				FROM_GFX			4
#define				FROM_GADTOOLS		5
#define				FROM_UTILITY		6
#define				FROM_WORKBENCH		7
#define				FROM_COMMODITY		8
#define				FROM_FONT			9
#define				FROM_SCREEN			10
#define				FROM_WINDOW			11
#define				FROM_MSGPORT		12
#define				FROM_APPWINDOW		13
#define				FROM_CXPORT			14
#define				FROM_BROKER			15

#define				FROM_WB				99
#define				FROM_CLI			999

#include	"PPMC_Proto.h"
#include	"PPMC.h"

//	...