xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/match_list.h (revision ca453df649ce9db45b64d73678ba06cbccf9aa11)
1 /*	$NetBSD: match_list.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
2 
3 #ifndef _MATCH_LIST_H_INCLUDED_
4 #define _MATCH_LIST_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	match_list 3h
9 /* SUMMARY
10 /*	generic list-based pattern matching
11 /* SYNOPSIS
12 /*	#include <match_list.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * External interface.
18   */
19 typedef struct MATCH_LIST MATCH_LIST;
20 typedef int (*MATCH_LIST_FN) (int, const char *, const char *);
21 
22 extern MATCH_LIST *match_list_init(int, const char *, int,...);
23 extern int match_list_match(MATCH_LIST *,...);
24 extern void match_list_free(MATCH_LIST *);
25 
26 /* LICENSE
27 /* .ad
28 /* .fi
29 /*	The Secure Mailer license must be distributed with this software.
30 /* AUTHOR(S)
31 /*	Wietse Venema
32 /*	IBM T.J. Watson Research
33 /*	P.O. Box 704
34 /*	Yorktown Heights, NY 10598, USA
35 /*--*/
36 
37 #endif
38