summaryrefslogtreecommitdiffstats
path: root/fsade.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-08-13 10:02:29 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-08-13 10:14:29 -0400
commit564142a029fda86b2d87f8f39c12acea34241098 (patch)
tree802a8225cacfc1d9f8ba80c0959651353f728325 /fsade.h
parent6a4c2677075adca143fa8501096a2a59499503b5 (diff)
downloadbfs-564142a029fda86b2d87f8f39c12acea34241098.tar.xz
Implement -xattrname
From macOS find.
Diffstat (limited to 'fsade.h')
-rw-r--r--fsade.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/fsade.h b/fsade.h
index fedc8ed..3136608 100644
--- a/fsade.h
+++ b/fsade.h
@@ -67,4 +67,16 @@ int bfs_check_capabilities(const struct BFTW *ftwbuf);
*/
int bfs_check_xattrs(const struct BFTW *ftwbuf);
+/**
+ * Check if a file has an extended attribute with the given name.
+ *
+ * @param ftwbuf
+ * The file to check.
+ * @param name
+ * The name of the xattr to check.
+ * @return
+ * 1 if it does, 0 if it doesn't, or -1 if an error occurred.
+ */
+int bfs_check_xattr_named(const struct BFTW *ftwbuf, const char *name);
+
#endif // BFS_FSADE_H