]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/dird/protos.h
Mostly documentation of pruning
[bacula/bacula] / bacula / src / dird / protos.h
1 /*
2  * Director external function prototypes
3  *
4  *   $Id:
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 /* authenticate.c */
27 extern int authenticate_storage_daemon(JCR *jcr);
28 extern int authenticate_file_daemon(JCR *jcr);
29 extern int authenticate_user_agent(BSOCK *ua);
30
31 /* catreq.c */
32 extern void catalog_request(JCR *jcr, BSOCK *bs, char *buf);
33 extern void catalog_update(JCR *jcr, BSOCK *bs, char *buf);
34
35 /* dird_conf.c */
36 extern char *level_to_str(int level);
37
38 /* fd_cmds.c */
39 extern int connect_to_file_daemon(JCR *jcr, int retry_interval,
40                                   int max_retry_time, int verbose);
41 extern int send_include_list(JCR *jcr);
42 extern int send_exclude_list(JCR *jcr);
43 extern int get_attributes_and_put_in_catalog(JCR *jcr);
44 extern int get_attributes_and_compare_to_catalog(JCR *jcr, int last_full_id);
45 extern int put_file_into_catalog(JCR *jcr, long file_index, char *fname, 
46                           char *link, char *attr, int stream);
47
48 /* job.c */
49 extern void free_jcr(JCR *jcr);
50 extern void set_jcr_defaults(JCR *jcr, JOB *job);
51 extern void create_unique_job_name(JCR *jcr, char *base_name);
52
53 /* mountreq.c */
54 extern void mount_request(JCR *jcr, BSOCK *bs, char *buf);
55
56 /* msgchan.c */
57 extern int connect_to_storage_daemon(JCR *jcr, int retry_interval,    
58                               int max_retry_time, int verbose);
59 extern int start_storage_daemon_job(JCR *jcr);
60 extern int start_storage_daemon_message_thread(JCR *jcr);
61 extern int32_t bget_msg(BSOCK *bs, int type);
62 extern int response(BSOCK *fd, char *resp, char *cmd);
63
64 /* newvol.c */
65 extern int newVolume(JCR *jcr);
66
67 /* ua_cmd.c */
68 extern int create_pool(B_DB *db, POOL *pool);