diff options
author | David Sterba <dsterba@suse.com> | 2016-11-21 13:52:01 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-03-08 13:00:45 +0100 |
commit | 95f515f2d12fb1c1b5a01e03d9f709570b762eeb (patch) | |
tree | c442297297c911d51982e9e868bde5b50e1db198 /utils.h | |
parent | 96485c34ac0329fb0073476f16d2083c64701f29 (diff) |
btrfs-progs: introduce global config
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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, ...) { |