]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/console/console_conf.h
This commit was manufactured by cvs2svn to create tag
[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    int require_ssl;                   /* Require SSL on all connections */
37 };
38 typedef struct s_res_cons CONSRES;
39
40 /* Director */
41 struct s_res_dir {
42    RES   hdr;
43    int   DIRport;                     /* UA server port */
44    char *address;                     /* UA server address */
45    char *password;                    /* UA server password */
46    int  enable_ssl;                   /* Use SSL */
47 };
48 typedef struct s_res_dir DIRRES;
49
50
51 /* Define the Union of all the above
52  * resource structure definitions.
53  */
54 union u_res {
55    struct s_res_dir     res_dir;
56    struct s_res_cons    res_cons;
57    RES hdr;
58 };
59
60 typedef union u_res URES;