diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 11:49:51 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 11:49:51 +0200 |
commit | b0720e584f750073a4bc81c889abdaf08983e0ce (patch) | |
tree | b8778455b5f5bade9750c6db18e5704b9e42e104 /device.h | |
parent | f7920a7e96e2a1424f69ed3f5ede723c0954b185 (diff) |
interface: allow an interface to specify device configs even when there are other interfaces attached to the same device
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'device.h')
-rw-r--r-- | device.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -21,6 +21,7 @@ struct device; struct device_user; struct device_hotplug_ops; +struct interface; typedef int (*device_state_cb)(struct device *, bool up); @@ -165,6 +166,8 @@ struct device { bool default_config; bool wireless; + struct interface *config_iface; + /* set interface up or down */ device_state_cb set_state; |