From 1ac262ed5224463c01525c680d1f58f7df48b943 Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Thu, 23 Mar 2017 17:42:03 +1100 Subject: discover/sysinfo: Add network availability helper Add a helper function that describes interfaces as available if they have an assigned address. Signed-off-by: Samuel Mendoza-Jonas --- discover/sysinfo.h | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/sysinfo.h') diff --git a/discover/sysinfo.h b/discover/sysinfo.h index c570951..835dfbe 100644 --- a/discover/sysinfo.h +++ b/discover/sysinfo.h @@ -7,6 +7,7 @@ struct discover_server; const struct system_info *system_info_get(void); +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, -- cgit v1.2.1