Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / header_token.h
blobd2086951f28954d713b95e9938a1bc1cc627391a
1 /* $NetBSD$ */
3 #ifndef _HEADER_TOKEN_H_INCLUDED_
4 #define _HEADER_TOKEN_H_INCLUDED_
6 /*++
7 /* NAME
8 /* header_token 3h
9 /* SUMMARY
10 /* mail header parser
11 /* SYNOPSIS
12 /* #include "header_token.h"
13 DESCRIPTION
14 .nf
17 * Utility library.
19 #include <vstring.h>
22 * HEADER header parser tokens. Specials and controls are represented by
23 * themselves. Character pointers point to substrings in a token buffer.
25 typedef struct HEADER_TOKEN {
26 int type; /* see below */
27 union {
28 const char *value; /* just a pointer, not a copy */
29 ssize_t offset; /* index into token buffer */
30 } u; /* indent beats any alternative */
31 } HEADER_TOKEN;
33 #define HEADER_TOK_TOKEN 256
34 #define HEADER_TOK_QSTRING 257
36 extern ssize_t header_token(HEADER_TOKEN *, ssize_t, VSTRING *, const char **, const char *, int);
38 /* LICENSE
39 /* .ad
40 /* .fi
41 /* The Secure Mailer license must be distributed with this software.
42 /* AUTHOR(S)
43 /* Wietse Venema
44 /* IBM T.J. Watson Research
45 /* P.O. Box 704
46 /* Yorktown Heights, NY 10598, USA
47 /*--*/
49 #endif