]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/filed_conf.h
f1d9fa5210e30b50b7fad5742d05f7d3b5982c5a
[bacula/bacula] / bacula / src / filed / filed_conf.h
1 /*
2  * Bacula File Daemon specific configuration
3  *
4  *     Kern Sibbald, Sep MM
5  *
6  *   Version $Id$
7  */
8 /*
9    Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
10
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License as
13    published by the Free Software Foundation; either version 2 of
14    the License, or (at your option) any later version.
15
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19    General Public License for more details.
20
21    You should have received a copy of the GNU General Public
22    License along with this program; if not, write to the Free
23    Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
24    MA 02111-1307, USA.
25
26  */
27
28 /*
29  * Resource codes -- they must be sequential for indexing   
30  */
31 #define R_FIRST                       1001
32
33 #define R_DIRECTOR                    1001
34 #define R_CLIENT                      1002
35 #define R_MSGS                        1003
36
37 #define R_LAST                        R_MSGS
38
39 /*
40  * Some resource attributes
41  */
42 #define R_NAME                        1020
43 #define R_ADDRESS                     1021
44 #define R_PASSWORD                    1022
45 #define R_TYPE                        1023
46
47
48 /* Definition of the contents of each Resource */
49 struct DIRRES {
50    RES   hdr;
51    char *password;                    /* Director password */
52    char *address;                     /* Director address or zero */
53    int enable_ssl;                    /* Use SSL for this Director */
54    int monitor;                       /* Have only access to status and .status functions */
55 };
56
57 struct CLIENT {
58    RES   hdr;
59    dlist *FDaddrs;
60    char *working_directory;
61    char *pid_directory;
62    char *subsys_directory;
63    int require_ssl;                   /* Require SSL on all connections */
64    MSGS *messages;                    /* daemon message handler */
65    int MaxConcurrentJobs;
66    utime_t heartbeat_interval;        /* Interval to send heartbeats to Dir */
67    utime_t SDConnectTimeout;          /* timeout in seconds */
68    uint32_t max_network_buffer_size;  /* max network buf size */
69 };
70
71
72
73 /* Define the Union of all the above
74  * resource structure definitions.
75  */
76 union URES {
77    DIRRES res_dir;
78    CLIENT res_client;
79    MSGS   res_msgs;
80    RES    hdr;
81 };