element->type = type;
element->index = parent->index;
+ if (parent->parent)
+ element->subtype = parent->parent->subtype;
+ else
+ element->subtype = CONNMAN_ELEMENT_SUBTYPE_UNKNOWN;
+
connman_element_register(element, parent);
}
connman_driver_unregister(&netdev_driver);
}
-CONNMAN_PLUGIN_DEFINE("netdev", "Network device plugin", VERSION,
+CONNMAN_PLUGIN_DEFINE(netdev, "Network device plugin", VERSION,
netdev_init, netdev_exit)