diff options
author | Felix Buehler <account@buehler.rocks> | 2018-03-20 15:35:28 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2018-04-11 22:36:41 +0200 |
commit | c55754542ec8f17246415fa19baf06ef7dc6ab87 (patch) | |
tree | fb734f43ae9c84e6a3697f9864be15753b65548c /include | |
parent | 2cb0ffa01aa684f8664ba38fa9ef0df90eed2385 (diff) |
Implement support for memory-usage on Linux
Diffstat (limited to 'include')
-rw-r--r-- | include/i3status.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/i3status.h b/include/i3status.h index 9ac471d..2aa4317 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -223,6 +223,7 @@ void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const void print_cpu_usage(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const char *format_above_degraded_threshold, const char *path, const float max_threshold, const float degraded_threshold); void print_eth_info(yajl_gen json_gen, char *buffer, const char *interface, const char *format_up, const char *format_down); void print_load(yajl_gen json_gen, char *buffer, const char *format, const char *format_above_threshold, const float max_threshold); +void print_memory(yajl_gen json_gen, char *buffer, const char *format, const char *degraded_format_below_threshold, const char *degraded_threshold_type, const float degraded_low_threshold, const char *critical_format_below_threshold, const char *critical_threshold_type, const float critical_low_threshold, const bool use_available_memory); void print_volume(yajl_gen json_gen, char *buffer, const char *fmt, const char *fmt_muted, const char *device, const char *mixer, int mixer_idx); bool process_runs(const char *path); int volume_pulseaudio(uint32_t sink_idx, const char *sink_name); |