xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/mac_expand.h (revision 6a493d6bc668897c91594964a732d38505b70cbb)
1 /*	$NetBSD: mac_expand.h,v 1.1.1.3 2013/01/02 18:59:13 tron Exp $	*/
2 
3 #ifndef _MAC_EXPAND_H_INCLUDED_
4 #define _MAC_EXPAND_H_INCLUDED_
5 
6 /*++
7 /* NAME
8 /*	mac_expand 3h
9 /* SUMMARY
10 /*	expand macro references in string
11 /* SYNOPSIS
12 /*	#include <mac_expand.h>
13  DESCRIPTION
14  .nf
15 
16  /*
17   * Utility library.
18   */
19 #include <vstring.h>
20 #include <mac_parse.h>
21 
22  /*
23   * Features.
24   */
25 #define MAC_EXP_FLAG_NONE	(0)
26 #define MAC_EXP_FLAG_RECURSE	(1<<0)
27 #define MAC_EXP_FLAG_APPEND	(1<<1)
28 #define MAC_EXP_FLAG_SCAN	(1<<2)
29 
30  /*
31   * Real lookup or just a test?
32   */
33 #define MAC_EXP_MODE_TEST	(0)
34 #define MAC_EXP_MODE_USE	(1)
35 
36 typedef const char *(*MAC_EXP_LOOKUP_FN)(const char *, int, char *);
37 
38 extern int mac_expand(VSTRING *, const char *, int, const char *, MAC_EXP_LOOKUP_FN, 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