/* PrefsAttackIO.h */

/* Methods */

#define PIOM_INIT 	1
#define PIOM_EXIT 	2
#define PIOM_INFO 	3
#define PIOM_LOAD 	4
#define PIOM_SAVE 	5
#define PIOM_USE  	6
#define PIOM_TEST 	7
#define PIOM_SCAN 	8
#define PIOM_ENDSCAN 9

/* Return Codes */

#define PIOR_OK 		1
#define PIOR_FAIL    0
#define PIOR_ENDSCAN 2

/* Scan Types */

#define SCANTYP_LONG    1
#define SCANTYP_STRING  2
#define SCANTYP_NOTHING 3
#define SCANTYP_UNKNOWN 4
#define SCANTYP_PAGE		5
#define SCANTYP_GROUP   6
#define SCANTYP_ENDSCAN 7

/* Structures */

struct pioInit
{
	ULONG  MethodID;
	BYTE   PAVersion;						/* Version of PrefsAttack */
	BYTE	 PARevision;					/* Revision of PrefsAttack */
	BYTE   Supports_TEST;				/* Set this to 1 if TEST is supported */
	BYTE   Supports_USE;					/* Set this to 1 if USE is supported */
	STRPTR Parameters;					/* READ ONLY */
};

struct pioExit
{
	ULONG  MethodID;
};

struct pioInfo
{
	ULONG  MethodID;
	STRPTR Information;					/* Set this to an Information-Text which will be displayed with MUI_RequestA() */
};

struct pioLoad
{
	ULONG  MethodID;
	STRPTR Filename;						/* if NULL load default settings */
};

struct pioSave
{
	ULONG  MethodID;
	STRPTR Filename;						/* if NULL save as default settings */
};

struct pioUse
{
	ULONG  MethodID;
};

struct pioTest
{
	ULONG  MethodID;
};

struct pioScan
{
	ULONG	 MethodID;
	STRPTR KeyWord;
	LONG   Long_Value;
	STRPTR String_Value;
	WORD   ScanType;
};

