]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/console_conf.h
Update Console conf code + update copyrights in dird
[bacula/bacula] / bacula / src / console / console_conf.h
1 /*
2  * Bacula User Agent specific configuration and defines
3  *
4  *     Kern Sibbald, Sep MM
5  *
6  *     Version $Id$
7  */
8
9 /*
10  * Resource codes -- they must be sequential for indexing   
11  */
12
13 enum {
14    R_CONSOLE   = 1001,
15    R_DIRECTOR,
16    R_FIRST     = R_CONSOLE,
17    R_LAST      = R_DIRECTOR           /* Keep this updated */
18 };
19
20 /*
21  * Some resource attributes
22  */
23 enum {
24    R_NAME     = 1020,
25    R_ADDRESS,
26    R_PASSWORD,
27    R_TYPE,
28    R_BACKUP,
29 };
30
31
32 /* Definition of the contents of each Resource */
33
34 /* Console "globals" */
35 struct CONRES {
36    RES   hdr;
37    char *rc_file;                     /* startup file */
38    char *hist_file;                   /* command history file */
39    int require_ssl;                   /* Require SSL on all connections */
40    char *password;                    /* UA server password */
41 };
42
43 /* Director */
44 struct DIRRES {
45    RES   hdr;
46    int   DIRport;                     /* UA server port */
47    char *address;                     /* UA server address */
48    char *password;                    /* UA server password */
49    int  enable_ssl;                   /* Use SSL */
50 };
51
52
53 /* Define the Union of all the above
54  * resource structure definitions.
55  */
56 union URES {
57    DIRRES res_dir;
58    CONRES res_cons;
59    RES hdr;
60 };