]> git.proxmox.com Git - mirror_iproute2.git/blame - include/color.h
Merge branch 'iproute2-master' into iproute2-next
[mirror_iproute2.git] / include / color.h
CommitLineData
6054c1eb 1/* SPDX-License-Identifier: GPL-2.0 */
d7bd2db5
MN
2#ifndef __COLOR_H__
3#define __COLOR_H__ 1
4
5enum color_attr {
6 COLOR_IFNAME,
7 COLOR_MAC,
8 COLOR_INET,
9 COLOR_INET6,
10 COLOR_OPERSTATE_UP,
a1121aa1 11 COLOR_OPERSTATE_DOWN,
4b73d52f 12 COLOR_NONE
d7bd2db5
MN
13};
14
15void enable_color(void);
54eab4c7 16void set_color_palette(void);
d7bd2db5 17int color_fprintf(FILE *fp, enum color_attr attr, const char *fmt, ...);
a1121aa1
PS
18enum color_attr ifa_family_color(__u8 ifa_family);
19enum color_attr oper_state_color(__u8 state);
d7bd2db5
MN
20
21#endif