]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/stored.h
Add -p option to SD => forge on + fix Makefile for gnome files
[bacula/bacula] / bacula / src / stored / stored.h
1 /*
2  * Storage daemon specific defines and includes
3  *
4  *  Version $Id$
5  */
6 /*
7    Copyright (C) 2000-2003 Kern Sibbald and John Walker
8
9    This program is free software; you can redistribute it and/or
10    modify it under the terms of the GNU General Public License as
11    published by the Free Software Foundation; either version 2 of
12    the License, or (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 GNU
17    General Public License for more details.
18
19    You should have received a copy of the GNU General Public
20    License along with this program; if not, write to the Free
21    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22    MA 02111-1307, USA.
23
24  */
25
26 #ifndef __STORED_H_
27 #define __STORED_H_
28
29 #define STORAGE_DAEMON 1
30
31 #ifdef HAVE_MTIO_H
32 #include <mtio.h>
33 #endif
34 #ifdef HAVE_SYS_MTIO_H
35 #include <sys/mtio.h>
36 #endif
37 #include "block.h"
38 #include "record.h"
39 #include "dev.h"
40 #include "stored_conf.h"
41 #include "bsr.h"
42 #include "jcr.h"
43 #include "protos.h"
44 #ifdef HAVE_LIBZ
45 #include <zlib.h>                     /* compression headers */
46 #else
47 #define uLongf uint32_t
48 #endif
49
50 extern STORES *me;                    /* "Global" daemon resource */
51 extern bool forge_on;                 /* proceed inspite of I/O errors */
52
53 #ifdef debug_tracing
54 extern int _rewind_dev(char *file, int line, DEVICE *dev);
55 #define rewind_dev(d) _rewind_dev(__FILE__, __LINE__, (d))
56 #endif
57
58 #endif /* __STORED_H_ */