// $Id: pdinrs_channel_config.h,v 1.1.1.1 2005/01/10 18:47:02 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_channel_config.h
// Author: Stonie R. Cooper
//         stonie.cooper@planetarydata.com                                           
// Revision Record:                                                           
//         Rewritten: 20050114 by Stonie R. Cooper
//                  - created file
//        Revision: 19981004.2118UTC by Stonie R. Cooper
//                  - changed name and added return codes.
//*****************************************************************************

//*****************************************************************************
// This header file defines the general configuration structures for the
// data channels.
//*****************************************************************************

#ifndef PDINRS_CHANNEL_CONFIG_H
#define PDINRS_CHANNEL_CONFIG_H

// include file listing - PDI derivated                                

#include <pdinrs.h>

typedef enum {CHANNEL, BUFFER, DISTRIBUTION, UNK} modetype;

typedef struct 
{
  log_type            logFile;
  log_type            errorFile; 
} ChanSettingsType;

typedef struct
{
  char                streamManagerConfigFile[(MAXLINESIZE-2)];
} StreamSettingsType;

typedef struct
{
  char                productManagerConfigFile[(MAXLINESIZE-2)];
} ProductSettingsType;

int pdinrs_channel_config(const char *file, ChanSettingsType *channelConfig,
  StreamSettingsType *streamConfig, ProductSettingsType *productConfig,
	const char *label);

#endif
