]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/console_conf.h
Correct a minor build problem with wx-console.
[bacula/bacula] / bacula / src / wx-console / console_conf.h
1 /*
2    Copyright (C) 2000-2004 Kern Sibbald and John Walker
3
4    This program is free software; you can redistribute it and/or
5    modify it under the terms of the GNU General Public License
6    as published by the Free Software Foundation; either version 2
7    of the License, or (at your option) any later version.
8
9    This program is distributed in the hope that it will be useful,
10    but WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    GNU General Public License for more details.
13
14    You should have received a copy of the GNU General Public License
15    along with this program; if not, write to the Free Software
16    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17  */
18 /*
19  * Version $Id$
20  */
21
22 #ifndef CONSOLECONF_H
23 #define CONSOLECONF_H
24
25 #include "bacula.h"
26 #include "jcr.h"
27
28 /*
29  * Resource codes -- they must be sequential for indexing
30  */
31 #define R_FIRST                       1001
32
33 #define R_CONSOLE                     1001
34 #define R_DIRECTOR                    1002
35
36 #define R_LAST                        R_DIRECTOR
37
38 /*
39  * Some resource attributes
40  */
41 #define R_NAME                        1020
42 #define R_ADDRESS                     1021
43 #define R_PASSWORD                    1022
44 #define R_TYPE                        1023
45 #define R_BACKUP                      1024
46
47
48 /* Definition of the contents of each Resource */
49
50 /* Console "globals" */
51 struct s_res_con {
52    RES   hdr;
53    char *rc_file;                     /* startup file */
54    char *hist_file;                   /* command history file */
55    int require_ssl;                   /* Require SSL on all connections */
56    char *password;                    /* UA server password */
57 };
58 typedef struct s_res_con CONRES;
59
60 /* Director */
61 struct s_res_dir {
62    RES   hdr;
63    int   DIRport;                     /* UA server port */
64    char *address;                     /* UA server address */
65    char *password;                    /* UA server password */
66    int  enable_ssl;                   /* Use SSL */
67 };
68 typedef struct s_res_dir DIRRES;
69
70
71 /* Define the Union of all the above
72  * resource structure definitions.
73  */
74 union u_res {
75    struct s_res_dir     res_dir;
76    struct s_res_con     res_cons;
77    RES hdr;
78 };
79
80 typedef union u_res URES;
81
82 #endif // CONSOLECONF_H