const struct fw3_option fw3_include_opts[] = {
+ FW3_OPT("enabled", bool, include, enabled),
+
FW3_OPT("path", string, include, path),
FW3_OPT("type", include_type, include, type),
FW3_OPT("family", family, include, family),
continue;
memset(include, 0, sizeof(*include));
+
include->name = e->name;
+ include->enabled = true;
fw3_parse_options(include, fw3_include_opts, s);
+ if (!include->enabled)
+ {
+ fw3_free_include(include);
+ continue;
+ }
+
if (!include->path)
{
warn_elem(e, "must specify a path");