Add support for deleting directories with -a -E.
[metastore.git] / settings.h
blob7d64a0912bf31bafc177f76fbd8f50287d47bf7e
1 /*
2 * Copyright (C) 2013 Przemyslaw Pawelczyk <przemoc@gmail.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 #ifndef SETTINGS_H
19 #define SETTINGS_H
21 #include <stdbool.h>
23 /* Data structure to hold metastore settings */
24 struct metasettings {
25 char *metafile; /* path to the file containing the metadata */
26 bool do_mtime; /* should mtimes be corrected? */
27 bool do_emptydirs; /* should empty dirs be recreated? */
28 bool do_removeemptydirs; /* should new empty dirs be removed? */
29 bool do_git; /* should .git dirs be processed? */
32 /* Convenient typedef for immutable settings */
33 typedef const struct metasettings msettings;
35 #endif /* SETTINGS_H */