Mercurial > masqmail
comparison src/lookup.h @ 10:26e34ae9a3e3
changed indention and line wrapping to a more consistent style
author | meillo@marmaro.de |
---|---|
date | Mon, 27 Oct 2008 16:23:10 +0100 |
parents | 08114f7dcc23 |
children | 116b0269c934 |
comparison
equal
deleted
inserted
replaced
9:31cc8a89cb74 | 10:26e34ae9a3e3 |
---|---|
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or modify | 4 * This program is free software; you can redistribute it and/or modify |
5 * it under the terms of the GNU General Public License as published by | 5 * it under the terms of the GNU General Public License as published by |
6 * the Free Software Foundation; either version 2 of the License, or | 6 * the Free Software Foundation; either version 2 of the License, or |
7 * (at your option) any later version. | 7 * (at your option) any later version. |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 */ | 17 */ |
18 | 18 |
19 #define MAX_DNSNAME MAXDNAME | 19 #define MAX_DNSNAME MAXDNAME |
20 | 20 |
21 typedef | 21 typedef struct { |
22 struct{ | 22 guint32 ip; |
23 guint32 ip; | 23 int pref; |
24 int pref; | 24 guchar *name; |
25 guchar *name; | |
26 } mxip_addr; | 25 } mxip_addr; |
27 | 26 |
28 | 27 |
29 typedef GList *(*resolve_func)(GList *, gchar *); | 28 typedef GList *(*resolve_func) (GList *, gchar *); |
30 | 29 |
31 GList *resolve_dns_a(GList *list, gchar *domain); | 30 GList *resolve_dns_a(GList * list, gchar * domain); |
32 GList *resolve_dns_mx(GList *list, gchar *domain); | 31 GList *resolve_dns_mx(GList * list, gchar * domain); |
33 GList *resolve_byname(GList *list, gchar *domain); | 32 GList *resolve_byname(GList * list, gchar * domain); |