masqmail
diff src/lookup.h @ 0:08114f7dcc23
this is masqmail-0.2.21 from oliver kurth
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 17:05:23 +0200 |
parents | |
children | 26e34ae9a3e3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/lookup.h Fri Sep 26 17:05:23 2008 +0200 1.3 @@ -0,0 +1,33 @@ 1.4 +/* MasqMail 1.5 + * Copyright (C) Oliver Kurth, 1.6 + * 1.7 + * This program is free software; you can redistribute it and/or modify 1.8 + * it under the terms of the GNU General Public License as published by 1.9 + * the Free Software Foundation; either version 2 of the License, or 1.10 + * (at your option) any later version. 1.11 + * 1.12 + * This program is distributed in the hope that it will be useful, 1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1.15 + * GNU General Public License for more details. 1.16 + * 1.17 + * You should have received a copy of the GNU General Public License 1.18 + * along with this program; if not, write to the Free Software 1.19 + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1.20 + */ 1.21 + 1.22 +#define MAX_DNSNAME MAXDNAME 1.23 + 1.24 +typedef 1.25 +struct{ 1.26 + guint32 ip; 1.27 + int pref; 1.28 + guchar *name; 1.29 +} mxip_addr; 1.30 + 1.31 + 1.32 +typedef GList *(*resolve_func)(GList *, gchar *); 1.33 + 1.34 +GList *resolve_dns_a(GList *list, gchar *domain); 1.35 +GList *resolve_dns_mx(GList *list, gchar *domain); 1.36 +GList *resolve_byname(GList *list, gchar *domain);