discover/sysinfo: Add network availability helper
[petitboot] / discover / sysinfo.h
index 2764784d57c0900b321625e2298a27ad4efdb266..835dfbe949811f7978e9b4ed9a63bd0cdabbf924 100644 (file)
@@ -7,10 +7,16 @@ struct discover_server;
 
 const struct system_info *system_info_get(void);
 
-void system_info_register_interface(unsigned hwaddr_size, uint8_t *hwaddr,
-               const char *name);
+bool system_info_network_available(void);
+void system_info_set_interface_address(unsigned int hwaddr_size,
+               uint8_t *hwaddr, const char *address);
+void system_info_register_interface(unsigned int hwaddr_size, uint8_t *hwaddr,
+               const char *name, bool link);
+void system_info_register_blockdev(const char *name, const char *uuid,
+               const char *mountpoint);
 
 void system_info_init(struct discover_server *server);
+void system_info_reinit(void);
 
 #endif /* SYSINFO_H */