File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / trafshow / colormask.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 16:55:18 2012 UTC (12 years, 2 months ago) by misho
Branches: trafshow, MAIN
CVS tags: v5_2_3p0, v5_2_3, HEAD
trafshow

/*
 *	Copyright (c) 2004 Rinet Corp., Novosibirsk, Russia
 *
 * Redistribution and use in source forms, with and without modification,
 * are permitted provided that this entire comment appears intact.
 *
 * THIS SOURCE CODE IS PROVIDED ``AS IS'' WITHOUT ANY WARRANTIES OF ANY KIND.
 */

#ifndef	_COLORMASK_H_
#define	_COLORMASK_H_

/* SLcurses can't handle attributes as well; so hack it */
#ifdef	HAVE_SLCURSES
#ifdef	SLTT_BOLD_MASK
#undef	A_BOLD
#define	A_BOLD		SLTT_BOLD_MASK
#endif
#ifdef	SLTT_BLINK_MASK
#undef	A_BLINK
#define	A_BLINK		SLTT_BLINK_MASK
#endif
#endif

struct netstat_header;
int init_colormask(void);
int colormask(const struct netstat_header *nh);

#endif	/* !_COLORMASK_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>