]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/tray-monitor/tray_conf.h
Tweak leave SQL library links in rpm
[bacula/bacula] / bacula / src / qt-console / tray-monitor / tray_conf.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2016 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is 
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  * Tray Monitor specific configuration and defines
21  *
22  *   Adapted from dird_conf.c
23  *
24  *     Nicolas Boichat, August MMIV
25  *
26  */
27
28 /* NOTE:  #includes at the end of this file */
29
30 /*
31  * Resource codes -- they must be sequential for indexing
32  */
33 enum rescode {
34    R_MONITOR = 1001,
35    R_DIRECTOR,
36    R_CLIENT,
37    R_STORAGE,
38    R_CONSOLE_FONT,
39    R_FIRST = R_MONITOR,
40    R_LAST  = R_CONSOLE_FONT                /* keep this updated */
41 };
42
43
44 /*
45  * Some resource attributes
46  */
47 enum {
48    R_NAME = 1020,
49    R_ADDRESS,
50    R_PASSWORD,
51    R_TYPE,
52    R_BACKUP
53 };
54
55 /* Director */
56 struct DIRRES {
57    RES   hdr;
58    uint32_t DIRport;                  /* UA server port */
59    char *address;                     /* UA server address */
60    bool enable_ssl;                   /* Use SSL */
61 };
62
63 /*
64  *   Tray Monitor Resource
65  *
66  */
67 struct MONITOR {
68    RES   hdr;
69    bool require_ssl;                  /* Require SSL for all connections */
70    MSGS *messages;                    /* Daemon message handler */
71    char *password;                    /* UA server password */
72    utime_t RefreshInterval;           /* Status refresh interval */
73    utime_t FDConnectTimeout;          /* timeout for connect in seconds */
74    utime_t SDConnectTimeout;          /* timeout in seconds */
75    utime_t DIRConnectTimeout;         /* timeout in seconds */
76 };
77
78
79 /*
80  *   Client Resource
81  *
82  */
83 struct CLIENT {
84    RES   hdr;
85
86    uint32_t FDport;                   /* Where File daemon listens */
87    char *address;
88    char *password;
89    bool enable_ssl;                   /* Use SSL */
90 };
91
92 /*
93  *   Store Resource
94  *
95  */
96 struct STORE {
97    RES   hdr;
98
99    uint32_t SDport;                   /* port where Directors connect */
100    char *address;
101    char *password;
102    bool enable_ssl;                   /* Use SSL */
103 };
104
105 struct CONFONTRES {
106    RES   hdr;
107    char *fontface;                    /* Console Font specification */
108 };
109
110 /* Define the Union of all the above
111  * resource structure definitions.
112  */
113 union URES {
114    MONITOR    res_monitor;
115    DIRRES     res_dir;
116    CLIENT     res_client;
117    STORE      res_store;
118    CONFONTRES con_font;
119    RES        hdr;
120 };