#ifndef LIBRARIES_AMIGAINI_H
#define LIBRARIES_AMIGAINI_H
/*
** $VER: amigaini.h 1.0 (09.08.2001)
** Amigaini.library definitions
**
** (C) Copyright 2001 Bruce Steers. Coverted to 'C' by Mike Carter
** All Rights Reserved.
*/

#ifndef EXEC_TYPES_H
#include <exec/types.h>
#endif

/*****************************************************************************/

struct amigaini
{
	char 	*filename;
	int		error;
	char		**list;
	int		length;
	int		groupstart;
	int		groupend;
	STRPTR	paramstr;
	STRPTR	arraystr;
	int		arraytype;
	int		casesense;
};

/*****************************************************************************/

/* amigaini object attribute preset values */

#define INIV_Case_Sense  1
#define INIV_Case_Ignore 0
#define INIV_Type_Blank  3
#define INIV_Type_Array  2
#define INIV_Type_Str    1
#define INIV_Type_Int    0
#define INIV_AutoAdd_On  1
#define INIV_AutoAdd_Off 0

#define INIV_FirstGroup -10 ; these are currently
#define INIV_LastGroup  -11 ; unused (will be available later)


/* amigaini.error may contain any of the following codes:- */

#define INIE_Ok  0
#define INIE_File  1
#define INIE_Length  2
#define INIE_Open  3
#define INIE_Header  4
#define INIE_Item  5
#define INIE_Mem  6
#define INIE_Added 7
#define INIE_Command 8
#define INIE_UnKnown 9
#define INIE_GotHeader 10
#define INIE_ErrorTextNum 11

#define INIV_NumOfErrorTexts 13  ;Number of error values + the trailing NULL


/* librarybase info */

#define AMIGAINI_VMIN 6
#define AMIGAININAME "amigaini.library"

/*****************************************************************************/

#endif /* LIBRARIES_AMIGAINI_H */
