2 Copyright (C) 2000-2004 Kern Sibbald and John Walker
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 * Resource codes -- they must be sequential for indexing
33 #define R_CONSOLE 1001
34 #define R_DIRECTOR 1002
36 #define R_LAST R_DIRECTOR
39 * Some resource attributes
42 #define R_ADDRESS 1021
43 #define R_PASSWORD 1022
48 /* Definition of the contents of each Resource */
50 /* Console "globals" */
53 char *rc_file; /* startup file */
54 char *hist_file; /* command history file */
55 int require_ssl; /* Require SSL on all connections */
56 char *password; /* UA server password */
58 typedef struct s_res_con CONRES;
63 int DIRport; /* UA server port */
64 char *address; /* UA server address */
65 char *password; /* UA server password */
66 int enable_ssl; /* Use SSL */
68 typedef struct s_res_dir DIRRES;
71 /* Define the Union of all the above
72 * resource structure definitions.
75 struct s_res_dir res_dir;
76 struct s_res_con res_cons;
80 typedef union u_res URES;
82 #endif // CONSOLECONF_H