#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <errno.h>

#define HOSTLEN 121
#define PASSLEN 20
#define PATHLEN 256
#define BUFLEN 1024

#ifndef VERSION
#define VERSION "v?.??"
#endif

typedef struct {
        int head;
        int tail;
        char buffer[BUFLEN];
} fifobuffer;

struct vhost
{
   struct vhost *next;
   char host[HOSTLEN];
};

typedef struct
{
   unsigned int cu;
   FILE *logf;
   char cfgfile[PATHLEN];
   char pidfile[PATHLEN];
   char logfile[PATHLEN];
   char fakeid[PATHLEN];
   char cloak[PATHLEN];
   char *homedir;

   unsigned int lport;
   unsigned int dport;
   unsigned int maxusers;
   char pass[PASSLEN];
   char oper[PASSLEN];
   struct vhost vhosts;
   char lhost[HOSTLEN];
} tconf;
