]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/console_conf.h
First cut Console ACLs
[bacula/bacula] / bacula / src / gnome2-console / console_conf.h
1 /*
2  * Bacula GNOME User Agent specific configuration and defines
3  *
4  *     Kern Sibbald, March 2002
5  *
6  *     Version $Id$
7  */
8
9 #ifndef __CONSOLE_CONF_H_
10 #define __CONSOLE_CONF_H_
11
12 /*
13  * Resource codes -- they must be sequential for indexing   
14  */
15
16 enum {
17    R_DIRECTOR = 1001,
18    R_CONSOLE,
19 };
20
21 #define R_FIRST     R_DIRECTOR
22 #define R_LAST      R_CONSOLE
23
24 /*
25  * Some resource attributes
26  */
27 #define R_NAME                        1020
28 #define R_ADDRESS                     1021
29 #define R_PASSWORD                    1022
30 #define R_TYPE                        1023
31 #define R_BACKUP                      1024
32
33
34 /* Definition of the contents of each Resource */
35 struct s_res_dir {
36    RES   hdr;
37    int   DIRport;                     /* UA server port */
38    char *address;                     /* UA server address */
39    char *password;                    /* UA server password */
40    int enable_ssl;                    /* Use SSL */
41 };
42 typedef struct s_res_dir DIRRES;
43
44 struct s_con_dir {
45    RES   hdr;
46    char *fontface;                    /* Console Font specification */
47    char *password;                    /* UA server password */
48    int require_ssl;                   /* Require SSL on all connections */
49 };
50 typedef struct s_con_dir CONRES;
51
52 /* Define the Union of all the above
53  * resource structure definitions.
54  */
55 union u_res {
56    struct s_res_dir     res_dir;
57    struct s_con_dir     con_dir;
58    RES hdr;
59 };
60
61 typedef union u_res URES;
62
63 #endif