#ifndef	_TB_H
#define	_TB_H

#ifndef	_TB_DEFS_H
#	include	"tb_defs.h"
#endif
#ifndef	_TB_LIB_H
#	include	"tb_lib.h"
#endif

#define	VERSION	"0.99a"
#define	EDITION	"01"

typedef struct
{
	unsigned int	flags;
	int				xsTest, ysTest;
	struct
	{
		short		x1, y1, x2, y2;
	}				frTest;
	unsigned int	looptime;

	LISTCTRL	   *listctrl;
	void		   *fpTxt;
	char			ttlkey[80];
} TBCFG;

extern TBCFG	TBcfg;

#define	TBFLAGS_MAXSCREEN	(0x0000_0001)
#define	TBFLAGS_IGNORE_MR	(0x0000_0002)
#define	TBFLAGS_IGNORE_HR	(0x0000_0004)
#define	TBFLAGS_IGNORE_FC	(0x0000_0008)

enum tb_error_code
{
	TBERR_OUT_OF_MEMORY,
};

extern int		tb_main(void);
extern void		tb_abort_check(void);
extern void		tb_error_abort(int err);

#endif
