]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/findlib/protos.h
kes Suppress chown and chmod error messages if the FD is not running
[bacula/bacula] / bacula / src / findlib / protos.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2000-2007 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 John Walker.
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  * Prototypes for finlib directory of Bacula
30  *
31  *   Version $Id$
32  */
33
34 /* from attribs.c */
35 void    encode_stat       (char *buf, FF_PKT *ff_pkt, int data_stream);
36 int     decode_stat       (char *buf, struct stat *statp, int32_t *LinkFI);
37 int32_t decode_LinkFI     (char *buf, struct stat *statp);
38 int     encode_attribsEx  (JCR *jcr, char *attribsEx, FF_PKT *ff_pkt);
39 bool    set_attributes    (JCR *jcr, ATTR *attr, BFILE *ofd);
40 int     select_data_stream(FF_PKT *ff_pkt);
41
42 /* from create_file.c */
43 int    create_file       (JCR *jcr, ATTR *attr, BFILE *ofd, int replace);
44
45 /* From find.c */
46 FF_PKT *init_find_files();
47 void  set_find_options(FF_PKT *ff, int incremental, time_t mtime);
48 int   find_files(JCR *jcr, FF_PKT *ff, int sub(FF_PKT *ff_pkt, void *hpkt, bool), void *pkt);
49 int   match_files(JCR *jcr, FF_PKT *ff, int sub(FF_PKT *ff_pkt, void *hpkt, bool), void *pkt);
50 int   term_find_files(FF_PKT *ff);
51 int   get_win32_driveletters(FF_PKT *ff, char* szDrives);
52
53 /* From match.c */
54 void  init_include_exclude_files(FF_PKT *ff);
55 void  term_include_exclude_files(FF_PKT *ff);
56 void  add_fname_to_include_list(FF_PKT *ff, int prefixed, const char *fname);
57 void  add_fname_to_exclude_list(FF_PKT *ff, const char *fname);
58 int   file_is_excluded(FF_PKT *ff, const char *file);
59 int   file_is_included(FF_PKT *ff, const char *file);
60 struct s_included_file *get_next_included_file(FF_PKT *ff,
61                            struct s_included_file *inc);
62
63 /* From find_one.c */
64 int   find_one_file(JCR *jcr, FF_PKT *ff, 
65                int handle_file(FF_PKT *ff_pkt, void *hpkt, bool top_level),
66                void *pkt, char *p, dev_t parent_device, bool top_level);
67 int   term_find_one(FF_PKT *ff);
68 bool  has_file_changed(JCR *jcr, FF_PKT *ff_pkt);
69
70 /* From get_priv.c */
71 int enable_backup_privileges(JCR *jcr, int ignore_errors);
72
73
74 /* from makepath.c */
75 int makepath(ATTR *attr, const char *path, mode_t mode,
76            mode_t parent_mode, uid_t owner, gid_t group,
77            int keep_dir_modes);
78
79 /* from fstype.c */
80 bool fstype(const char *fname, char *fs, int fslen);
81
82 /* from drivetype.c */
83 bool drivetype(const char *fname, char *fs, int fslen);
84
85 /* from bfile.c -- see bfile.h */