]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/wx-console/console_conf.h
- wxbRestorePanel : Fixed problem when the newly created job is not at the end of...
[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 #ifndef CONSOLECONF_H
20 #define CONSOLECONF_H
21
22 #include "bacula.h"
23 #include "jcr.h"
24
25 /*
26  * Resource codes -- they must be sequential for indexing
27  */
28 #define R_FIRST                       1001
29
30 #define R_CONSOLE                     1001
31 #define R_DIRECTOR                    1002
32
33 #define R_LAST                        R_DIRECTOR
34
35 /*
36  * Some resource attributes
37  */
38 #define R_NAME                        1020
39 #define R_ADDRESS                     1021
40 #define R_PASSWORD                    1022
41 #define R_TYPE                        1023
42 #define R_BACKUP                      1024
43
44
45 /* Definition of the contents of each Resource */
46
47 /* Console "globals" */
48 struct s_res_con {
49    RES   hdr;
50    char *rc_file;                     /* startup file */
51    char *hist_file;                   /* command history file */
52    int require_ssl;                   /* Require SSL on all connections */
53    char *password;                    /* UA server password */
54 };
55 typedef struct s_res_con CONRES;
56
57 /* Director */
58 struct s_res_dir {
59    RES   hdr;
60    int   DIRport;                     /* UA server port */
61    char *address;                     /* UA server address */
62    char *password;                    /* UA server password */
63    int  enable_ssl;                   /* Use SSL */
64 };
65 typedef struct s_res_dir DIRRES;
66
67
68 /* Define the Union of all the above
69  * resource structure definitions.
70  */
71 union u_res {
72    struct s_res_dir     res_dir;
73    struct s_res_con     res_cons;
74    RES hdr;
75 };
76
77 typedef union u_res URES;
78
79 #endif // CONSOLECONF_H