discover: allow separate lifetimes for network interfaces and discover devices
[petitboot] / discover / network.h
index 912174f4392badc0e03bd44ffdc65a9571ad97ea..bfd1ab12ecea2a013080b85856b960bb715e2723 100644 (file)
@@ -3,11 +3,17 @@
 
 struct network;
 struct device_handler;
+struct discover_device;
 struct waitset;
 
 struct network *network_init(struct device_handler *handler,
                struct waitset *waitset, bool dry_run);
 int network_shutdown(struct network *network);
 
+void network_register_device(struct network *network,
+               struct discover_device *dev);
+void network_unregister_device(struct network *network,
+               struct discover_device *dev);
+
 #endif /* NETWORK_H */