/* Structures */

struct TimeBankUser
{
	UWORD	timeleft;	// Time left in the bank

				// The following for statistic reasons only

	UWORD	timesdepos;	// Times user have deposited time
	UWORD	timeswithdraw;	// Times user have withdrawn time
	UWORD	timesrun;	// Times user have run this door

};

/* Defines */

#define MINTIME 5
#define MAXTIME 60

// This is our very own key that ReccControl uses to recognize
// our data in the userfiles. You should select something that
// you are pretty sure noone else will select - a CRC-32 of
// a string containing the programname etc. is fine.
//
// To avoid duplication of APP-keys, you should register keys 
// to me. Simply netmail me with your key, and I'll say if
// it's in use or not. Then I'll put that key into a database
// together with your door's name.
//
//    Niclas Emdelius - 2:201/414.0 - +46-8-6269892 - 14k4 HST/v32bis


#define APPKEY 0x5e28c0c1	// CRC-32 of "Rcn_TimeBank v1"

/* Globals */

extern struct CtrlMessage 	ctrlmsg;
extern struct control *		ctrl;
extern struct MsgPort *		ctrlport;
extern struct MsgPort *		ctrlreplyport;
extern struct Library *		RecclibBase;

extern void *			doordata;
extern struct DoorCallback *	dcb;
extern struct InternalData *	id;
extern struct ReccNode *	rn;

extern UBYTE 			outbuff[100];

/* Prototypes */

void	TimeBank	( void );

