]> git.proxmox.com Git - mirror_iproute2.git/blob - include/color.h
Merge branch 'master' of git://git.kernel.org/pub/scm/network/iproute2/iproute2-next
[mirror_iproute2.git] / include / color.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __COLOR_H__
3 #define __COLOR_H__ 1
4
5 enum color_attr {
6 COLOR_IFNAME,
7 COLOR_MAC,
8 COLOR_INET,
9 COLOR_INET6,
10 COLOR_OPERSTATE_UP,
11 COLOR_OPERSTATE_DOWN,
12 COLOR_NONE
13 };
14
15 void enable_color(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