X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=utils.h;h=e18e460d51274aab862927273a22d2d5d4b68775;hb=9d14bf7e1b9e691428703acdbcebedb6ed2880e4;hp=b3b899bd992f26c24664e20f1d38c1743cf8630e;hpb=c2151710dfb6f6ebe0134477198265e67142101b;p=rrq%2Ffuse_xattrs.git diff --git a/utils.h b/utils.h index b3b899b..e18e460 100644 --- a/utils.h +++ b/utils.h @@ -35,12 +35,15 @@ enum namespace { ERROR }; -enum namespace get_namespace(const char *name); -char *get_sidecar_path(const char *path); -char *sanitize_value(const char *value, size_t value_size); -char *prepend_source_directory(const char *a, const char *b); +extern enum namespace get_namespace(const char *name); +extern char *get_sidecar_path(const char *path); +extern char *sanitize_value(const char *value, size_t value_size); +extern char *prepend_source_directory(const char *b); -const size_t BINARY_SIDECAR_EXT_SIZE; -const int filename_is_sidecar(const char *string); +extern const size_t BINARY_SIDECAR_EXT_SIZE; +extern const int filename_is_sidecar(const char *string); + +extern int is_directory(const char *path); +extern int is_regular_file(const char *path); #endif //FUSE_XATTRS_UTILS_H