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