/**************************
**
**	$Id:	finder.h
**
**	Finder Application Header File.
*/

#define 	NULL 	0L

/*
**	Include any required system files:
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <dos/dos.h>
#include <dos/dostags.h>
#include <exec/exec.h>
#include <intuition/intuition.h>
#include <libraries/gadtools.h>
#include <rexx/errors.h>
#include <rexx/rexxio.h>
#include <rexx/rxslib.h>
#include <rexx/storage.h>

#include <clib/dos_protos.h>
#include <clib/exec_protos.h>
#include <clib/intuition_protos.h>
#include <clib/gadtools_protos.h>
#include <clib/rexxsyslib_protos.h>
#include <clib/alib_protos.h>

/*
**	GUI Defines:
*/
#define	TOTAL_GADGETS		6
#define BORDER					8
#define MIN_HEIGHT			130
#define MIN_WIDTH				320

#define GID_LIST				0
#define GID_DRAWER			1
#define	GID_SEARCH			2
#define GID_QUIT				3
#define GID_FIND				4
#define GID_CANCEL			5

#define	AREXX_PORT_NAME	"Finder"

#define	AREXX_QUIT			0
#define AREXX_FIND			1
#define AREXX_SETSEARCH	2
#define AREXX_SETDRAWER	3					/* ARexx command equates 		*/

#define	SPACER_CHAR			' '				/* ARexx spacing Character 	*/

#define HELP_RAW_KEY			95			/* Raw keycode for HELP.  	*/

/*
**	Function prototypes:
*/
BOOL	SearchDir(char *directory, char *pattern);
BOOL	NotifyFind(char *file, BOOL log_call);
void	cleanexit(int returnvalue);
BOOL	OpenGUI(char *in_Drawer, char *in_Search);
void	GUI_Find(void);
void	ClearGUI_List(void);
void	CloseGUI(void);
void	EventLoop(char *in_Drawer, char *in_Search);
long	ShowErrorRequester(char *er_text, char *ok_string);

/* END OF FILE */
