]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/console_conf.h
b12153138c2f478e5f3d0a1ca11746501fe985b3
[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 #define R_FIRST                       1001
13
14 #define R_CONSOLE                     1001
15 #define R_DIRECTOR                    1002
16
17 #define R_LAST                        R_DIRECTOR
18
19 /*
20  * Some resource attributes
21  */
22 #define R_NAME                        1020
23 #define R_ADDRESS                     1021
24 #define R_PASSWORD                    1022
25 #define R_TYPE                        1023
26 #define R_BACKUP                      1024
27
28
29 /* Definition of the contents of each Resource */
30
31 /* Console "globals" */
32 struct s_res_cons {
33    RES   hdr;
34    char *rc_file;                     /* startup file */
35    char *hist_file;                   /* command history file */
36 };
37 typedef struct s_res_cons CONSRES;
38
39 /* Director */
40 struct s_res_dir {
41    RES   hdr;
42    int   DIRport;                     /* UA server port */
43    char *address;                     /* UA server address */
44    char *password;                    /* UA server password */
45 };
46 typedef struct s_res_dir DIRRES;
47
48
49 /* Define the Union of all the above
50  * resource structure definitions.
51  */
52 union u_res {
53    struct s_res_dir     res_dir;
54    struct s_res_cons    res_cons;
55    RES hdr;
56 };
57
58 typedef union u_res URES;