// $Id: pdinrs_config.h,v 1.2 2005/03/23 23:11:56 pdi Exp $
//*****************************************************************************
// Copyright 1998-2022 Stonie R. Cooper, Licensed under the auspices of GPLv3,
// See top-level copyright disclaimer (COPYRIGHT) and license (LICENSE)
// File:   pdinrs_config.h
// Author: Stonie R. Cooper
//         stonie.cooper@planetarydata.com                                           
// Revision Record:                                                           
//         Rewritten: 20050114 by Stonie R. Cooper
//                  - created file
//         Revised: 19981004.2113UTC by Stonie R. Cooper
//                  - changed name and added return codes.
//*****************************************************************************

//*****************************************************************************
// This header file defines the configuration structures for the channel 
// manager.
//*****************************************************************************

#ifndef PDINRS_CONFIG_H
#define PDINRS_CONFIG_H


#include <pdinrs.h>


typedef enum {MAIN, CHANNEL, REPLAY, UNK} modetype;

typedef struct 
{
  char               label[(MAXLINESIZE-2)];
  char               channelConfigFile[(MAXLINESIZE-2)];
} channelIDType;

typedef struct 
{
  log_type           logFile;
  log_type           errorFile;
  replayType         *replay;
  int                numChannels;
  channelIDType      channelList[MAX_CHANNELS]; 
} cmConfigType;

int pdinrs_config(const char *file, cmConfigType *channelManagerConfig);

#endif
