diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2018-11-11 21:15:56 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2018-11-13 14:28:31 +0100 |
commit | 2f7ef7dc6cb542d5811f64fa7af97fb8619c9429 (patch) | |
tree | 83e5d724fbaad7212ba5349cee7724023d2cb5b2 /interface.h | |
parent | 841b5d158708ee89d9fa870c40404469cb8e871e (diff) |
interface: rework code to get rid of interface_set_dynamic
Integrate dynamic interface creation code into interface_alloc and
__interface_add so we can get rid of interface_set_dynamic
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'interface.h')
-rw-r--r-- | interface.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/interface.h b/interface.h index ace6a5d..f92a35e 100644 --- a/interface.h +++ b/interface.h @@ -174,11 +174,9 @@ struct interface { extern struct vlist_tree interfaces; extern const struct uci_blob_param_list interface_attr_list; -struct interface *interface_alloc(const char *name, struct blob_attr *config); +struct interface *interface_alloc(const char *name, struct blob_attr *config, bool dynamic); -void interface_set_dynamic(struct interface *iface); - -void interface_add(struct interface *iface, struct blob_attr *config); +bool interface_add(struct interface *iface, struct blob_attr *config); bool interface_add_alias(struct interface *iface, struct blob_attr *config); void interface_set_proto_state(struct interface *iface, struct interface_proto_state *state); |