#ifndef _CONFIG_H_
#define _CONFIG_H_
extern "C" {
#  include "transport.h"
};


/* what is in our config */
typedef struct {
  char ModuleId[40];
  char RingName[40];
  long RingKey;
  int  HeartbeatInt;
  int  LogFile;
  char udpaddr[16];
  int  ipport;
  int  baseport;
  int  dataport;
  char serialnumber[40];
  char authcode[40];
  int  verbosity;
  char startmsg[256];
  int  statusinterval;
  int  minclockquality;
  int  minmass1position;
  int  maxmass1position;
  int  minmass2position;
  int  maxmass2position;
  int  minmass3position;
  int  maxmass3position;
  int  minmass4position;
  int  maxmass4position;
  int  minmass5position;
  int  maxmass5position;
  int  minmass6position;
  int  maxmass6position;
  int  mininputpower;
  int  maxinputpower;
  int  diagnostic;
} ConfigType;

extern ConfigType gConfig;


int readConfig(char *);

void printConfigStructToStdErr();

#endif
