/* sipd-config-sql - Setup config global and read configuration file from database. */ 

/* Copyright 1998-2001 by Columbia University.  All rights reserved. */

#ifndef SIPD_CONFIG_SQL_H_
#define SIPD_CONFIG_SQL_H_

extern void ConfigInit(int sig);
extern void ConfigCleanup(void);


/* Arguments specified on the command line */

/*
 * XXX: 
 *   The DatabaseURI specifies the database location. It should
 *   be something like fastsql://user:password@host/sip.
 *
 *   The ServerName is optional, and specifies which domain to use
 *   when multiple domains are located in the database.
 */
extern struct commandline_t {
  char *DatabaseURI;     /* Database URI */
  char *ServerName;      /* e.g. cs.columbia.edu */
  int do_daemon;
  int debug_flag;
} commandline;

#endif /* SIPD_CONFIG_H_ */
