]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/dird.h
ebl add debug dump for plugins in director
[bacula/bacula] / bacula / src / dird / dird.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from
7    many others, a complete list can be found in the file AUTHORS.
8    This program is Free Software; you can redistribute it and/or
9    modify it under the terms of version two of the GNU General Public
10    License as published by the Free Software Foundation and included
11    in the file LICENSE.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22
23    Bacula® is a registered trademark of Kern Sibbald.
24    The licensor of Bacula is the Free Software Foundation Europe
25    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
26    Switzerland, email:ftf@fsfeurope.org.
27 */
28 /*
29  * Includes specific to the Director
30  *
31  *     Kern Sibbald, December MM
32  *
33  *    Version $Id$
34  */
35
36 #include "lib/runscript.h"
37 #include "lib/breg.h"
38 #include "dird_conf.h"
39
40 #define DIRECTOR_DAEMON 1
41
42 #include "dir_plugins.h"
43 #include "cats/cats.h"
44
45 #include "jcr.h"
46 #include "bsr.h"
47 #include "ua.h"
48 #include "jobq.h"
49
50 /* Globals that dird.c exports */
51 extern DIRRES *director;                     /* Director resource */
52 extern int FDConnectTimeout;
53 extern int SDConnectTimeout;
54
55 /* Used in ua_prune.c and ua_purge.c */
56
57 struct s_count_ctx {
58    int count;
59 };
60
61 #define MAX_DEL_LIST_LEN 2000000
62
63 struct del_ctx {
64    JobId_t *JobId;                    /* array of JobIds */
65    char *PurgedFiles;                 /* Array of PurgedFile flags */
66    int num_ids;                       /* ids stored */
67    int max_ids;                       /* size of array */
68    int num_del;                       /* number deleted */
69    int tot_ids;                       /* total to process */
70 };
71
72 /* Flags for find_next_volume_for_append() */
73 enum {
74   fnv_create_vol    = true,
75   fnv_no_create_vol = false,
76   fnv_prune         = true,
77   fnv_no_prune      = false
78 };
79
80      
81
82 #include "protos.h"