device: make link status detection optional for vlan devices
[project/netifd.git] / device.h
index 73b2656..adf72c5 100644 (file)
--- a/device.h
+++ b/device.h
@@ -47,6 +47,8 @@ struct device_type {
        struct list_head list;
        const char *name;
 
+       bool keep_link_status;
+
        const struct uci_blob_param_list *config_params;
 
        struct device *(*create)(const char *name, struct blob_attr *attr);