interface: add config setting to restrict inheritance to template interfaces
This commit is contained in:
parent
a3987b46c8
commit
5c5c316ebf
4 changed files with 14 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
struct lif_config_file lif_config = {
|
||||
.allow_addon_scripts = true,
|
||||
.allow_any_iface_as_template = true,
|
||||
};
|
||||
|
||||
static bool
|
||||
|
|
@ -43,6 +44,7 @@ set_bool_value(const char *key, const char *value, void *opaque)
|
|||
|
||||
static struct lif_config_handler handlers[] = {
|
||||
{"allow_addon_scripts", set_bool_value, &lif_config.allow_addon_scripts},
|
||||
{"allow_any_iface_as_template", set_bool_value, &lif_config.allow_any_iface_as_template},
|
||||
};
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue