masqmail

view src/lookup.h @ 424:19be3b27df6f

Fixed forgotten resetting of identity.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 11:24:33 +0200
parents 41958685480d
children
line source
1 /*
2 ** MasqMail
3 ** Copyright (C) Oliver Kurth,
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
20 #define MAX_DNSNAME MAXDNAME
22 typedef struct {
23 guint32 ip;
24 int pref;
25 guchar *name;
26 } mxip_addr;
29 typedef GList *(*resolve_func) (GList *, gchar *);
31 GList *resolve_dns_a(GList *list, gchar *domain);
32 GList *resolve_dns_mx(GList *list, gchar *domain);
33 GList *resolve_byname(GList *list, gchar *domain);
34 int dns_look_ip(gchar *domain, guint32 *ip);