From 37441269fbc27fc9af0562c6a4af50c1d6d353dd Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 6 Oct 2011 01:51:31 +0200 Subject: prevent deletion devices that are part of the current configuration --- device.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'device.h') 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); -- cgit v1.2.3