From: Ralph Ronnquist Date: Wed, 10 Nov 2021 10:27:27 +0000 (+1100) Subject: use extern for struct data X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=0a61a9785bab6d5b362082649ca485407495188d;p=rrq%2Ffuse_xattrs.git use extern for struct data --- 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;