#include "main.h"
#include "Logs.h"
#include "Error.h"

#define BUFSIZE 512
#define INSIDE  0x0000100
#define PTRALL  0x0010000
#define PTRNULL -1
#define IS_STRING 6
#define DEFAULT_KEEP 10
int ReadConfig(const char *,int);
int get_int(char *,int,bool,int);

/* enum/char* of every Key to be avaluated */
enum
{ K_LISTEN,  K_ENV,      K_MAXTHR,    K_MAXCPU,  K_MAXMEM,  K_PRIO, K_CHROOT,
  K_SETUID,  K_SETEUID,  K_SETGID,    K_SETEGID, K_WHITESPACE, K_EXEC,
  K_TIMEOUT, K_CHDIR,    K_STRICT,    K_DAEMON,  K_LOGFILE, K_VERBOSE,
  K_CONSOLE, K_BACKLOG,  K_NOARGS,    K_FALSETIMEOUT, K_MODOPT,
  K_MAXHDR,  K_HTTPLEN,  K_NOTIMEOUT, K_USLEEP,  K_ADDSSL,  K_ERRFILE,
  K_NOLOCK,  K_IO,       K_KEEP,      K_LOGSTR,  K_NOLOGS,  K_ENC,
  K_ADDMOD,  K_NORESOLV, K_DOCORE,    K_EXECTIMEOUT, K_LASTONE };
extern char *conf_keys[];

