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, | ||||
10 | COLOR_OPERSTATE_DOWN | ||||
11 | }; | ||||
12 | |||||
13 | void enable_color(void); | ||||
14 | int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...); | ||||
15 | |||||
16 | #endif |