]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/tray-monitor/tray_conf.h
Fix bug # 746 - Windows FD crashes when job canceled
[bacula/bacula] / bacula / src / tray-monitor / tray_conf.h
1 /*
2  * Tray Monitor specific configuration and defines
3  *
4  *   Adapted from dird_conf.c
5  *
6  *     Nicolas Boichat, August MMIV
7  *
8  *    Version $Id$
9  */
10 /*
11    Bacula® - The Network Backup Solution
12
13    Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
14
15    The main author of Bacula is Kern Sibbald, with contributions from
16    many others, a complete list can be found in the file AUTHORS.
17    This program is Free Software; you can redistribute it and/or
18    modify it under the terms of version two of the GNU General Public
19    License as published by the Free Software Foundation plus additions
20    that are listed in the file LICENSE.
21
22    This program is distributed in the hope that it will be useful, but
23    WITHOUT ANY WARRANTY; without even the implied warranty of
24    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25    General Public License for more details.
26
27    You should have received a copy of the GNU General Public License
28    along with this program; if not, write to the Free Software
29    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30    02110-1301, USA.
31
32    Bacula® is a registered trademark of John Walker.
33    The licensor of Bacula is the Free Software Foundation Europe
34    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
35    Switzerland, email:ftf@fsfeurope.org.
36 */
37
38 /* NOTE:  #includes at the end of this file */
39
40 /*
41  * Resource codes -- they must be sequential for indexing
42  */
43 enum rescode {
44    R_MONITOR = 1001,
45    R_DIRECTOR,
46    R_CLIENT,
47    R_STORAGE,
48    R_FIRST = R_MONITOR,
49    R_LAST  = R_STORAGE                /* keep this updated */
50 };
51
52
53 /*
54  * Some resource attributes
55  */
56 enum {
57    R_NAME = 1020,
58    R_ADDRESS,
59    R_PASSWORD,
60    R_TYPE,
61    R_BACKUP
62 };
63
64 /* Director */
65 struct DIRRES {
66    RES   hdr;
67    int   DIRport;                     /* UA server port */
68    char *address;                     /* UA server address */
69    int enable_ssl;                    /* Use SSL */
70 };
71
72 /*
73  *   Tray Monitor Resource
74  *
75  */
76 struct MONITOR {
77    RES   hdr;
78    int require_ssl;                   /* Require SSL for all connections */
79    MSGS *messages;                    /* Daemon message handler */
80    char *password;                    /* UA server password */
81    utime_t RefreshInterval;           /* Status refresh interval */
82    utime_t FDConnectTimeout;          /* timeout for connect in seconds */
83    utime_t SDConnectTimeout;          /* timeout in seconds */
84 };
85
86
87 /*
88  *   Client Resource
89  *
90  */
91 struct CLIENT {
92    RES   hdr;
93
94    int   FDport;                      /* Where File daemon listens */
95    char *address;
96    char *password;
97    int enable_ssl;                    /* Use SSL */
98 };
99
100 /*
101  *   Store Resource
102  *
103  */
104 struct STORE {
105    RES   hdr;
106
107    int   SDport;                      /* port where Directors connect */
108    char *address;
109    char *password;
110    int enable_ssl;                    /* Use SSL */
111 };
112
113
114
115 /* Define the Union of all the above
116  * resource structure definitions.
117  */
118 union URES {
119    MONITOR    res_monitor;
120    DIRRES     res_dir;
121    CLIENT     res_client;
122    STORE      res_store;
123    RES        hdr;
124 };