From 0a61a9785bab6d5b362082649ca485407495188d Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Wed, 10 Nov 2021 21:27:27 +1100 Subject: [PATCH] use extern for struct data --- fuse_xattrs.c | 2 ++ xattrs_config.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/fuse_xattrs.c b/fuse_xattrs.c index 3d3a5a4..fe56370 100644 --- a/fuse_xattrs.c +++ b/fuse_xattrs.c @@ -38,6 +38,8 @@ #include "binary_storage.h" +struct xattrs_config xattrs_config; + static int xmp_setxattr(const char *path, const char *name, const char *value, size_t size, int flags) { if (xattrs_config.show_sidecar == 0 && filename_is_sidecar(path) == 1) { diff --git a/xattrs_config.h b/xattrs_config.h index 87e133b..347a61c 100644 --- a/xattrs_config.h +++ b/xattrs_config.h @@ -10,7 +10,7 @@ #ifndef FUSE_XATTRS_CONFIG_H #define FUSE_XATTRS_CONFIG_H -struct xattrs_config { +extern struct xattrs_config { const int show_sidecar; const int enable_namespaces; const char *source_dir; -- 2.39.2