/************************************************************************/
/* Copyright 2003 MBARI													*/
/************************************************************************/
/* Summary	: Definitions for parsing the config file for OASIS3		*/
/* Filename : config.h													*/
/* Author	: Robert Herlien (rah)										*/
/* Project	: OASIS Mooring Replacement (OASIS3)						*/
/* Revision : 1.0														*/
/* Created	: 08/14/2003												*/
/*																			*/
/* MBARI provides this documentation and code "as is", with no warranty,	*/
/* express or implied, of its quality or consistency. It is provided without*/
/* support and without obligation on the part of the Monterey Bay Aquarium	*/
/* Research Institute to assist in its use, correction, modification, or	*/
/* enhancement. This information should not be published or distributed to	*/
/* third parties without specific written permission from MBARI.			*/
/*																			*/
/************************************************************************/
/* Modification History:												*/
/* 14aug2003 rah - created												*/
/* $Log $
*/
/************************************************************************/

#ifndef INCconfigh
#define INCconfigh		1

#include <oasis.h>

#define CFG_FILE		"OASIS.CFG"
#define MAX_BAUD		57600

typedef struct					/****************************************/
{								/* Structure for match string to value	*/
  char			*sv_string;		/* Keyword to match						*/
  Nat32			sv_val;			/* Value to return						*/
} StrValPair;					/****************************************/


/****************************************/
/* Function Declarations				*/
/****************************************/

Errno	parseConfigFile(char *cfgFileName);
const	DrvDesc *findDriver(char *drvName);
Void	parseAddDefaultDrivers(Void);
Errno	parseArray(char* cmdtail);
Errno	parseDriver(char *cmdtail);
Errno	parseModBus(char *cmdtail);
char	*getLogString(Byte logType);

#endif	/* INCconfigh */
