5 Author: Pekka Riikonen <priikone@silcnet.org>
7 Copyright (C) 1997 - 2007 Pekka Riikonen
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; version 2 of the License.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
20 This file includes common definitions for SILC. This file MUST be included
21 by all files in SILC (directly or through other global include file).
24 #ifndef SILCINCLUDES_H
25 #define SILCINCLUDES_H
40 #if defined(__EPOC32__) || defined(__SYMBIAN32__)
48 #if defined(__MACH__) && defined(__APPLE__)
57 #define SILC_SIZEOF_LONG_LONG @SILC_SIZEOF_LONG_LONG@
58 #define SILC_SIZEOF_LONG @SILC_SIZEOF_LONG@
59 #define SILC_SIZEOF_INT @SILC_SIZEOF_INT@
60 #define SILC_SIZEOF_SHORT @SILC_SIZEOF_SHORT@
61 #define SILC_SIZEOF_CHAR @SILC_SIZEOF_CHAR@
62 #define SILC_SIZEOF_VOID_P @SILC_SIZEOF_VOID_P@
64 /* Compilation time defines, for third-party software */
68 @__SILC_PACKAGE_VERSION@
70 #if defined(HAVE_SILCDEFS_H)
71 /* Automatically generated configuration header */
75 #include "../symbian/silcdefs.h"
76 #endif /* SILC_SYMBIAN */
77 #include "silcdistdefs.h"
78 #endif /* HAVE_SILCDEFS_H */
80 /* Platform specific includes */
82 #if defined(SILC_WIN32)
83 #include "silcwin32.h"
86 #if defined(SILC_SYMBIAN)
87 #include "silcsymbian.h"
99 #include <sys/types.h>
100 #include <sys/stat.h>
119 #if !defined(SILC_WIN32)
122 #include <sys/time.h>
124 #include <sys/times.h>
130 #if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT)
133 #if defined(HAVE_SILCDEFS_H)
135 #endif /* HAVE_SILCDEFS_H */
142 #include <sys/socket.h>
143 #ifdef HAVE_NETINET_IN_H
144 #include <netinet/in.h>
150 #ifdef HAVE_NETINET_TCP_H
151 #include <netinet/tcp.h>
159 #ifdef HAVE_ARPA_INET_H
160 #include <arpa/inet.h>
163 #ifdef HAVE_SYS_MMAN_H
164 #include <sys/mman.h>
176 #if defined(HAVE_SILCDEFS_H)
178 #endif /* HAVE_SILCDEFS_H */
183 #ifdef SILC_HAVE_PTHREAD
191 #ifdef HAVE_TERMIOS_H
207 #ifdef HAVE_LANGINFO_H
208 #include <langinfo.h>
211 #ifdef HAVE_SYS_RESOURCE_H
212 #include <sys/resource.h>
215 #endif /* !SILC_WIN32 */
217 /* Include generic SILC type definitions */
218 #include "silctypes.h"
219 #include "silcmutex.h"
220 #include "silcatomic.h"
221 #include "silcversion.h"
223 /* SILC util library includes */
224 #include "silcstack.h"
225 #include "silcmemory.h"
226 #include "silcsnprintf.h"
228 /* Math library includes */
230 #include "silcmath.h"
232 /* More SILC util library includes */
233 #include "silctime.h"
234 #include "silccond.h"
235 #include "silcthread.h"
236 #include "silcschedule.h"
238 #include "silcbuffer.h"
239 #include "silcbuffmt.h"
241 /* Crypto library includes */
242 #include "silccipher.h"
243 #include "silchash.h"
244 #include "silchmac.h"
246 #include "silcpkcs.h"
248 #include "silcpkcs1.h"
250 /* More SILC util library includes */
251 #include "silchashtable.h"
252 #include "silclist.h"
253 #include "silcdlist.h"
254 #include "silcasync.h"
255 #include "silcstream.h"
257 #include "silcfileutil.h"
258 #include "silcstrutil.h"
259 #include "silcutf8.h"
260 #include "silcstringprep.h"
261 #include "silcutil.h"
262 #include "silcconfig.h"
264 #include "silcsocketstream.h"
265 #include "silcfdstream.h"
266 #include "silcvcard.h"
267 #include "silcmime.h"
269 #ifdef SILC_DIST_ASN1
270 #include "silcasn1.h"
272 #endif /* SILC_DIST_ASN1 */
274 /* SILC core library includes */
275 #include "silcargument.h"
276 #include "silcstatus.h"
278 #include "silccommand.h"
279 #include "silcauth.h"
280 #include "silcmessage.h"
281 #include "silcchannel.h"
282 #include "silcpacket.h"
283 #include "silcnotify.h"
284 #include "silcmode.h"
285 #include "silcattrs.h"
286 #include "silcpubkey.h"
288 /* Application utility includes */
289 #include "silcapputil.h"
290 #ifdef SILC_DIST_IDCACHE
291 #include "silcidcache.h"
292 #endif /* SILC_DIST_IDCACHE */
296 #endif /* SILC_DIST_SKR */
298 #if defined(SILC_SIM)
299 /* SILC Module library includes */
301 #include "silcsimutil.h"
304 /* SILC Key Exchange library includes */
306 #include "silcske_payload.h"
307 #include "silcske_groups.h"
308 #include "silcconnauth.h"
310 #ifdef SILC_DIST_SFTP
311 /* SILC SFTP library */
312 #include "silcsftp.h"
313 #include "silcsftp_fs.h"
314 #endif /* SILC_DIST_SFTP */
316 #ifdef SILC_DIST_HTTP
317 /* SILC HTTP library */
318 #include "silchttpserver.h"
319 #include "silchttpphp.h"
320 #endif /* SILC_DIST_HTTP */
326 #endif /* SILCINCLUDES_H */