Quote:
Originally Posted by Rocker8956
I want to include database.h so some of the following are pulled from the database instead of hard coded
Code:
#define ZONE_AUTOSHUTDOWN_DELAY 5000
|
Maybe I am misunderstanding, but you want to replace this with a Rule ?
In that case, you could just add, e.g.
Code:
RULE_INT ( Zone, ZoneAutoShutdownDelay, 5000 )
to common/ruletypes.h, delete the #define ZONE_AUTOSHUTDOWN_DELAY and then just replace any references to ZONE_AUTOSHUTDOWN_DELAY with RuleI(Zone, ZoneAutoShutdownDelay), and you don't need to include database.h in features.h.