]> 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
16 enum {
17    R_DIRECTOR = 1001,
18    R_CONSOLE,
19    R_CONSOLE_FONT
20 };
21
22 #define R_FIRST     R_DIRECTOR
23 #define R_LAST      R_CONSOLE_FONT
24
25 /*
26  * Some resource attributes
27  */
28 #define R_NAME                        1020
29 #define R_ADDRESS                     1021
30 #define R_PASSWORD                    1022
31 #define R_TYPE                        1023
32 #define R_BACKUP                      1024
33
34
35 /* Definition of the contents of each Resource */
36 struct s_res_dir {
37    RES   hdr;
38    int   DIRport;                     /* UA server port */
39    char *address;                     /* UA server address */
40    char *password;                    /* UA server password */
41    int enable_ssl;                    /* Use SSL */
42 };
43 typedef struct s_res_dir DIRRES;
44
45 struct s_con_font {
46    RES   hdr;
47    char *fontface;                    /* Console Font specification */
48    int require_ssl;                   /* Require SSL on all connections */
49 };
50 typedef struct s_con_font CONFONTRES;
51
52 struct s_con_res {
53    RES   hdr;
54    char *password;                    /* UA server password */
55    int require_ssl;                   /* Require SSL on all connections */
56 };
57 typedef struct s_con_res CONRES;
58
59
60 /* Define the Union of all the above
61  * resource structure definitions.
62  */
63 union u_res {
64    struct s_res_dir     dir_res;
65    struct s_con_font    con_font;
66    struct s_con_res     con_res;
67    RES hdr;
68 };
69
70 typedef union u_res URES;
71
72 #endif