#include "s.h"

/*
 * Pattern matcher in Header
 */

struct a_pattern {
  int n;
  STR errmsg;
  STR pname;
  STR **pattern;
};

struct patterns {
  int n;
  STR name;
  struct a_pattern **a_ptn;
};

typedef struct HM {
  int  n;
  char *dir;
  struct patterns **ptn;
}HM;

typedef struct HMR {            /* Struct for returning */
  int rcode;
  char *where;
  STR *msg;
  STR *pname;
}HMR;

int header_match(HM *hm, char *header_line, HMR* hmr);
void header_match_delete(HM *hm);

/*
 * $Id: h.h,v 1.4 2004/09/13 08:49:23 yuuji Exp yuuji $
 */
