]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/stored/stored.h
baa0b40f6e3a9884549235a30ed1c14a869dc5e6
[bacula/bacula] / bacula / src / stored / stored.h
1 /*
2  * Storage daemon specific defines and includes
3  */
4 /*
5    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
6
7    This program is free software; you can redistribute it and/or
8    modify it under the terms of the GNU General Public License as
9    published by the Free Software Foundation; either version 2 of
10    the License, or (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15    General Public License for more details.
16
17    You should have received a copy of the GNU General Public
18    License along with this program; if not, write to the Free
19    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
20    MA 02111-1307, USA.
21
22  */
23
24 #ifndef __STORED_H_
25 #define __STORED_H_
26
27 #include <sys/mtio.h>
28 #include "block.h"
29 #include "record.h"
30 #include "dev.h"
31 #include "stored_conf.h"
32 #include "jcr.h"
33 #include "protos.h"
34
35 /* **** FIXME make this dynamic ****/
36 #define MAX_DEVICES 20
37
38 /* 
39  * Old shared memory buffer. Shared memory no longer used,
40  *  so this just acts as a global.
41  */
42 struct s_shm {
43    long VolSessionId;
44    long VolSessionTime;
45    DEVICE dev[MAX_DEVICES];
46 };
47
48 extern char errmsg[];                /* general error message */
49
50 #endif /* __STORED_H_ */