]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/bacula.h
Make mark run *MUCH* faster in restore tree + update copyright on changed files
[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-2004 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 #include "host.h"
32
33 #define _REENTRANT    1
34 #define _THREAD_SAFE  1
35 #define _POSIX_PTHREAD_SEMANTICS 1
36
37 /* System includes */
38 #if HAVE_STDINT_H
39 #include <stdint.h>
40 #endif
41 #if HAVE_STDARG_H
42 #include <stdarg.h>
43 #endif
44 #include <stdio.h>
45 #if HAVE_STDLIB_H
46 #include <stdlib.h>
47 #endif
48 #if HAVE_UNISTD_H
49 #include <unistd.h>
50 #endif
51 #if HAVE_ALLOCA_H
52 #include <alloca.h>
53 #endif
54 #include <errno.h>
55 #include <fcntl.h>
56
57 #ifdef xxxxx
58 #ifdef HAVE_GETOPT_LONG
59 #include <getopt.h>
60 #else
61 #include "lib/getopt.h"
62 #endif
63 #endif 
64
65 #include <string.h>
66 #include <strings.h>
67 #include <signal.h>
68 #include <ctype.h>
69 #ifndef _SPLINT_
70 #include <syslog.h>
71 #endif
72 #if HAVE_LIMITS_H
73 #include <limits.h>
74 #endif
75 #include <pwd.h>
76 #include <grp.h>
77 #include <time.h>
78 #include <netdb.h>
79 #include <sys/types.h>
80 #ifdef HAVE_SYS_BITYPES_H
81 #include <sys/bitypes.h>
82 #endif
83 #include <sys/ioctl.h>
84 #ifdef HAVE_SYS_SOCKET_H
85 #include <sys/socket.h>
86 #endif
87 #include <sys/stat.h>
88 #include <sys/time.h>
89 #if HAVE_SYS_WAIT_H
90 #include <sys/wait.h>
91 #endif
92 #include <netinet/in.h>
93 #include <arpa/inet.h>
94 #include <pthread.h>
95      
96 /* Local Bacula includes. Be sure to put all the system
97  *  includes before these.  
98  */
99 #include "version.h"
100 #include "bc_types.h"
101 #include "baconfig.h"
102 #include "lib/lib.h"
103
104 #ifndef HAVE_ZLIB_H
105 #undef HAVE_LIBZ                      /* no good without headers */
106 #endif
107
108 #endif