summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'device.h')
-rw-r--r--device.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/device.h b/device.h
index 45af150..176d1ef 100644
--- a/device.h
+++ b/device.h
@@ -63,6 +63,9 @@ struct device {
bool present;
int active;
+ bool current_config;
+ bool default_config;
+
/* set interface up or down */
device_state_cb set_state;
@@ -115,6 +118,9 @@ struct device *device_create(const char *name, const struct device_type *type,
void device_init_settings(struct device *dev, struct blob_attr **tb);
void device_init_pending(void);
+void device_reset_config(void);
+void device_reset_old(void);
+
void device_init_virtual(struct device *dev, const struct device_type *type, const char *name);
int device_init(struct device *iface, const struct device_type *type, const char *ifname);
void device_cleanup(struct device *iface);