summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:31:17 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:31:17 +0200
commiteb01ccca21a9a2e1693b28871f65934e8931e3bf (patch)
tree2a2c76e4bbb3668fdf4e0aa667c80519c76b01f4 /include
parentb3c3401aee91bc2ff46ba0eab0ceb88c78cb5bbb (diff)
Replace fstree_from_dir boolean with flag field
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/fstree.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fstree.h b/include/fstree.h
index dbc76db..a6fbd3e 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -35,6 +35,10 @@ enum {
FILE_FLAG_BLOCKS_ARE_DUPLICATE = 0x04,
};
+enum {
+ DIR_SCAN_KEEP_TIME = 0x01,
+};
+
/* Encapsulates a set of key-value pairs attached to a tree_node_t */
struct tree_xattr_t {
/* Number of key-value pairs */
@@ -271,7 +275,7 @@ int fstree_from_file(fstree_t *fs, const char *filename, FILE *fp);
Returns 0 on success, prints errors to stderr.
*/
-int fstree_from_dir(fstree_t *fs, const char *path, bool keep_time_stamps);
+int fstree_from_dir(fstree_t *fs, const char *path, unsigned int flags);
/* Add labels from an SELinux labeling file to all tree nodes.
Returns 0 on success. Internally prints errors to stderr. */