Home | History | Annotate | Download | only in include
      1 #ifndef __COLOR_H__
      2 #define __COLOR_H__ 1
      3 
      4 enum color_attr {
      5 	COLOR_IFNAME,
      6 	COLOR_MAC,
      7 	COLOR_INET,
      8 	COLOR_INET6,
      9 	COLOR_OPERSTATE_UP,
     10 	COLOR_OPERSTATE_DOWN,
     11 	COLOR_NONE
     12 };
     13 
     14 void enable_color(void);
     15 void check_if_color_enabled(void);
     16 void set_color_palette(void);
     17 int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...);
     18 enum color_attr ifa_family_color(__u8 ifa_family);
     19 enum color_attr oper_state_color(__u8 state);
     20 
     21 #endif
     22