discover/discover-server: explicit #include <string.h>
[petitboot] / discover / sysinfo.h
1 #ifndef SYSINFO_H
2 #define SYSINFO_H
3
4 #include <types/types.h>
5
6 struct discover_server;
7
8 const struct system_info *system_info_get(void);
9
10 bool system_info_network_available(void);
11 void system_info_set_interface_address(unsigned int hwaddr_size,
12                 uint8_t *hwaddr, const char *address);
13 void system_info_register_interface(unsigned int hwaddr_size, uint8_t *hwaddr,
14                 const char *name, bool link);
15 void system_info_register_blockdev(const char *name, const char *uuid,
16                 const char *mountpoint);
17
18 void system_info_init(struct discover_server *server);
19 void system_info_reinit(void);
20
21 #endif /* SYSINFO_H */
22