do bools until loadable modules support tunables

This commit is contained in:
Chris PeBenito 2005-08-24 18:30:47 +00:00
parent d83fdad248
commit 82024f9942
1 changed files with 21 additions and 17 deletions

View File

@ -106,35 +106,39 @@ define(`dflt_or_overr',`ifdef(`$1',$1,$2)')
#
# Tunable declaration
#
# cjp: modular policy commented out
# until loadable modules support tunables.
define(`gen_tunable',`
ifdef(`monolithic_policy',`
# ifdef(`monolithic_policy',`
bool $1 dflt_or_overr(`$1'_conf,$2);
',`
# loadable module tunable
# declaration will go here
# for $1 $2
')
# ',`
# # loadable module tunable
# # declaration will go here
# # for $1 $2
# ')
')
##############################
#
# Tunable policy handling
#
# cjp: modular policy commented out
# until loadable modules support tunables.
define(`tunable_policy',`
ifdef(`monolithic_policy',`
# ifdef(`monolithic_policy',`
if (`$1') {
$2
} else {
$3
}
',`
optional {
require { `$1' }
$2
ifelse(`$3',`',`',`
} else {
$3
')
}
')
# ',`
# optional {
# require { `$1' }
# $2
# ifelse(`$3',`',`',`
# } else {
# $3
# ')
# }
# ')
')