]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/filed/protos.h
ed2e5fe431f4dac8e6bdcf15e1bfb0a9dbf5e764
[bacula/bacula] / bacula / src / filed / protos.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2017 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 /*
20  * Written by Kern Sibbald, MM
21  */
22
23 extern bool blast_data_to_storage_daemon(JCR *jcr, char *addr);
24 extern void do_verify_volume(JCR *jcr);
25 extern void do_restore(JCR *jcr);
26 extern int make_estimate(JCR *jcr);
27
28 /* From restore.c */
29 bool decompress_data(JCR *jcr, int32_t stream, char **data, uint32_t *length);
30
31 /* From authenticate.c */
32 bool authenticate_director(JCR *jcr);
33 bool authenticate_storagedaemon(JCR *jcr);
34
35 /* From hello.c */
36 bool validate_dir_hello(JCR *jcr);
37 bool send_hello_ok(BSOCK *bs);
38 bool send_sorry(BSOCK *bs);
39 bool send_hello_sd(JCR *jcr, char *Job);
40 void *handle_storage_connection(BSOCK *sd);
41 BSOCK *connect_director(JCR *jcr, CONSRES *dir);
42
43 /* From verify.c */
44 int digest_file(JCR *jcr, FF_PKT *ff_pkt, DIGEST *digest);
45 void do_verify(JCR *jcr);
46
47 /* From heartbeat.c */
48 void start_heartbeat_monitor(JCR *jcr);
49 void stop_heartbeat_monitor(JCR *jcr);
50 void start_dir_heartbeat(JCR *jcr);
51 void stop_dir_heartbeat(JCR *jcr);
52
53 /* from accurate.c */
54 bool accurate_finish(JCR *jcr);
55 bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt);
56 bool accurate_mark_file_as_seen(JCR *jcr, char *fname);
57 void accurate_free(JCR *jcr);
58 bool accurate_check_file(JCR *jcr, ATTR *attr, char *digest);
59
60 /* from backup.c */
61 void strip_path(FF_PKT *ff_pkt);
62 void unstrip_path(FF_PKT *ff_pkt);
63
64 /* from job.c */
65 findINCEXE *new_exclude(JCR *jcr);
66 findINCEXE *new_preinclude(JCR *jcr);
67 findINCEXE *get_incexe(JCR *jcr);
68 void set_incexe(JCR *jcr, findINCEXE *incexe);
69 void new_options(JCR *jcr, findINCEXE *incexe);
70 void add_file_to_fileset(JCR *jcr, const char *fname, bool is_file);
71 int add_options_to_fileset(JCR *jcr, const char *item);
72 int add_wild_to_fileset(JCR *jcr, const char *item, int type);
73 int add_regex_to_fileset(JCR *jcr, const char *item, int type);
74 findINCEXE *new_include(JCR *jcr);
75
76 /* from snapshot.c */
77 int snapshot_cmd(JCR *jcr);