Mathias Nyman | d7bd2db | 2015-04-28 13:18:21 +0300 | [diff] [blame] | 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, |
Phil Sutter | a1121aa | 2016-03-22 19:35:13 +0100 | [diff] [blame] | 10 | COLOR_OPERSTATE_DOWN, |
| 11 | COLOR_CLEAR |
Mathias Nyman | d7bd2db | 2015-04-28 13:18:21 +0300 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | void enable_color(void); |
| 15 | int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...); |
Phil Sutter | a1121aa | 2016-03-22 19:35:13 +0100 | [diff] [blame] | 16 | enum color_attr ifa_family_color(__u8 ifa_family); |
| 17 | enum color_attr oper_state_color(__u8 state); |
Mathias Nyman | d7bd2db | 2015-04-28 13:18:21 +0300 | [diff] [blame] | 18 | |
| 19 | #endif |