2 Bacula(R) - The Network Backup Solution
4 Copyright (C) 2000-2017 Kern Sibbald
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.
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.
14 This notice must be preserved when any source code is
15 conveyed and/or propagated.
17 Bacula(R) is a registered trademark of Kern Sibbald.
20 * Tray Monitor specific configuration and defines
22 * Adapted from dird_conf.c
24 * Nicolas Boichat, August MMIV
33 /* NOTE: #includes at the end of this file */
36 * Resource codes -- they must be sequential for indexing
45 R_LAST = R_CONSOLE_FONT /* keep this updated */
50 * Some resource attributes
62 int32_t Errors; /* FD/SD errors */
67 uint32_t VolSessionId;
68 uint32_t VolSessionTime;
75 char Client[MAX_NAME_LENGTH];
76 char FileSet[MAX_NAME_LENGTH];
77 char Storage[MAX_NAME_LENGTH];
78 char RStorage[MAX_NAME_LENGTH];
80 char Job[MAX_NAME_LENGTH];
81 char CurrentFile[4096];
84 /* forward definition */
87 /* Director/Client/Storage */
89 RES hdr; /* Keep First */
90 uint32_t type; /* Keep 2nd R_CLIENT, R_DIRECTOR, R_STORAGE */
92 uint32_t port; /* UA server port */
93 char *address; /* UA server address */
94 utime_t connect_timeout; /* timeout for connect in seconds */
97 bool use_remote; /* Use Client Initiated backup feature */
98 bool use_monitor; /* update the status icon with this resource */
99 bool use_setip; /* Send setip command before a job */
101 bool tls_enable; /* Enable TLS on all connections */
102 char *tls_ca_certfile; /* TLS CA Certificate File */
103 char *tls_ca_certdir; /* TLS CA Certificate Directory */
104 char *tls_certfile; /* TLS Client Certificate File */
105 char *tls_keyfile; /* TLS Client Key File */
107 /* ------------------------------------------------------------ */
108 TLS_CONTEXT *tls_ctx; /* Shared TLS Context */
109 worker *wrk; /* worker that will handle async op */
113 char name[MAX_NAME_LENGTH];
114 char version[MAX_NAME_LENGTH];
115 char plugins[MAX_NAME_LENGTH];
116 char started[32]; /* ISO date */
117 char reloaded[32]; /* ISO date */
120 dlist *terminated_jobs;
125 /* List of resources available */
146 /* Information about the job */
158 * Tray Monitor Resource
162 RES hdr; /* Keep first */
163 int32_t type; /* Keep second */
165 bool comm_compression; /* Enable comm line compression */
166 bool require_ssl; /* Require SSL for all connections */
167 bool display_advanced_options; /* Display advanced options (run options for example) */
168 MSGS *messages; /* Daemon message handler */
169 char *password; /* UA server password */
170 char *command_dir; /* Where to find Commands */
171 utime_t RefreshInterval; /* Status refresh interval */
175 /* Define the Union of all the above
176 * resource structure definitions.
184 void error_handler(const char *file, int line, LEX *lc, const char *msg, ...);