]> git.proxmox.com Git - mirror_iproute2.git/blob - include/color.h
color: introduce color helpers and COLOR_CLEAR
[mirror_iproute2.git] / include / color.h
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_CLEAR
12 };
13
14 void enable_color(void);
15 int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...);
16 enum color_attr ifa_family_color(__u8 ifa_family);
17 enum color_attr oper_state_color(__u8 state);
18
19 #endif