-struct interface *get_interface(const char *name);
-struct interface *alloc_interface(const char *name, struct uci_section *s);
-void free_interface(struct interface *iface);
+extern struct vlist_tree interfaces;
+extern const struct config_param_list interface_attr_list;
+
+void interface_init(struct interface *iface, const char *name,
+ struct blob_attr *config);
+
+void interface_add(struct interface *iface, struct blob_attr *config);