summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 3d30bd12..3dec4953 100644
--- a/utils.h
+++ b/utils.h
@@ -368,6 +368,16 @@ int string_is_numerical(const char *str);
__warning_on((cond), (fmt), ##__VA_ARGS__); \
} while (0)
+/*
+ * Global program state, configurable by command line and available to
+ * functions without extra context passing.
+ */
+struct btrfs_config {
+};
+extern struct btrfs_config bconf;
+
+void btrfs_config_init(void);
+
__attribute__ ((format (printf, 1, 2)))
static inline void __warning(const char *fmt, ...)
{