summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-19 01:32:55 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-19 01:32:55 +0200
commitf8276b9b149f3b0c8f3cdf8d3d0c232bd92e3464 (patch)
treeeba0adb88f9e0408740c2855922db80ece63d55e /device.h
parentbeecba5195b2f1180f0bdfb6f61f0dbd3dff0eba (diff)
apply device settings to simple devices with config specified from the interface section (legacy format compatibility), but only if no other config was provided
Diffstat (limited to 'device.h')
-rw-r--r--device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/device.h b/device.h
index 686b1b1..f7718cc 100644
--- a/device.h
+++ b/device.h
@@ -118,6 +118,10 @@ 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);
+enum dev_change_type
+device_set_config(struct device *dev, const struct device_type *type,
+ struct blob_attr *attr);
+
void device_reset_config(void);
void device_reset_old(void);