diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2012-09-17 20:19:19 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2012-09-17 20:19:19 +0000 |
commit | 79d9163e078bf085b994c63ae7bf596c4df665de (patch) | |
tree | 2637bcbaacbe7b7bdbf311c69232a25eb2f3847b /usr.sbin/smtpd/smtpd.h | |
parent | 7ae5b4210777fba0c46da75f69da33ac20326c6f (diff) |
Add map_create() and map_add() helpers. Simplify the config parser by a
great deal.
While there, rename the default "localhost" map to "<localhost>" to make
it look more internal, and create a single "<anyhost>" map referenced by
"from all" rules, instead of creating a dynamic one for each of them.
ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r-- | usr.sbin/smtpd/smtpd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h index a9122c3bf39..80e07910730 100644 --- a/usr.sbin/smtpd/smtpd.h +++ b/usr.sbin/smtpd/smtpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpd.h,v 1.351 2012/09/16 16:54:55 chl Exp $ */ +/* $OpenBSD: smtpd.h,v 1.352 2012/09/17 20:19:18 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -1031,6 +1031,8 @@ void *map_lookup(objid_t, char *, enum map_kind); int map_compare(objid_t, char *, enum map_kind, int (*)(char *, char *)); struct map *map_find(objid_t); struct map *map_findbyname(const char *); +struct map *map_create(enum map_kind, const char *); +void map_add(struct map *, const char *, const char *); /* mda.c */ |