Fix removing the config and sending a SIGUSR1 results in segfault
[monky] / src / fs.h
index 26bf38b..0c93c8e 100644 (file)
--- a/src/fs.h
+++ b/src/fs.h
@@ -15,6 +15,19 @@ struct fs_stat {
        char set;
 };
 
+/* forward declare to make gcc happy (fs.h <-> text_object.h include) */
+struct text_object;
+
+void init_fs_bar(struct text_object *, const char *);
+void print_fs_bar(struct text_object *, int, char *, int);
+
+void init_fs(struct text_object *, const char *);
+void print_fs_perc(struct text_object *, int, char *, int);
+void print_fs_free(struct text_object *, char *, int);
+void print_fs_size(struct text_object *, char *, int);
+void print_fs_used(struct text_object *, char *, int);
+void print_fs_type(struct text_object *, char *, int);
+
 void update_fs_stats(void);
 struct fs_stat *prepare_fs_stat(const char *path);
 void clear_fs_stats(void);