]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/gnome2-console/console_conf.h
Mark translatable strings in all source files.
[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    R_FIRST = R_DIRECTOR,
21    R_LAST = R_CONSOLE_FONT            /* Keep this updated */
22 };
23
24 /*
25  * Some resource attributes
26  */
27 enum {
28    R_NAME = 1020,
29    R_ADDRESS,
30    R_PASSWORD,
31    R_TYPE,
32    R_BACKUP
33 };
34
35
36 /* Definition of the contents of each Resource */
37 struct DIRRES {
38    RES   hdr;
39    int   DIRport;                     /* UA server port */
40    char *address;                     /* UA server address */
41    char *password;                    /* UA server password */
42    int tls_enable;                    /* Enable TLS */
43    int tls_require;                   /* Require TLS */
44    char *tls_ca_certfile;             /* TLS CA Certificate File */
45    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
46    char *tls_certfile;                /* TLS Client Certificate File */
47    char *tls_keyfile;                 /* TLS Client Key File */
48
49    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
50 };
51
52 struct CONFONTRES {
53    RES   hdr;
54    char *fontface;                    /* Console Font specification */
55    int require_ssl;                   /* Require SSL on all connections */
56 };
57
58 struct CONRES {
59    RES   hdr;
60    char *password;                    /* UA server password */
61    int tls_enable;                    /* Enable TLS on all connections */
62    int tls_require;                   /* Require TLS on all connections */
63    char *tls_ca_certfile;             /* TLS CA Certificate File */
64    char *tls_ca_certdir;              /* TLS CA Certificate Directory */
65    char *tls_certfile;                /* TLS Client Certificate File */
66    char *tls_keyfile;                 /* TLS Client Key File */
67
68    TLS_CONTEXT *tls_ctx;              /* Shared TLS Context */
69 };
70
71
72 /* Define the Union of all the above
73  * resource structure definitions.
74  */
75 union u_res {
76    DIRRES dir_res;
77    CONRES con_res;
78    CONFONTRES con_font;
79    RES hdr;
80 };
81
82 typedef union u_res URES;
83
84 #endif