stat-util: Move inode_hash_ops to stat-util

TO make it usable in other code.
This commit is contained in:
Daan De Meyer
2022-11-10 15:59:18 +01:00
parent afd8e1d945
commit ddfdf86f81
3 changed files with 24 additions and 17 deletions
+5
View File
@@ -11,6 +11,7 @@
#include "macro.h"
#include "missing_stat.h"
#include "siphash24.h"
int is_symlink(const char *path);
int is_dir_full(int atfd, const char *fname, bool follow);
@@ -96,3 +97,7 @@ int statx_fallback(int dfd, const char *path, int flags, unsigned mask, struct s
struct new_statx nsx; \
} var
#endif
void inode_hash_func(const struct stat *q, struct siphash *state);
int inode_compare_func(const struct stat *a, const struct stat *b);
extern const struct hash_ops inode_hash_ops;