make mdns-external-avahi a conditional compilation

This commit is contained in:
Mike Brady
2019-02-05 09:45:16 +00:00
parent d54025486a
commit 3162977c71
3 changed files with 13 additions and 2 deletions
+5
View File
@@ -42,7 +42,10 @@ extern mdns_backend mdns_external_dns_sd;
#ifdef CONFIG_TINYSVCMDNS
extern mdns_backend mdns_tinysvcmdns;
#endif
#ifdef CONFIG_EXTERNAL_MDNS
extern mdns_backend mdns_external_avahi;
#endif
static mdns_backend *mdns_backends[] = {
#ifdef CONFIG_AVAHI
@@ -55,7 +58,9 @@ static mdns_backend *mdns_backends[] = {
#ifdef CONFIG_TINYSVCMDNS
&mdns_tinysvcmdns,
#endif
#ifdef CONFIG_EXTERNAL_MDNS
&mdns_external_avahi,
#endif
NULL};
void mdns_register(void) {