summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/interface.h b/interface.h
index 5b04102..b845c9b 100644
--- a/interface.h
+++ b/interface.h
@@ -88,7 +88,7 @@ struct interface {
struct list_head hotplug_list;
enum interface_event hotplug_ev;
- char name[IFNAMSIZ];
+ const char *name;
const char *ifname;
bool available;
@@ -145,8 +145,7 @@ struct interface {
extern struct vlist_tree interfaces;
extern const struct uci_blob_param_list interface_attr_list;
-void interface_init(struct interface *iface, const char *name,
- struct blob_attr *config);
+struct interface *interface_alloc(const char *name, struct blob_attr *config);
void interface_set_dynamic(struct interface *iface);