aboutsummaryrefslogtreecommitdiff
path: root/include/cfetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cfetch.h')
-rw-r--r--include/cfetch.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/include/cfetch.h b/include/cfetch.h
index 104ced4..b08c471 100644
--- a/include/cfetch.h
+++ b/include/cfetch.h
@@ -11,30 +11,32 @@
/* System information structure */
-typedef struct system_info_t{
- char user[64];
- char kernel[128];
- char memory[64];
- char cpu[64];
-} system_info_t;
-
-typedef struct {
- char lines[MAX_ASCII_LINES][MAX_ASCII_WIDTH];
-} ascii_art_t;
-
-typedef struct distro_mapping_t
-{
- const char *distro_pattern;
- const char *ascii_file;
-} distro_mapping_t;
+struct system_info_t {
+ char user[64];
+ char kernel[128];
+ char memory[64];
+ char cpu[64];
+ char debug;
+ short ascii_art;
+};
+
+struct ascii_art_t {
+ char lines[MAX_ASCII_LINES][MAX_ASCII_WIDTH];
+};
+
+struct ascii_mapping_t {
+ const char *ascii_pattern;
+ const char *ascii_file;
+};
/* System info functions */
-void print_ascii_art(system_info_t *info, int art);
-void get_cpu(system_info_t *info);
-void get_memory(system_info_t *info);
-void get_kernel(system_info_t *info);
-void get_line_length(ascii_art_t *ascii, const char **line);
+void print_ascii_art(struct system_info_t *info);
+void get_cpu(struct system_info_t *info);
+void get_memory(struct system_info_t *info);
+void get_kernel(struct system_info_t *info);
+void get_line_length(struct ascii_art_t *ascii, const char **line);
+void print_system_info(struct system_info_t *info);
/* Util functions */