Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[deliverable/linux.git] / tools / perf / util / color.h
index 5abfd379582b40428f62807b5aefa81a239a49d2..58d597564b9960f7d43923248c27c7c450917816 100644 (file)
@@ -15,6 +15,9 @@
 #define PERF_COLOR_CYAN                "\033[36m"
 #define PERF_COLOR_BG_RED      "\033[41m"
 
+#define MIN_GREEN      0.5
+#define MIN_RED                5.0
+
 /*
  * This variable stores the value of color.ui
  */
@@ -29,8 +32,11 @@ int perf_color_default_config(const char *var, const char *value, void *cb);
 int perf_config_colorbool(const char *var, const char *value, int stdout_is_tty);
 void color_parse(const char *value, const char *var, char *dst);
 void color_parse_mem(const char *value, int len, const char *var, char *dst);
+int color_vfprintf(FILE *fp, const char *color, const char *fmt, va_list args);
 int color_fprintf(FILE *fp, const char *color, const char *fmt, ...);
 int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...);
 int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf);
+int percent_color_fprintf(FILE *fp, const char *fmt, double percent);
+const char *get_percent_color(double percent);
 
 #endif /* COLOR_H */
This page took 0.049165 seconds and 5 git commands to generate.