Signed-off-by: David Sterba <dsterba@suse.com>
const char *bname;
int ret;
+ btrfs_config_init();
+
if ((bname = strrchr(argv[0], '/')) != NULL)
bname++;
else
static int rand_seed_initlized = 0;
static unsigned short rand_seed[3];
+struct btrfs_config bconf;
+
const char *get_argv0_buf(void)
{
return argv0_buf;
*/
return (unsigned int)(jrand48(rand_seed) % upper);
}
+
+void btrfs_config_init(void)
+{
+}
__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, ...)
{