]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/bacula.h
Doc + misc
[bacula/bacula] / bacula / src / bacula.h
1 /*
2  * bacula.h -- main header file to include in all Bacula source
3  *
4  *   Version $Id$
5  */
6
7 /*
8    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License as
12    published by the Free Software Foundation; either version 2 of
13    the License, or (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 GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public
21    License along with this program; if not, write to the Free
22    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23    MA 02111-1307, USA.
24
25  */
26
27 #ifndef _BACULA_H
28 #define _BACULA_H 1
29
30 #include "config.h"
31
32 #define _REENTRANT    1
33 #define _THREAD_SAFE  1
34 #define _POSIX_PTHREAD_SEMANTICS 1
35
36 /* System includes */
37 #if HAVE_STDINT_H
38 #include <stdint.h>
39 #endif
40 #if HAVE_STDARG_H
41 #include <stdarg.h>
42 #endif
43 #include <stdio.h>
44 #if HAVE_STDLIB_H
45 #include <stdlib.h>
46 #endif
47 #if HAVE_UNISTD_H
48 #include <unistd.h>
49 #endif
50 #if HAVE_ALLOCA_H
51 #include <alloca.h>
52 #endif
53 #include <errno.h>
54 #include <fcntl.h>
55
56 #ifdef xxxxx
57 #ifdef HAVE_GETOPT_LONG
58 #include <getopt.h>
59 #else
60 #include "lib/getopt.h"
61 #endif
62 #endif 
63
64 #include <string.h>
65 #include <strings.h>
66 #include <signal.h>
67 #include <ctype.h>
68 #ifndef _SPLINT_
69 #include <syslog.h>
70 #endif
71 #if HAVE_LIMITS_H
72 #include <limits.h>
73 #endif
74 #include <pwd.h>
75 #include <time.h>
76 #include <netdb.h>
77 #include <sys/types.h>
78 #ifdef HAVE_SYS_BITYPES_H
79 #include <sys/bitypes.h>
80 #endif
81 #include <sys/ioctl.h>
82 #include <sys/socket.h>
83 #include <sys/stat.h>
84 #include <sys/time.h>
85 #if HAVE_SYS_WAIT_H
86 #include <sys/wait.h>
87 #endif
88 #include <netinet/in.h>
89 #include <arpa/inet.h>
90 #include <pthread.h>
91      
92 /* Local Bacula includes. Be sure to put all the system
93  *  includes before these.  
94  */
95 #include "version.h"
96 #include "baconfig.h"
97 #include "bc_types.h"
98 #include "lib/lib.h"
99
100 #ifndef HAVE_ZLIB_H
101 #undef HAVE_LIBZ                      /* no good without headers */
102 #endif
103
104 #endif