discover/discover-server: Restrict clients based on uid
[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 void system_info_set_interface_address(unsigned int hwaddr_size,
11                 uint8_t *hwaddr, const char *address);
12 void system_info_register_interface(unsigned int hwaddr_size, uint8_t *hwaddr,
13                 const char *name, bool link);
14 void system_info_register_blockdev(const char *name, const char *uuid,
15                 const char *mountpoint);
16
17 void system_info_init(struct discover_server *server);
18 void system_info_reinit(void);
19
20 #endif /* SYSINFO_H */
21