#ifndef _READ_CONF_H
#define _READ_CONF_H

typedef struct _source_t {
  char *source;         /* source name, eg, RADB, ANS, ... */
  int authoritative;    /* are we authoritative for this source? */
  struct _source_t *next;
} source_t;

typedef struct _src_t {
  source_t *first;
  source_t *last;
} src_t;

typedef struct _config_info_t {
  int      irrd_port;     /* IRRd port */
  char     *irrd_host;    /* IRRd host */
  char     *super_passwd; /* super user/override password */
  char     *log_dir;      /* path to the acklog */
  char     *pgp_dir;      /* pgp dir */
  char     *db_admin;     /* db admin email addr */
  char     *footer_msg;   /* submission footer msg's */
  source_t *srcs;         /* pointer to the source_t list */
} config_info_t;

/* function prototypes */

int parse_irrd_conf_file (char *, trace_t *tr);
void add_src_obj (src_t *, source_t *);
source_t *create_source_obj (char *, int);
int config_trace_local (trace_t *tr, char *line);

#endif /* _READ_CONF_H */
