summaryrefslogtreecommitdiffstats
path: root/bftw.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-12-17 17:10:18 -0500
committerTavian Barnes <tavianator@tavianator.com>2018-12-17 17:10:18 -0500
commite95ec269efdfbd97b5d0ee85dda38e7bae498181 (patch)
tree0dda13650a3438feece9bfde6e9e75ed2c2fb269 /bftw.h
parentf5ba88ebfed936cfdee3a2ab3d6f690d291e9627 (diff)
downloadbfs-e95ec269efdfbd97b5d0ee85dda38e7bae498181.tar.xz
bftw: Move bftw_typeflag conversion out of util
Turns out incomplete enum types are a GNU C extension.
Diffstat (limited to 'bftw.h')
-rw-r--r--bftw.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bftw.h b/bftw.h
index c874188..eff24bc 100644
--- a/bftw.h
+++ b/bftw.h
@@ -51,6 +51,11 @@ enum bftw_typeflag {
};
/**
+ * Convert a bfs_stat() mode to a bftw() typeflag.
+ */
+enum bftw_typeflag bftw_mode_typeflag(mode_t mode);
+
+/**
* Possible visit occurrences.
*/
enum bftw_visit {