alias: use a callback for managing device presence state, track alias deps in a separ...
[project/netifd.git] / device.h
index 88a421f..8cedfba 100644 (file)
--- a/device.h
+++ b/device.h
@@ -85,6 +85,7 @@ struct device_user {
 
        bool claimed;
        bool hotplug;
+       bool alias;
 
        struct device *dev;
        void (*cb)(struct device_user *, enum device_event);
@@ -106,6 +107,7 @@ struct device {
 
        struct avl_node avl;
        struct list_head users;
+       struct list_head aliases;
 
        char ifname[IFNAMSIZ + 1];
        int ifindex;