]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/console_conf.h
This commit was manufactured by cvs2svn to create tag
[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 #define R_FIRST                       1001
16
17 #define R_DIRECTOR                    1001
18 #define R_CONSOLE                     1002
19
20 #define R_LAST                        R_CONSOLE
21
22 /*
23  * Some resource attributes
24  */
25 #define R_NAME                        1020
26 #define R_ADDRESS                     1021
27 #define R_PASSWORD                    1022
28 #define R_TYPE                        1023
29 #define R_BACKUP                      1024
30
31
32 /* Definition of the contents of each Resource */
33 struct s_res_dir {
34    RES   hdr;
35    int   DIRport;                     /* UA server port */
36    char *address;                     /* UA server address */
37    char *password;                    /* UA server password */
38    int enable_ssl;                    /* Use SSL */
39 };
40 typedef struct s_res_dir DIRRES;
41
42 struct s_con_dir {
43    RES   hdr;
44    char *fontface;                    /* Console Font specification */
45    int require_ssl;                   /* Require SSL on all connections */
46 };
47 typedef struct s_con_dir CONRES;
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_con_dir     con_dir;
55    RES hdr;
56 };
57
58 typedef union u_res URES;
59
60 #endif