From 79d9163e078bf085b994c63ae7bf596c4df665de Mon Sep 17 00:00:00 2001 From: Eric Faurot Date: Mon, 17 Sep 2012 20:19:19 +0000 Subject: Add map_create() and map_add() helpers. Simplify the config parser by a great deal. While there, rename the default "localhost" map to "" to make it look more internal, and create a single "" map referenced by "from all" rules, instead of creating a dynamic one for each of them. ok gilles@ chl@ --- usr.sbin/smtpd/smtpd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/smtpd/smtpd.h') 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 @@ -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 */ -- cgit v1.2.3