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