updates.
[silc.git] / includes / silcincludes.h
1
2 /*
3
4   silcincludes.h
5
6   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7
8   Copyright (C) 1997 - 2000 Pekka Riikonen
9
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License as published by
12   the Free Software Foundation; either version 2 of the License, or
13   (at your option) any later version.
14   
15   This program is distributed in the hope that it will be useful,
16   but WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   GNU General Public License for more details.
19
20 */
21 /*
22   This file includes common definitions for SILC. This file MUST be included
23   by all files in SILC (directly or through other global include file).
24 */
25
26 #ifndef SILCINCLUDES_H
27 #define SILCINCLUDES_H
28
29 /* Automatically generated configuration header */
30 #include "silcdefs.h"
31
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <unistd.h>
35 #include <string.h>
36 #include <stdarg.h>
37
38 #include <ctype.h>
39 #include <sys/types.h>
40 #include <sys/stat.h>
41 #include <sys/time.h>
42 #include <sys/times.h>
43
44 #ifdef SOCKS5
45 #include "socks.h"
46 #endif
47
48 #ifdef HAVE_GETOPT_H
49 #include <getopt.h>
50 #endif
51
52 #ifdef HAVE_SIGNAL_H
53 #undef __USE_GNU
54 #include <signal.h>
55 #define __USE_GNU 1
56 #else
57 #error signal.h not found in the system
58 #endif
59
60 #ifdef HAVE_FCNTL_H
61 #include <fcntl.h>
62 #else
63 #error fcntl.h not found in the system
64 #endif
65
66 #ifdef HAVE_ASSERT_H
67 #include <errno.h>
68 #else
69 #error errno.h not found in the system
70 #endif
71
72 #ifdef HAVE_ASSERT_H
73 #include <assert.h>
74 #else
75 #error assert.h not found in the system
76 #endif
77
78 #include <sys/socket.h>
79 #ifdef HAVE_NETINET_IN_H
80 #include <netinet/in.h>
81 #else
82 #error netinet/in.h not found in the system
83 #endif
84
85 #ifdef HAVE_NETINET_TCP_H
86 #include <netinet/tcp.h>
87 #else
88 #error netinet/tcp.h not found in the system
89 #endif
90
91 #ifdef HAVE_NETDB_H
92 #include <netdb.h>
93 #else
94 #error netdb.h not found in the system
95 #endif
96
97 #ifdef HAVE_ARPA_INET_H
98 #include <arpa/inet.h>
99 #else
100 #error arpa/inet.h not found in the system
101 #endif
102
103 #ifdef HAVE_SYS_MMAN_H
104 #include <sys/mman.h>
105 #endif
106
107 #ifdef HAVE_DLFCN_H
108 #include <dlfcn.h>
109 #endif
110
111 #ifndef HAVE_GETOPT_LONG
112 #include "../lib/contrib/getopt.h"
113 #endif
114
115 #ifndef TRUE
116 #define TRUE 1
117 #endif
118 #ifndef FALSE
119 #define FALSE 0
120 #endif
121
122 /* Generic global SILC includes */
123 #include "bitmove.h"
124
125 /* Math library includes */
126 #include "silcmp.h"
127 #include "modinv.h"
128 #include "mpbin.h"
129 #include "silcprimegen.h"
130
131 /* Crypto library includes */
132 #include "silccipher.h"
133 #include "silchash.h"
134 #include "silchmac.h"
135 #include "silcrng.h"
136 #include "silcpkcs.h"
137
138 /* SILC util library includes */
139 #include "silclog.h"
140 #include "silcmemory.h"
141 #include "silcbuffer.h"
142 #include "silcbufutil.h"
143 #include "silcbuffmt.h"
144 #include "silcnet.h"
145 #include "silcutil.h"
146 #include "silcconfig.h"
147 #include "silctask.h"
148 #include "silcschedule.h"
149
150 /* SILC core library includes */
151 #include "id.h"
152 #include "idcache.h"
153 #include "silcprotocol.h"
154 #include "silcsockconn.h"
155 #include "silcpayload.h"
156 #include "silccommand.h"
157 #include "silcchannel.h"
158 #include "silcpacket.h"
159 #include "silcnotify.h"
160 #include "silcmode.h"
161
162 /* TRQ (SilcList API and SilcDList API) */
163 #include "silclist.h"
164 #include "silcdlist.h"
165
166 #ifdef SILC_SIM
167 /* SILC Module library includes */
168 #include "silcsim.h"
169 #include "silcsimutil.h"
170 #endif
171
172 /* SILC Key Exchange library includes */
173 #include "silcske.h"
174 #include "payload.h"
175 #include "groups.h"
176
177 #endif
178