From 8e8c666b78731f7fcff89eae9dd6d63403e69bc9 Mon Sep 17 00:00:00 2001 From: _N0x Date: Sun, 24 Oct 2021 00:44:05 +0200 Subject: [PATCH] Added empty methods and declaration for all needed status bar function --- cstatbar.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/cstatbar.c b/cstatbar.c index ca2b07d..9bc2762 100644 --- a/cstatbar.c +++ b/cstatbar.c @@ -31,6 +31,11 @@ enum Icon { ICON_DATETIME, ICON_BATTERY, ICON_CPU, ICON_RAM, ICON_DISK, /* function declaration */ char *concat_string (int count, ...); +char *get_battery (); +char *get_cpu_utilization (); +char *get_datetime (); +char *get_disk_utilization (); +char *get_memory_utilization (); char *get_networkspeed (); char *get_networkinfo (); char *make_stat_item (enum Icon icon, char *val); @@ -69,6 +74,53 @@ char return result; } + +// @TODO +/* The current battery percentage */ +char +*get_battery () +{ + return NULL; +} + + +// @TODO +/* The current CPU utilization */ +char +*get_cpu_utilization () +{ + return NULL; +} + + +// @TODO +/* The Datetime */ +char +*get_datetime () +{ + return NULL; +} + + +// @TODO +/* The current Disk utilization + * return root ("/") and home ("/home") utilization */ +char +*get_disk_utilization () +{ + return NULL; +} + + +// @TODO +/* The current RAM utilization */ +char +*get_memory_utilization () +{ + return NULL; +} + + // @TODO /* Read in the IP and display it * maybe from /proc/net/fib_trie ?*/