xref: /netbsd-src/external/bsd/ipf/dist/lib/facpri.h (revision 13885a665959c62f13a82b3caedf986eaa17aa31)
1*13885a66Sdarrenr /*	$NetBSD: facpri.h,v 1.2 2012/07/22 14:27:36 darrenr Exp $	*/
2bc4097aaSchristos 
3bc4097aaSchristos /*
4c9d5dc6cSdarrenr  * Copyright (C) 2012 by Darren Reed.
5bc4097aaSchristos  *
6bc4097aaSchristos  * See the IPFILTER.LICENCE file for details on licencing.
7bc4097aaSchristos  *
8*13885a66Sdarrenr  * Id: facpri.h,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $
9bc4097aaSchristos  */
10bc4097aaSchristos 
11bc4097aaSchristos #ifndef	__FACPRI_H__
12bc4097aaSchristos #define	__FACPRI_H__
13bc4097aaSchristos 
14bc4097aaSchristos #ifndef	__P
15bc4097aaSchristos # define P_DEF
16bc4097aaSchristos # ifdef	__STDC__
17bc4097aaSchristos #  define	__P(x) x
18bc4097aaSchristos # else
19bc4097aaSchristos #  define	__P(x) ()
20bc4097aaSchristos # endif
21bc4097aaSchristos #endif
22bc4097aaSchristos 
23bc4097aaSchristos extern	char	*fac_toname __P((int));
24bc4097aaSchristos extern	int	fac_findname __P((char *));
25bc4097aaSchristos 
26bc4097aaSchristos extern	char	*pri_toname __P((int));
27bc4097aaSchristos extern	int	pri_findname __P((char *));
28bc4097aaSchristos 
29bc4097aaSchristos #ifdef P_DEF
30bc4097aaSchristos # undef	__P
31bc4097aaSchristos # undef	P_DEF
32bc4097aaSchristos #endif
33bc4097aaSchristos 
34bc4097aaSchristos #if LOG_CRON == (9<<3)
35bc4097aaSchristos # define	LOG_CRON1	LOG_CRON
36bc4097aaSchristos # define	LOG_CRON2	(15<<3)
37bc4097aaSchristos #endif
38bc4097aaSchristos #if LOG_CRON == (15<<3)
39bc4097aaSchristos # define	LOG_CRON1	(9<<3)
40bc4097aaSchristos # define	LOG_CRON2	LOG_CRON
41bc4097aaSchristos #endif
42bc4097aaSchristos 
43bc4097aaSchristos #endif /* __FACPRI_H__ */
44