* Began (but did not finish) applying GPL3+ declarations to each source file. This...
[citadel.git] / citadel / domain.h
1 /*
2  * $Id$
3  *
4  *
5  * Copyright (c) 1987-2009 by the citadel.org team
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20  */
21
22 struct mx {
23         int pref;
24         char host[1024];
25 };
26
27 int getmx(char *mxbuf, char *dest);
28 int get_hosts(char *mxbuf, char *rectype);
29
30
31 /* HP/UX has old include files...these are from arpa/nameser.h */
32
33 #include "typesize.h"
34
35 #ifndef HFIXEDSZ
36 #define HFIXEDSZ        12              /* I hope! */
37 #endif
38 #ifndef INT16SZ
39 #define INT16SZ         sizeof(cit_int16_t)
40 #endif
41 #ifndef INT32SZ
42 #define INT32SZ         sizeof(cit_int32_t)
43 #endif