mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-11 10:03:47 +08:00
add API function mdns_resp_netif_active() that can be used to test if an MDNS responder is active for a given network interface.
Signed-off-by: Erik Ekman <erik@kryo.se>
This commit is contained in:
@@ -2483,6 +2483,18 @@ mdns_resp_rename_netif(struct netif *netif, const char *hostname)
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup mdns
|
||||
* Checks if an MDNS responder is active for a given network interface.
|
||||
* @param netif The network interface to test.
|
||||
* @return nonzero if responder active, zero otherwise.
|
||||
*/
|
||||
int
|
||||
mdns_resp_netif_active(struct netif *netif)
|
||||
{
|
||||
return NETIF_TO_HOST(netif) != NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* @ingroup mdns
|
||||
* Add a service to the selected network interface.
|
||||
|
||||
Reference in New Issue
Block a user