xref: /netbsd-src/external/ibm-public/postfix/dist/src/global/been_here.h (revision 1b9578b8c2c1f848eeb16dabbfd7d1f0d9fdefbd)
1 /*	$NetBSD: been_here.h,v 1.1.1.1 2009/06/23 10:08:45 tron Exp $	*/
2 
3 #ifndef _BEEN_HERE_H_INCLUDED_
4 #define _BEEN_HERE_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	been_here 3h
9 /* SUMMARY
10 /*	detect repeated occurrence of string
11 /* SYNOPSIS
12 /*	#include <been_here.h>
13 /* DESCRIPTION
14 /* .nf
15 
16  /*
17   * System library.
18   */
19 #include <stdarg.h>
20 
21  /*
22   * External interface.
23   */
24 typedef struct {
25     int     limit;			/* ceiling, zero for none */
26     int     flags;			/* see below */
27     struct HTABLE *table;
28 } BH_TABLE;
29 
30 #define BH_FLAG_NONE	0		/* no special processing */
31 #define BH_FLAG_FOLD	(1<<0)		/* fold case */
32 
33 extern BH_TABLE *been_here_init(int, int);
34 extern void been_here_free(BH_TABLE *);
35 extern int been_here_fixed(BH_TABLE *, const char *);
36 extern int PRINTFLIKE(2, 3) been_here(BH_TABLE *, const char *,...);
37 extern int been_here_check_fixed(BH_TABLE *, const char *);
38 extern int PRINTFLIKE(2, 3) been_here_check(BH_TABLE *, const char *,...);
39 
40 /* LICENSE
41 /* .ad
42 /* .fi
43 /*	The Secure Mailer license must be distributed with this software.
44 /* AUTHOR(S)
45 /*	Wietse Venema
46 /*	IBM T.J. Watson Research
47 /*	P.O. Box 704
48 /*	Yorktown Heights, NY 10598, USA
49 /*--*/
50 
51 #endif
52